泰凌微2代调通蓝牙模式
authorliangzhenying <867174124@qq.com>
Sat, 19 Apr 2025 03:52:22 +0000 (11:52 +0800)
committerliangzhenying <867174124@qq.com>
Sat, 19 Apr 2025 03:52:22 +0000 (11:52 +0800)
25 files changed:
Document/新/stb_pc_sdk_release_20250331.zip [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/stb_app.h [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x64/Debug/STB_WIN_VC.dll [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x64/Release/STB_WIN_VC.dll [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x86/Debug/STB_WIN_VC.dll [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x86/Release/STB_WIN_VC.dll [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250331/macOS/x86_64/stb_app.h [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250331/macOS/x86_64/stb_identify.a [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250331/macOS/x86_64/stb_identify.so [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/stb_app.h [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/x64/Debug/STB_WIN_VC.dll [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/x64/Release/STB_WIN_VC.dll [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/x86/Debug/STB_WIN_VC.dll [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/x86/Release/STB_WIN_VC.dll [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250418_副本/macOS/ARM64/stb_app.h [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250418_副本/macOS/ARM64/stb_identify.a [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250418_副本/macOS/ARM64/stb_identify.so [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250418_副本/macOS/x86_64/stb_app.h [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250418_副本/macOS/x86_64/stb_identify.a [new file with mode: 0644]
Document/新/stb_pc_sdk_release_20250418_副本/macOS/x86_64/stb_identify.so [new file with mode: 0644]
Document/新/字节鉴权.log [new file with mode: 0644]
Document/新/富瑞坤无鉴权uuid.txt [new file with mode: 0644]
Document/新/泰凌微无鉴权uuid.txt [new file with mode: 0644]
Document/新/泰凌微鉴权uuid.txt [new file with mode: 0644]
MouseSdk/AiMouseSdk/AiMouseSdk/AiAudioManager.m [new file with mode: 0644]

diff --git a/Document/新/stb_pc_sdk_release_20250331.zip b/Document/新/stb_pc_sdk_release_20250331.zip
new file mode 100644 (file)
index 0000000..855a2a9
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250331.zip" differ
diff --git a/Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/stb_app.h b/Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/stb_app.h
new file mode 100644 (file)
index 0000000..05b4d68
--- /dev/null
@@ -0,0 +1,200 @@
+/* Copyright [the year of release] VE Starburst. All rights reserved.\r
+ *\r
+ * NOTICE:All information contained herein is, and remains the property of VE\r
+ * Starburst. The intellectual and technical concepts contained herein are\r
+ * proprietary to VE Starburst. and may be covered by patents, patents in process,\r
+ * and are protected by trade secret or copyright law. Dissemination of this\r
+ * information or reproduction of this material is strictly forbidden unless prior\r
+ * written permission is obtained from VE Starburst.\r
+ */\r
+#ifndef _STB_APP_H_\r
+#define _STB_APP_H_\r
+#include <stdint.h>\r
+\r
+#if defined(__cplusplus)\r
+extern "C" {\r
+#endif\r
+\r
+#if (defined(WIN32) || defined(WIN64) || defined(_MSC_VER) || defined(_WIN32))\r
+#define DLL_EXPORTS __declspec(dllexport) \r
+#define STB_STDCALL __stdcall\r
+#else\r
+#define DLL_EXPORTS\r
+#define STB_STDCALL\r
+#endif\r
+\r
+//回调函数TYPE定义\r
+/* 激活相关TYPE*/\r
+#define STB_DYNREG_SUCCESS 0xFF000000\r
+#define STB_DYNREG_FAIL    0xFF000001\r
+/* MQTT连云相关TYPE*/\r
+#define STB_MQTT_CONNECT_SUCCESS    0xFF010000\r
+#define STB_MQTT_CONNECT_FAIL       0xFF010001\r
+#define STB_MQTT_CONNECT_TIMEOUT    0xFF010002\r
+#define STB_MQTT_CONNECT_OFFLINE    0xFF010003\r
+#define STB_MQTT_CONNECT_ONLINE     0xFF010004  \r
+#define STB_MQTT_CONNECT_STOP       0xFF010005 //认证退出,待设备重新连接后需要重新调用stb_app_start_identify\r
+\r
+/*业务数据*/\r
+#define STB_DM_DATA_ARRIVED_TOKEN                      0xFF020000\r
+#define STB_DM_DATA_ARRIVED_TOKEN_TIMEOUT   0xFF020001\r
+#define STB_DM_DATA_ARRIVED_HOST                       0xFF020002\r
+#define STB_DM_DATA_ARRIVED_PARAMS_SIGN                0xFF020003\r
+\r
+\r
+/* 事件回调函数类型定义 */\r
+typedef void (STB_STDCALL *stb_event_callback_func)(uint32_t type,uint8_t *data, uint32_t data_len);\r
+/* 日志打印函数类型定义 */\r
+typedef void (STB_STDCALL *stb_debug_func)(const char *format,...);\r
+/* 日志打印函数类型定义 */\r
+typedef void(STB_STDCALL *stb_debug_only_str_func)(char *str);\r
+/* 数据发送函数类型定义 */\r
+typedef int32_t (STB_STDCALL *stb_data_send_to_device)(uint8_t *data, uint32_t len);\r
+\r
+\r
+/*\r
+ * 函数名称: stb_app_init\r
+ * 参数:\r
+ *   - appid: 应用ID,字符串类型\r
+ * 返回值:\r
+ *   - 返回一个整数,表示初始化结果\r
+ * 函数说明:\r
+ *   - 该函数用于初始化应用,传入应用ID进行初始化操作,appid由字节火山提供。\r
+ */\r
+DLL_EXPORTS int STB_STDCALL stb_app_init(char*appid);\r
+\r
+/*\r
+ * 函数名称: stb_app_deinit\r
+ * 参数:\r
+ *   - 无\r
+ * 返回值:\r
+ *   - 返回一个整数,表示反初始化结果\r
+ * 函数说明:\r
+ *   - 该函数用于反初始化应用,释放资源并清理状态。\r
+ */\r
+DLL_EXPORTS int STB_STDCALL stb_app_deinit(void);\r
+\r
+/*\r
+ * 函数名称: stb_app_event_callback_register\r
+ * 参数:\r
+ *   - callback: 事件回调函数指针\r
+ * 返回值:\r
+ *   - 返回一个整数,表示注册结果\r
+ * 函数说明:\r
+ *   - 该函数用于注册事件回调函数,当STB_XXX事件发生时,将调用该回调函数。\r
+ */\r
+\r
+DLL_EXPORTS int STB_STDCALL stb_app_event_callback_register(stb_event_callback_func callback);\r
+\r
+\r
+/*\r
+ * 函数名称: stb_app_printf_register\r
+ * 参数:\r
+ *   - print_func: 自定义打印函数,stb_debug_func是带可变参数的\r
+ * 返回值:\r
+ *   - 返回一个整数,表示注册结果\r
+ * 函数说明:\r
+ *   - 指定日志输出注册函数\r
+ */\r
+\r
+DLL_EXPORTS int STB_STDCALL stb_app_printf_register(stb_debug_func print_func);\r
+/*\r
+ * 函数名称: stb_app_printf_str_register\r
+ * 参数:\r
+ *   - print_func: 自定义打印函数,与stb_debug_func不同,stb_debug_only_str_func的参数只有char,无可变参数\r
+ * 返回值:\r
+ *   - 返回一个整数,表示注册结果\r
+ * 函数说明:\r
+ *   - 指定日志输出注册函数,与stb_app_printf_register类似,只需要实现一个函数即可\r
+ *   - stb_debug_only_str_func 是解决某些平台或者语言可变参数兼容性问题\r
+ */\r
+\r
+DLL_EXPORTS int STB_STDCALL stb_app_printf_str_register(stb_debug_only_str_func print_str_func);\r
+\r
+/*\r
+ * 函数名称: stb_app_send_data_to_device_register\r
+ * 参数:\r
+ *   - send_func: 自定义发送数据到蓝牙设备的函数\r
+\r
+ * 返回值:\r
+ *   - 返回一个整数,表示注册结果\r
+ * 函数说明:\r
+ *   - SDK需要发送给蓝牙设备的数据通过该API注册,SDK内部会调用该函数发送数据到设备端。\r
+ */\r
+DLL_EXPORTS int STB_STDCALL stb_app_send_data_to_device_register(stb_data_send_to_device send_func);\r
+\r
+/*\r
+* 函数名称: stb_app_recv_data_from_device\r
+* 参数:\r
+ *   - data: 数据指针\r
+ *   - len: 数据长度\r
+ * 返回值:\r
+ *   - 返回0表示成功,返回-1表示失败\r
+ * 函数说明:\r
+ *   - 该函数用于接收从蓝牙设备SDK发送过来的数据,由应用调用,前提是设备已经连上。\r
+\r
+*/\r
+DLL_EXPORTS int32_t STB_STDCALL stb_app_recv_data_from_device(uint8_t *data, uint32_t len);\r
+\r
+/*\r
+ * 函数名称: stb_app_start_identify\r
+ * 参数:\r
+ *   - 无\r
+ * 返回值:\r
+ *   - 返回一个整数,表示设备识别启动结果\r
+ * 函数说明:\r
+ *   - 该函数用于启动设备鉴权过程,由应用调用,前提是设备已经连上边,并且HAL层的收发函数已经对接。\r
+ */\r
+DLL_EXPORTS int STB_STDCALL stb_app_start_identify(void);\r
+\r
+\r
+/*\r
+ * 函数名称: stb_app_stop_identify\r
+ * 参数:\r
+ *   - 无\r
+ * 返回值:\r
+ *   - 返回一个整数\r
+ * 函数说明:\r
+ *   - 该函数用于停止已鉴权流程\r
+ */\r
+DLL_EXPORTS int STB_STDCALL stb_app_stop_identify(void);\r
+\r
+\r
+/*\r
+ * 函数名称: stb_app_set_device_connect_status\r
+ * 参数:\r
+ *   - 设备连接状态,1表示已连接,0表示断开。\r
+ * 返回值:\r
+ *   - 返回0表示成功,返回-1表示失败\r
+ * 函数说明:\r
+ *   - 该函数用于设置设备连接状态,由应用调用,用来通知SDK设备连接状态。\r
+ */\r
+DLL_EXPORTS int STB_STDCALL stb_app_set_device_connect_status(uint8_t status);\r
+\r
+/*\r
+ * 函数名称: stb_app_get_token_async\r
+ * 参数:\r
+ *   - 无\r
+ * 返回值:\r
+ *   - 返回一个整数,表示异步获取令牌结果\r
+ * 函数说明:\r
+ *   - 该函数用于异步获取令牌,用于访问AI应用使用。\r
+ */\r
+DLL_EXPORTS int STB_STDCALL stb_app_get_token_async();\r
+\r
+\r
+//测试函数,无需调用\r
+DLL_EXPORTS int STB_STDCALL stb_app_identify_test(uint8_t *pk, uint8_t *dn, uint8_t *ps);\r
+\r
+\r
+//如需使用产线激活,使用该接口\r
+DLL_EXPORTS char* STB_STDCALL device_register(char* product_key, char* device_name, char* product_secret);\r
+//如需使用产线激活,使用该接口\r
+DLL_EXPORTS int STB_STDCALL device_active(char*product_key, char* device_name, char*device_secret);\r
+\r
+#if defined(__cplusplus)\r
+}\r
+#endif\r
+\r
+#endif\r
+\r
diff --git a/Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x64/Debug/STB_WIN_VC.dll b/Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x64/Debug/STB_WIN_VC.dll
new file mode 100644 (file)
index 0000000..ecb0c33
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x64/Debug/STB_WIN_VC.dll" differ
diff --git a/Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x64/Release/STB_WIN_VC.dll b/Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x64/Release/STB_WIN_VC.dll
new file mode 100644 (file)
index 0000000..e165922
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x64/Release/STB_WIN_VC.dll" differ
diff --git a/Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x86/Debug/STB_WIN_VC.dll b/Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x86/Debug/STB_WIN_VC.dll
new file mode 100644 (file)
index 0000000..521c2cd
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x86/Debug/STB_WIN_VC.dll" differ
diff --git a/Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x86/Release/STB_WIN_VC.dll b/Document/新/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x86/Release/STB_WIN_VC.dll
new file mode 100644 (file)
index 0000000..ada978c
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250331/Windows/1.1.0.0_MT_20250331/x86/Release/STB_WIN_VC.dll" differ
diff --git a/Document/新/stb_pc_sdk_release_20250331/macOS/x86_64/stb_app.h b/Document/新/stb_pc_sdk_release_20250331/macOS/x86_64/stb_app.h
new file mode 100644 (file)
index 0000000..21fb305
--- /dev/null
@@ -0,0 +1,200 @@
+/* Copyright [the year of release] VE Starburst. All rights reserved.
+ *
+ * NOTICE:All information contained herein is, and remains the property of VE
+ * Starburst. The intellectual and technical concepts contained herein are
+ * proprietary to VE Starburst. and may be covered by patents, patents in process,
+ * and are protected by trade secret or copyright law. Dissemination of this
+ * information or reproduction of this material is strictly forbidden unless prior
+ * written permission is obtained from VE Starburst.
+ */
+#ifndef _STB_APP_H_
+#define _STB_APP_H_
+#include <stdint.h>
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#if (defined(WIN32) || defined(WIN64) || defined(_MSC_VER) || defined(_WIN32))
+#define DLL_EXPORTS __declspec(dllexport) 
+#define STB_STDCALL __stdcall
+#else
+#define DLL_EXPORTS
+#define STB_STDCALL
+#endif
+
+//回调函数TYPE定义
+/* 激活相关TYPE*/
+#define STB_DYNREG_SUCCESS 0xFF000000
+#define STB_DYNREG_FAIL    0xFF000001
+/* MQTT连云相关TYPE*/
+#define STB_MQTT_CONNECT_SUCCESS    0xFF010000
+#define STB_MQTT_CONNECT_FAIL       0xFF010001
+#define STB_MQTT_CONNECT_TIMEOUT    0xFF010002
+#define STB_MQTT_CONNECT_OFFLINE    0xFF010003
+#define STB_MQTT_CONNECT_ONLINE     0xFF010004  
+#define STB_MQTT_CONNECT_STOP       0xFF010005 //认证退出,待设备重新连接后需要重新调用stb_app_start_identify
+
+/*业务数据*/
+#define STB_DM_DATA_ARRIVED_TOKEN                      0xFF020000
+#define STB_DM_DATA_ARRIVED_TOKEN_TIMEOUT   0xFF020001
+#define STB_DM_DATA_ARRIVED_HOST                       0xFF020002
+#define STB_DM_DATA_ARRIVED_PARAMS_SIGN                0xFF020003
+
+
+/* 事件回调函数类型定义 */
+typedef void (STB_STDCALL *stb_event_callback_func)(uint32_t type,uint8_t *data, uint32_t data_len);
+/* 日志打印函数类型定义 */
+typedef void (STB_STDCALL *stb_debug_func)(const char *format,...);
+/* 日志打印函数类型定义 */
+typedef void(STB_STDCALL *stb_debug_only_str_func)(char *str);
+/* 数据发送函数类型定义 */
+typedef int32_t (STB_STDCALL *stb_data_send_to_device)(uint8_t *data, uint32_t len);
+
+
+/*
+ * 函数名称: stb_app_init
+ * 参数:
+ *   - appid: 应用ID,字符串类型
+ * 返回值:
+ *   - 返回一个整数,表示初始化结果
+ * 函数说明:
+ *   - 该函数用于初始化应用,传入应用ID进行初始化操作,appid由字节火山提供。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_init(char*appid);
+
+/*
+ * 函数名称: stb_app_deinit
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数,表示反初始化结果
+ * 函数说明:
+ *   - 该函数用于反初始化应用,释放资源并清理状态。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_deinit(void);
+
+/*
+ * 函数名称: stb_app_event_callback_register
+ * 参数:
+ *   - callback: 事件回调函数指针
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - 该函数用于注册事件回调函数,当STB_XXX事件发生时,将调用该回调函数。
+ */
+
+DLL_EXPORTS int STB_STDCALL stb_app_event_callback_register(stb_event_callback_func callback);
+
+
+/*
+ * 函数名称: stb_app_printf_register
+ * 参数:
+ *   - print_func: 自定义打印函数,stb_debug_func是带可变参数的
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - 指定日志输出注册函数
+ */
+
+DLL_EXPORTS int STB_STDCALL stb_app_printf_register(stb_debug_func print_func);
+/*
+ * 函数名称: stb_app_printf_str_register
+ * 参数:
+ *   - print_func: 自定义打印函数,与stb_debug_func不同,stb_debug_only_str_func的参数只有char,无可变参数
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - 指定日志输出注册函数,与stb_app_printf_register类似,只需要实现一个函数即可
+ *   - stb_debug_only_str_func 是解决某些平台或者语言可变参数兼容性问题
+ */
+
+DLL_EXPORTS int STB_STDCALL stb_app_printf_str_register(stb_debug_only_str_func print_str_func);
+
+/*
+ * 函数名称: stb_app_send_data_to_device_register
+ * 参数:
+ *   - send_func: 自定义发送数据到蓝牙设备的函数
+
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - SDK需要发送给蓝牙设备的数据通过该API注册,SDK内部会调用该函数发送数据到设备端。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_send_data_to_device_register(stb_data_send_to_device send_func);
+
+/*
+* 函数名称: stb_app_recv_data_from_device
+* 参数:
+ *   - data: 数据指针
+ *   - len: 数据长度
+ * 返回值:
+ *   - 返回0表示成功,返回-1表示失败
+ * 函数说明:
+ *   - 该函数用于接收从蓝牙设备SDK发送过来的数据,由应用调用,前提是设备已经连上。
+
+*/
+DLL_EXPORTS int32_t STB_STDCALL stb_app_recv_data_from_device(uint8_t *data, uint32_t len);
+
+/*
+ * 函数名称: stb_app_start_identify
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数,表示设备识别启动结果
+ * 函数说明:
+ *   - 该函数用于启动设备鉴权过程,由应用调用,前提是设备已经连上边,并且HAL层的收发函数已经对接。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_start_identify(void);
+
+
+/*
+ * 函数名称: stb_app_stop_identify
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数
+ * 函数说明:
+ *   - 该函数用于停止已鉴权流程
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_stop_identify(void);
+
+
+/*
+ * 函数名称: stb_app_set_device_connect_status
+ * 参数:
+ *   - 设备连接状态,1表示已连接,0表示断开。
+ * 返回值:
+ *   - 返回0表示成功,返回-1表示失败
+ * 函数说明:
+ *   - 该函数用于设置设备连接状态,由应用调用,用来通知SDK设备连接状态。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_set_device_connect_status(uint8_t status);
+
+/*
+ * 函数名称: stb_app_get_token_async
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数,表示异步获取令牌结果
+ * 函数说明:
+ *   - 该函数用于异步获取令牌,用于访问AI应用使用。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_get_token_async();
+
+
+//测试函数,无需调用
+DLL_EXPORTS int STB_STDCALL stb_app_identify_test(uint8_t *pk, uint8_t *dn, uint8_t *ps);
+
+
+//如需使用产线激活,使用该接口
+DLL_EXPORTS char* STB_STDCALL device_register(char* product_key, char* device_name, char* product_secret);
+//如需使用产线激活,使用该接口
+DLL_EXPORTS int STB_STDCALL device_active(char*product_key, char* device_name, char*device_secret);
+
+#if defined(__cplusplus)
+}
+#endif
+
+#endif
+
diff --git a/Document/新/stb_pc_sdk_release_20250331/macOS/x86_64/stb_identify.a b/Document/新/stb_pc_sdk_release_20250331/macOS/x86_64/stb_identify.a
new file mode 100644 (file)
index 0000000..6a7227d
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250331/macOS/x86_64/stb_identify.a" differ
diff --git a/Document/新/stb_pc_sdk_release_20250331/macOS/x86_64/stb_identify.so b/Document/新/stb_pc_sdk_release_20250331/macOS/x86_64/stb_identify.so
new file mode 100644 (file)
index 0000000..4ea5a7d
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250331/macOS/x86_64/stb_identify.so" differ
diff --git a/Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/stb_app.h b/Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/stb_app.h
new file mode 100644 (file)
index 0000000..f2dbd13
--- /dev/null
@@ -0,0 +1,200 @@
+/* Copyright [the year of release] VE Starburst. All rights reserved.
+ *
+ * NOTICE:All information contained herein is, and remains the property of VE
+ * Starburst. The intellectual and technical concepts contained herein are
+ * proprietary to VE Starburst. and may be covered by patents, patents in process,
+ * and are protected by trade secret or copyright law. Dissemination of this
+ * information or reproduction of this material is strictly forbidden unless prior
+ * written permission is obtained from VE Starburst.
+ */
+#ifndef _STB_APP_H_
+#define _STB_APP_H_
+#include <stdint.h>
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#if (defined(WIN32) || defined(WIN64) || defined(_MSC_VER) || defined(_WIN32))
+#define DLL_EXPORTS __declspec(dllexport) 
+#define STB_STDCALL __stdcall
+#else
+#define DLL_EXPORTS
+#define STB_STDCALL
+#endif
+
+//回调函数TYPE定义
+/* 激活相关TYPE*/
+#define STB_DYNREG_SUCCESS 0xFF000000
+#define STB_DYNREG_FAIL    0xFF000001
+/* MQTT连云相关TYPE*/
+#define STB_MQTT_CONNECT_SUCCESS    0xFF010000
+#define STB_MQTT_CONNECT_FAIL       0xFF010001
+#define STB_MQTT_CONNECT_TIMEOUT    0xFF010002
+#define STB_MQTT_CONNECT_OFFLINE    0xFF010003
+#define STB_MQTT_CONNECT_ONLINE     0xFF010004  
+#define STB_MQTT_CONNECT_STOP       0xFF010005 //认证退出,待设备重新连接后需要重新调用stb_app_start_identify
+
+/*业务数据*/
+#define STB_DM_DATA_ARRIVED_TOKEN                      0xFF020000
+#define STB_DM_DATA_ARRIVED_TOKEN_TIMEOUT   0xFF020001
+#define STB_DM_DATA_ARRIVED_HOST                       0xFF020002
+#define STB_DM_DATA_ARRIVED_PARAMS_SIGN                0xFF020003
+
+
+/* 事件回调函数类型定义 */
+typedef void (STB_STDCALL *stb_event_callback_func)(uint32_t type,uint8_t *data, uint32_t data_len);
+/* 日志打印函数类型定义 */
+typedef void (STB_STDCALL *stb_debug_func)(const char *format,...);
+/* 日志打印函数类型定义 */
+typedef void(STB_STDCALL *stb_debug_only_str_func)(char *str);
+/* 数据发送函数类型定义 */
+typedef int32_t (STB_STDCALL *stb_data_send_to_device)(uint8_t *data, uint32_t len);
+
+
+/*
+ * 函数名称: stb_app_init
+ * 参数:
+ *   - appid: 应用ID,字符串类型
+ * 返回值:
+ *   - 返回一个整数,表示初始化结果
+ * 函数说明:
+ *   - 该函数用于初始化应用,传入应用ID进行初始化操作,appid由字节火山提供。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_init(char*appid);
+
+/*
+ * 函数名称: stb_app_deinit
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数,表示反初始化结果
+ * 函数说明:
+ *   - 该函数用于反初始化应用,释放资源并清理状态。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_deinit(void);
+
+/*
+ * 函数名称: stb_app_event_callback_register
+ * 参数:
+ *   - callback: 事件回调函数指针
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - 该函数用于注册事件回调函数,当STB_XXX事件发生时,将调用该回调函数。
+ */
+
+DLL_EXPORTS int STB_STDCALL stb_app_event_callback_register(stb_event_callback_func callback);
+
+
+/*
+ * 函数名称: stb_app_printf_register
+ * 参数:
+ *   - print_func: 自定义打印函数,stb_debug_func是带可变参数的
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - 指定日志输出注册函数
+ */
+
+DLL_EXPORTS int STB_STDCALL stb_app_printf_register(stb_debug_func print_func);
+/*
+ * 函数名称: stb_app_printf_str_register
+ * 参数:
+ *   - print_func: 自定义打印函数,与stb_debug_func不同,stb_debug_only_str_func的参数只有char,无可变参数
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - 指定日志输出注册函数,与stb_app_printf_register类似,只需要实现一个函数即可
+ *   - stb_debug_only_str_func 是解决某些平台或者语言可变参数兼容性问题
+ */
+
+DLL_EXPORTS int STB_STDCALL stb_app_printf_str_register(stb_debug_only_str_func print_str_func);
+
+/*
+ * 函数名称: stb_app_send_data_to_device_register
+ * 参数:
+ *   - send_func: 自定义发送数据到蓝牙设备的函数
+
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - SDK需要发送给蓝牙设备的数据通过该API注册,SDK内部会调用该函数发送数据到设备端。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_send_data_to_device_register(stb_data_send_to_device send_func);
+
+/*
+* 函数名称: stb_app_recv_data_from_device
+* 参数:
+ *   - data: 数据指针
+ *   - len: 数据长度
+ * 返回值:
+ *   - 返回0表示成功,返回-1表示失败
+ * 函数说明:
+ *   - 该函数用于接收从蓝牙设备SDK发送过来的数据,由应用调用,前提是设备已经连上。
+
+*/
+DLL_EXPORTS int32_t STB_STDCALL stb_app_recv_data_from_device(uint8_t *data, uint32_t len);
+
+/*
+ * 函数名称: stb_app_start_identify
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数,表示设备识别启动结果
+ * 函数说明:
+ *   - 该函数用于启动设备鉴权过程,由应用调用,前提是设备已经连上边,并且HAL层的收发函数已经对接。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_start_identify(void);
+
+
+/*
+ * 函数名称: stb_app_stop_identify
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数
+ * 函数说明:
+ *   - 该函数用于停止已鉴权流程
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_stop_identify(void);
+
+
+/*
+ * 函数名称: stb_app_set_device_connect_status
+ * 参数:
+ *   - 设备连接状态,1表示已连接,0表示断开。
+ * 返回值:
+ *   - 返回0表示成功,返回-1表示失败
+ * 函数说明:
+ *   - 该函数用于设置设备连接状态,由应用调用,用来通知SDK设备连接状态。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_set_device_connect_status(uint8_t status);
+
+/*
+ * 函数名称: stb_app_get_token_async
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数,表示异步获取令牌结果
+ * 函数说明:
+ *   - 该函数用于异步获取令牌,用于访问AI应用使用。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_get_token_async();
+
+
+//测试函数,无需调用
+DLL_EXPORTS int STB_STDCALL stb_app_identify_test(uint8_t *pk, uint8_t *dn, uint8_t *ps);
+
+
+//如需使用产线激活,使用该接口
+DLL_EXPORTS char* STB_STDCALL device_register(char* product_key, char* device_name, char* product_secret);
+//如需使用产线激活,使用该接口
+DLL_EXPORTS int STB_STDCALL device_active(char*product_key, char* device_name, char*device_secret,char*app_id);
+
+#if defined(__cplusplus)
+}
+#endif
+
+#endif
+
diff --git a/Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/x64/Debug/STB_WIN_VC.dll b/Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/x64/Debug/STB_WIN_VC.dll
new file mode 100644 (file)
index 0000000..9fa3435
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250418_\345\211\257\346\234\254/Windows/1.1.0.1_MT_20250418/x64/Debug/STB_WIN_VC.dll" differ
diff --git a/Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/x64/Release/STB_WIN_VC.dll b/Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/x64/Release/STB_WIN_VC.dll
new file mode 100644 (file)
index 0000000..970f2d5
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250418_\345\211\257\346\234\254/Windows/1.1.0.1_MT_20250418/x64/Release/STB_WIN_VC.dll" differ
diff --git a/Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/x86/Debug/STB_WIN_VC.dll b/Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/x86/Debug/STB_WIN_VC.dll
new file mode 100644 (file)
index 0000000..3b09e38
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250418_\345\211\257\346\234\254/Windows/1.1.0.1_MT_20250418/x86/Debug/STB_WIN_VC.dll" differ
diff --git a/Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/x86/Release/STB_WIN_VC.dll b/Document/新/stb_pc_sdk_release_20250418_副本/Windows/1.1.0.1_MT_20250418/x86/Release/STB_WIN_VC.dll
new file mode 100644 (file)
index 0000000..49f34ba
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250418_\345\211\257\346\234\254/Windows/1.1.0.1_MT_20250418/x86/Release/STB_WIN_VC.dll" differ
diff --git a/Document/新/stb_pc_sdk_release_20250418_副本/macOS/ARM64/stb_app.h b/Document/新/stb_pc_sdk_release_20250418_副本/macOS/ARM64/stb_app.h
new file mode 100644 (file)
index 0000000..f2dbd13
--- /dev/null
@@ -0,0 +1,200 @@
+/* Copyright [the year of release] VE Starburst. All rights reserved.
+ *
+ * NOTICE:All information contained herein is, and remains the property of VE
+ * Starburst. The intellectual and technical concepts contained herein are
+ * proprietary to VE Starburst. and may be covered by patents, patents in process,
+ * and are protected by trade secret or copyright law. Dissemination of this
+ * information or reproduction of this material is strictly forbidden unless prior
+ * written permission is obtained from VE Starburst.
+ */
+#ifndef _STB_APP_H_
+#define _STB_APP_H_
+#include <stdint.h>
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#if (defined(WIN32) || defined(WIN64) || defined(_MSC_VER) || defined(_WIN32))
+#define DLL_EXPORTS __declspec(dllexport) 
+#define STB_STDCALL __stdcall
+#else
+#define DLL_EXPORTS
+#define STB_STDCALL
+#endif
+
+//回调函数TYPE定义
+/* 激活相关TYPE*/
+#define STB_DYNREG_SUCCESS 0xFF000000
+#define STB_DYNREG_FAIL    0xFF000001
+/* MQTT连云相关TYPE*/
+#define STB_MQTT_CONNECT_SUCCESS    0xFF010000
+#define STB_MQTT_CONNECT_FAIL       0xFF010001
+#define STB_MQTT_CONNECT_TIMEOUT    0xFF010002
+#define STB_MQTT_CONNECT_OFFLINE    0xFF010003
+#define STB_MQTT_CONNECT_ONLINE     0xFF010004  
+#define STB_MQTT_CONNECT_STOP       0xFF010005 //认证退出,待设备重新连接后需要重新调用stb_app_start_identify
+
+/*业务数据*/
+#define STB_DM_DATA_ARRIVED_TOKEN                      0xFF020000
+#define STB_DM_DATA_ARRIVED_TOKEN_TIMEOUT   0xFF020001
+#define STB_DM_DATA_ARRIVED_HOST                       0xFF020002
+#define STB_DM_DATA_ARRIVED_PARAMS_SIGN                0xFF020003
+
+
+/* 事件回调函数类型定义 */
+typedef void (STB_STDCALL *stb_event_callback_func)(uint32_t type,uint8_t *data, uint32_t data_len);
+/* 日志打印函数类型定义 */
+typedef void (STB_STDCALL *stb_debug_func)(const char *format,...);
+/* 日志打印函数类型定义 */
+typedef void(STB_STDCALL *stb_debug_only_str_func)(char *str);
+/* 数据发送函数类型定义 */
+typedef int32_t (STB_STDCALL *stb_data_send_to_device)(uint8_t *data, uint32_t len);
+
+
+/*
+ * 函数名称: stb_app_init
+ * 参数:
+ *   - appid: 应用ID,字符串类型
+ * 返回值:
+ *   - 返回一个整数,表示初始化结果
+ * 函数说明:
+ *   - 该函数用于初始化应用,传入应用ID进行初始化操作,appid由字节火山提供。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_init(char*appid);
+
+/*
+ * 函数名称: stb_app_deinit
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数,表示反初始化结果
+ * 函数说明:
+ *   - 该函数用于反初始化应用,释放资源并清理状态。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_deinit(void);
+
+/*
+ * 函数名称: stb_app_event_callback_register
+ * 参数:
+ *   - callback: 事件回调函数指针
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - 该函数用于注册事件回调函数,当STB_XXX事件发生时,将调用该回调函数。
+ */
+
+DLL_EXPORTS int STB_STDCALL stb_app_event_callback_register(stb_event_callback_func callback);
+
+
+/*
+ * 函数名称: stb_app_printf_register
+ * 参数:
+ *   - print_func: 自定义打印函数,stb_debug_func是带可变参数的
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - 指定日志输出注册函数
+ */
+
+DLL_EXPORTS int STB_STDCALL stb_app_printf_register(stb_debug_func print_func);
+/*
+ * 函数名称: stb_app_printf_str_register
+ * 参数:
+ *   - print_func: 自定义打印函数,与stb_debug_func不同,stb_debug_only_str_func的参数只有char,无可变参数
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - 指定日志输出注册函数,与stb_app_printf_register类似,只需要实现一个函数即可
+ *   - stb_debug_only_str_func 是解决某些平台或者语言可变参数兼容性问题
+ */
+
+DLL_EXPORTS int STB_STDCALL stb_app_printf_str_register(stb_debug_only_str_func print_str_func);
+
+/*
+ * 函数名称: stb_app_send_data_to_device_register
+ * 参数:
+ *   - send_func: 自定义发送数据到蓝牙设备的函数
+
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - SDK需要发送给蓝牙设备的数据通过该API注册,SDK内部会调用该函数发送数据到设备端。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_send_data_to_device_register(stb_data_send_to_device send_func);
+
+/*
+* 函数名称: stb_app_recv_data_from_device
+* 参数:
+ *   - data: 数据指针
+ *   - len: 数据长度
+ * 返回值:
+ *   - 返回0表示成功,返回-1表示失败
+ * 函数说明:
+ *   - 该函数用于接收从蓝牙设备SDK发送过来的数据,由应用调用,前提是设备已经连上。
+
+*/
+DLL_EXPORTS int32_t STB_STDCALL stb_app_recv_data_from_device(uint8_t *data, uint32_t len);
+
+/*
+ * 函数名称: stb_app_start_identify
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数,表示设备识别启动结果
+ * 函数说明:
+ *   - 该函数用于启动设备鉴权过程,由应用调用,前提是设备已经连上边,并且HAL层的收发函数已经对接。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_start_identify(void);
+
+
+/*
+ * 函数名称: stb_app_stop_identify
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数
+ * 函数说明:
+ *   - 该函数用于停止已鉴权流程
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_stop_identify(void);
+
+
+/*
+ * 函数名称: stb_app_set_device_connect_status
+ * 参数:
+ *   - 设备连接状态,1表示已连接,0表示断开。
+ * 返回值:
+ *   - 返回0表示成功,返回-1表示失败
+ * 函数说明:
+ *   - 该函数用于设置设备连接状态,由应用调用,用来通知SDK设备连接状态。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_set_device_connect_status(uint8_t status);
+
+/*
+ * 函数名称: stb_app_get_token_async
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数,表示异步获取令牌结果
+ * 函数说明:
+ *   - 该函数用于异步获取令牌,用于访问AI应用使用。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_get_token_async();
+
+
+//测试函数,无需调用
+DLL_EXPORTS int STB_STDCALL stb_app_identify_test(uint8_t *pk, uint8_t *dn, uint8_t *ps);
+
+
+//如需使用产线激活,使用该接口
+DLL_EXPORTS char* STB_STDCALL device_register(char* product_key, char* device_name, char* product_secret);
+//如需使用产线激活,使用该接口
+DLL_EXPORTS int STB_STDCALL device_active(char*product_key, char* device_name, char*device_secret,char*app_id);
+
+#if defined(__cplusplus)
+}
+#endif
+
+#endif
+
diff --git a/Document/新/stb_pc_sdk_release_20250418_副本/macOS/ARM64/stb_identify.a b/Document/新/stb_pc_sdk_release_20250418_副本/macOS/ARM64/stb_identify.a
new file mode 100644 (file)
index 0000000..a85612b
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250418_\345\211\257\346\234\254/macOS/ARM64/stb_identify.a" differ
diff --git a/Document/新/stb_pc_sdk_release_20250418_副本/macOS/ARM64/stb_identify.so b/Document/新/stb_pc_sdk_release_20250418_副本/macOS/ARM64/stb_identify.so
new file mode 100644 (file)
index 0000000..e0685e6
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250418_\345\211\257\346\234\254/macOS/ARM64/stb_identify.so" differ
diff --git a/Document/新/stb_pc_sdk_release_20250418_副本/macOS/x86_64/stb_app.h b/Document/新/stb_pc_sdk_release_20250418_副本/macOS/x86_64/stb_app.h
new file mode 100644 (file)
index 0000000..f2dbd13
--- /dev/null
@@ -0,0 +1,200 @@
+/* Copyright [the year of release] VE Starburst. All rights reserved.
+ *
+ * NOTICE:All information contained herein is, and remains the property of VE
+ * Starburst. The intellectual and technical concepts contained herein are
+ * proprietary to VE Starburst. and may be covered by patents, patents in process,
+ * and are protected by trade secret or copyright law. Dissemination of this
+ * information or reproduction of this material is strictly forbidden unless prior
+ * written permission is obtained from VE Starburst.
+ */
+#ifndef _STB_APP_H_
+#define _STB_APP_H_
+#include <stdint.h>
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#if (defined(WIN32) || defined(WIN64) || defined(_MSC_VER) || defined(_WIN32))
+#define DLL_EXPORTS __declspec(dllexport) 
+#define STB_STDCALL __stdcall
+#else
+#define DLL_EXPORTS
+#define STB_STDCALL
+#endif
+
+//回调函数TYPE定义
+/* 激活相关TYPE*/
+#define STB_DYNREG_SUCCESS 0xFF000000
+#define STB_DYNREG_FAIL    0xFF000001
+/* MQTT连云相关TYPE*/
+#define STB_MQTT_CONNECT_SUCCESS    0xFF010000
+#define STB_MQTT_CONNECT_FAIL       0xFF010001
+#define STB_MQTT_CONNECT_TIMEOUT    0xFF010002
+#define STB_MQTT_CONNECT_OFFLINE    0xFF010003
+#define STB_MQTT_CONNECT_ONLINE     0xFF010004  
+#define STB_MQTT_CONNECT_STOP       0xFF010005 //认证退出,待设备重新连接后需要重新调用stb_app_start_identify
+
+/*业务数据*/
+#define STB_DM_DATA_ARRIVED_TOKEN                      0xFF020000
+#define STB_DM_DATA_ARRIVED_TOKEN_TIMEOUT   0xFF020001
+#define STB_DM_DATA_ARRIVED_HOST                       0xFF020002
+#define STB_DM_DATA_ARRIVED_PARAMS_SIGN                0xFF020003
+
+
+/* 事件回调函数类型定义 */
+typedef void (STB_STDCALL *stb_event_callback_func)(uint32_t type,uint8_t *data, uint32_t data_len);
+/* 日志打印函数类型定义 */
+typedef void (STB_STDCALL *stb_debug_func)(const char *format,...);
+/* 日志打印函数类型定义 */
+typedef void(STB_STDCALL *stb_debug_only_str_func)(char *str);
+/* 数据发送函数类型定义 */
+typedef int32_t (STB_STDCALL *stb_data_send_to_device)(uint8_t *data, uint32_t len);
+
+
+/*
+ * 函数名称: stb_app_init
+ * 参数:
+ *   - appid: 应用ID,字符串类型
+ * 返回值:
+ *   - 返回一个整数,表示初始化结果
+ * 函数说明:
+ *   - 该函数用于初始化应用,传入应用ID进行初始化操作,appid由字节火山提供。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_init(char*appid);
+
+/*
+ * 函数名称: stb_app_deinit
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数,表示反初始化结果
+ * 函数说明:
+ *   - 该函数用于反初始化应用,释放资源并清理状态。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_deinit(void);
+
+/*
+ * 函数名称: stb_app_event_callback_register
+ * 参数:
+ *   - callback: 事件回调函数指针
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - 该函数用于注册事件回调函数,当STB_XXX事件发生时,将调用该回调函数。
+ */
+
+DLL_EXPORTS int STB_STDCALL stb_app_event_callback_register(stb_event_callback_func callback);
+
+
+/*
+ * 函数名称: stb_app_printf_register
+ * 参数:
+ *   - print_func: 自定义打印函数,stb_debug_func是带可变参数的
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - 指定日志输出注册函数
+ */
+
+DLL_EXPORTS int STB_STDCALL stb_app_printf_register(stb_debug_func print_func);
+/*
+ * 函数名称: stb_app_printf_str_register
+ * 参数:
+ *   - print_func: 自定义打印函数,与stb_debug_func不同,stb_debug_only_str_func的参数只有char,无可变参数
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - 指定日志输出注册函数,与stb_app_printf_register类似,只需要实现一个函数即可
+ *   - stb_debug_only_str_func 是解决某些平台或者语言可变参数兼容性问题
+ */
+
+DLL_EXPORTS int STB_STDCALL stb_app_printf_str_register(stb_debug_only_str_func print_str_func);
+
+/*
+ * 函数名称: stb_app_send_data_to_device_register
+ * 参数:
+ *   - send_func: 自定义发送数据到蓝牙设备的函数
+
+ * 返回值:
+ *   - 返回一个整数,表示注册结果
+ * 函数说明:
+ *   - SDK需要发送给蓝牙设备的数据通过该API注册,SDK内部会调用该函数发送数据到设备端。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_send_data_to_device_register(stb_data_send_to_device send_func);
+
+/*
+* 函数名称: stb_app_recv_data_from_device
+* 参数:
+ *   - data: 数据指针
+ *   - len: 数据长度
+ * 返回值:
+ *   - 返回0表示成功,返回-1表示失败
+ * 函数说明:
+ *   - 该函数用于接收从蓝牙设备SDK发送过来的数据,由应用调用,前提是设备已经连上。
+
+*/
+DLL_EXPORTS int32_t STB_STDCALL stb_app_recv_data_from_device(uint8_t *data, uint32_t len);
+
+/*
+ * 函数名称: stb_app_start_identify
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数,表示设备识别启动结果
+ * 函数说明:
+ *   - 该函数用于启动设备鉴权过程,由应用调用,前提是设备已经连上边,并且HAL层的收发函数已经对接。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_start_identify(void);
+
+
+/*
+ * 函数名称: stb_app_stop_identify
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数
+ * 函数说明:
+ *   - 该函数用于停止已鉴权流程
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_stop_identify(void);
+
+
+/*
+ * 函数名称: stb_app_set_device_connect_status
+ * 参数:
+ *   - 设备连接状态,1表示已连接,0表示断开。
+ * 返回值:
+ *   - 返回0表示成功,返回-1表示失败
+ * 函数说明:
+ *   - 该函数用于设置设备连接状态,由应用调用,用来通知SDK设备连接状态。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_set_device_connect_status(uint8_t status);
+
+/*
+ * 函数名称: stb_app_get_token_async
+ * 参数:
+ *   - 无
+ * 返回值:
+ *   - 返回一个整数,表示异步获取令牌结果
+ * 函数说明:
+ *   - 该函数用于异步获取令牌,用于访问AI应用使用。
+ */
+DLL_EXPORTS int STB_STDCALL stb_app_get_token_async();
+
+
+//测试函数,无需调用
+DLL_EXPORTS int STB_STDCALL stb_app_identify_test(uint8_t *pk, uint8_t *dn, uint8_t *ps);
+
+
+//如需使用产线激活,使用该接口
+DLL_EXPORTS char* STB_STDCALL device_register(char* product_key, char* device_name, char* product_secret);
+//如需使用产线激活,使用该接口
+DLL_EXPORTS int STB_STDCALL device_active(char*product_key, char* device_name, char*device_secret,char*app_id);
+
+#if defined(__cplusplus)
+}
+#endif
+
+#endif
+
diff --git a/Document/新/stb_pc_sdk_release_20250418_副本/macOS/x86_64/stb_identify.a b/Document/新/stb_pc_sdk_release_20250418_副本/macOS/x86_64/stb_identify.a
new file mode 100644 (file)
index 0000000..3f20503
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250418_\345\211\257\346\234\254/macOS/x86_64/stb_identify.a" differ
diff --git a/Document/新/stb_pc_sdk_release_20250418_副本/macOS/x86_64/stb_identify.so b/Document/新/stb_pc_sdk_release_20250418_副本/macOS/x86_64/stb_identify.so
new file mode 100644 (file)
index 0000000..addead3
Binary files /dev/null and "b/Document/\346\226\260/stb_pc_sdk_release_20250418_\345\211\257\346\234\254/macOS/x86_64/stb_identify.so" differ
diff --git a/Document/新/字节鉴权.log b/Document/新/字节鉴权.log
new file mode 100644 (file)
index 0000000..6c3b242
--- /dev/null
@@ -0,0 +1,434 @@
+timeout not support. will lock forever.
+2025-04-18 17:55:54:812 ~ [LogManager] 日志路径 /Users/yaozuopan/Library/Containers/zhihuishixun.MouseSdk/Data/Documents/AiMouseSdk/2025-04-18 17:55:54:810.log
+2025-04-18 17:55:54:812 ~ [LogManager]MouseSdk_v2025041501
+2025-04-18 17:55:54:812 ~ [LogManager]app type 2
+2025-04-18 17:55:54:812 ~ [LogManager][HidManager] 关闭hid
+2025-04-18 17:55:54:813 ~ [LogManager][HidManager] 关闭hid成功!
+2025-04-18 17:55:56:451 ~ [LogManager][HidManager] 打开hid成功!
+2025-04-18 17:55:56:566 ~ [LogManager][STBS]
+2025-04-18 17:55:56:566 ~ [LogManager]
+2025-04-18 17:55:56:566 ~ [LogManager][STBS]
+2025-04-18 17:55:56:566 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:55:56:615 ~ [LogManager][BleManager] 当前电脑蓝牙状态 = 5
+2025-04-18 17:55:59:811 ~ [LogManager][BleManager] 配对匹配过的设备VMouse
+2025-04-18 17:55:59:812 ~ [LogManager][BleManager] 连接设备 <CBPeripheral: 0x6000000e0d00, identifier = C730BE9C-EB76-0B05-F828-0D0EC87C9A38, name = VMouse, mtu = 0, state = disconnected>
+2025-04-18 17:55:59:812 ~ [LogManager][HidManager] 关闭hid
+2025-04-18 17:55:59:812 ~ [LogManager][HidManager] 关闭hid成功!
+2025-04-18 17:55:59:813 ~ [LogManager][HidManager] 打开hid成功!
+2025-04-18 17:55:59:817 ~ [LogManager][BleManager] 发现服务(
+    "<CBService: 0x600002ebae00, isPrimary = YES, UUID = Device Information>",
+    "<CBService: 0x600002ebde80, isPrimary = YES, UUID = FFF1>",
+    "<CBService: 0x600002ebdec0, isPrimary = YES, UUID = 02F00000-0000-0000-0000-00000000FE00>",
+    "<CBService: 0x600002ebdf00, isPrimary = YES, UUID = Battery>"
+)
+2025-04-18 17:55:59:819 ~ [LogManager][BleManager] 2A27
+2025-04-18 17:55:59:819 ~ [LogManager][BleManager] <CBCharacteristic: 0x600001fc4fc0, UUID = Hardware Revision String, properties = 0x2, value = {length = 4, bytes = 0x56312e30}, notifying = NO>
+2025-04-18 17:55:59:819 ~ [LogManager][BleManager] 2A26
+2025-04-18 17:55:59:819 ~ [LogManager][BleManager] Firmware Revision = V1.0.109
+2025-04-18 17:55:59:819 ~ [LogManager][BleManager] <CBCharacteristic: 0x600001fc6160, UUID = Firmware Revision String, properties = 0x2, value = {length = 8, bytes = 0x56312e302e313039}, notifying = NO>
+2025-04-18 17:55:59:834 ~ [LogManager][BleManager] 0783B03E-8535-B5A0-7140-A304D2194CB8
+2025-04-18 17:55:59:835 ~ [LogManager][BleManager] <CBCharacteristic: 0x600001fdc3c0, UUID = 0783B03E-8535-B5A0-7140-A304D2194CB8, properties = 0x1C, value = (null), notifying = NO>
+2025-04-18 17:55:59:835 ~ [LogManager][BleManager] 0783B03E-8535-B5A0-7140-A304D2495CB9
+2025-04-18 17:55:59:835 ~ [LogManager][BleManager] <CBCharacteristic: 0x600001fdc600, UUID = 0783B03E-8535-B5A0-7140-A304D2495CB9, properties = 0x1C, value = (null), notifying = NO>
+2025-04-18 17:55:59:835 ~ [LogManager][BleManager] 0783B63E-8535-B5A0-7140-A304D2495CB6
+2025-04-18 17:55:59:835 ~ [LogManager][BleManager] <CBCharacteristic: 0x600001fdc660, UUID = 0783B63E-8535-B5A0-7140-A304D2495CB6, properties = 0x1C, value = (null), notifying = NO>
+2025-04-18 17:55:59:835 ~ [LogManager][BleManager] 0783B73E-8535-B5A0-7140-A304D2194CB7
+2025-04-18 17:55:59:835 ~ [LogManager][BleManager] <CBCharacteristic: 0x600001fdc420, UUID = 0783B73E-8535-B5A0-7140-A304D2194CB7, properties = 0x1C, value = (null), notifying = NO>
+2025-04-18 17:55:59:849 ~ [LogManager][BleManager] 02F00000-0000-0000-0000-00000000FF03
+2025-04-18 17:55:59:849 ~ [LogManager][BleManager] <CBCharacteristic: 0x600001fdc540, UUID = 02F00000-0000-0000-0000-00000000FF03, properties = 0x2, value = (null), notifying = NO>
+2025-04-18 17:55:59:849 ~ [LogManager][BleManager] 02F00000-0000-0000-0000-00000000FF02
+2025-04-18 17:55:59:850 ~ [LogManager][BleManager] <CBCharacteristic: 0x600001fdc4e0, UUID = 02F00000-0000-0000-0000-00000000FF02, properties = 0x12, value = (null), notifying = NO>
+2025-04-18 17:55:59:850 ~ [LogManager][BleManager] 02F00000-0000-0000-0000-00000000FF00
+2025-04-18 17:55:59:850 ~ [LogManager][BleManager] <CBCharacteristic: 0x600001fdc480, UUID = 02F00000-0000-0000-0000-00000000FF00, properties = 0x2, value = (null), notifying = NO>
+2025-04-18 17:55:59:850 ~ [LogManager][BleManager] 02F00000-0000-0000-0000-00000000FF01
+2025-04-18 17:55:59:850 ~ [LogManager][BleManager] <CBCharacteristic: 0x600001fdc6c0, UUID = 02F00000-0000-0000-0000-00000000FF01, properties = 0xC, value = (null), notifying = NO>
+2025-04-18 17:55:59:850 ~ [LogManager][BleManager] 2A19
+2025-04-18 17:55:59:850 ~ [LogManager][BleManager] <CBCharacteristic: 0x600001fe8000, UUID = Battery Level, properties = 0x12, value = {length = 1, bytes = 0x60}, notifying = NO>
+2025-04-18 17:56:00:884 ~ [LogManager][BleManager] 连接成功 = VMouse
+2025-04-18 17:56:00:885 ~ [LogManager][frk]sdk切换到蓝牙模式
+2025-04-18 17:56:00:885 ~ [LogManager][frk][send][info]-$${"cmd":"get_battery_power"}$$-
+2025-04-18 17:56:00:885 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F626174746572795F706F776572227D24242D0A
+2025-04-18 17:56:00:918 ~ [LogManager][frk][receive][info] 7B22626174746572795F706F776572223A223937227D
+2025-04-18 17:56:00:919 ~ [LogManager][frk][receive][info] {"battery_power":"97"}
+2025-04-18 17:56:00:919 ~ [LogManager][frk][send][info]-$${"cmd":"get_CPI"}$$-
+2025-04-18 17:56:00:919 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F435049227D24242D0A
+2025-04-18 17:56:00:942 ~ [LogManager][frk][receive][info] 7B22435049223A22383030227D
+2025-04-18 17:56:00:942 ~ [LogManager][frk][receive][info] {"CPI":"800"}
+2025-04-18 17:56:00:943 ~ [LogManager][frk][send][info]-$${"cmd":"get_CPI_list"}$$-
+2025-04-18 17:56:00:943 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F4350495F6C697374227D24242D0A
+2025-04-18 17:56:00:965 ~ [LogManager][frk][receive][info] 7B224350495F6C697374223A223630302C3830302C313030302C313330302C31363030227D
+2025-04-18 17:56:00:965 ~ [LogManager][frk][receive][info] {"CPI_list":"600,800,1000,1300,1600"}
+2025-04-18 17:56:00:965 ~ [LogManager][frk][send][info]-$${"cmd":"get_version"}$$-
+2025-04-18 17:56:00:965 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F76657273696F6E227D24242D0A
+2025-04-18 17:56:00:987 ~ [LogManager][frk][receive][info] 7B2276657273696F6E223A2276312E32342E31322E32345F74227D
+2025-04-18 17:56:00:987 ~ [LogManager][frk][receive][info] {"version":"v1.24.12.24_t"}
+2025-04-18 17:56:00:987 ~ [LogManager][frk][send][info]-$${"cmd":"get_brand"}$$-
+2025-04-18 17:56:00:988 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F6272616E64227D24242D0A
+2025-04-18 17:56:01:010 ~ [LogManager][frk][receive][info] 7B226272616E64223A22564D6F757365227D
+2025-04-18 17:56:01:010 ~ [LogManager][frk][receive][info] {"brand":"VMouse"}
+2025-04-18 17:56:01:010 ~ [LogManager][frk][send][info]-$${"cmd":"get_SN"}$$-
+2025-04-18 17:56:01:010 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F534E227D24242D0A
+2025-04-18 17:56:01:032 ~ [LogManager][frk][receive][info] 7B22534E223A224D53434C31424B5A3132313035303030303432333731227D
+2025-04-18 17:56:01:032 ~ [LogManager][frk][receive][info] {"SN":"MSCL1BKZ12105000042371"}
+2025-04-18 17:56:01:032 ~ [LogManager][frk][send][info]-$${"cmd":"get_MAC"}$$-
+2025-04-18 17:56:01:032 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F4D4143227D24242D0A
+2025-04-18 17:56:01:054 ~ [LogManager][frk][receive][info] 7B224D4143223A22433033313030303041353833227D
+2025-04-18 17:56:01:054 ~ [LogManager][frk][receive][info] {"MAC":"C0310000A583"}
+2025-04-18 17:56:01:055 ~ [LogManager][frk][send][info]-$${"cmd":"get_productKey"}$$-
+2025-04-18 17:56:01:055 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F70726F647563744B6579227D24242D0A
+2025-04-18 17:56:01:077 ~ [LogManager][frk][receive][info] 7B2270726F647563744B6579223A22636376556F4A4F4C62586E227D
+2025-04-18 17:56:01:078 ~ [LogManager][frk][receive][info] {"productKey":"ccvUoJOLbXn"}
+2025-04-18 17:56:01:078 ~ [LogManager][frk][send][info]-$${"cmd":"get_secretKey"}$$-
+2025-04-18 17:56:01:078 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F7365637265744B6579227D24242D0A
+2025-04-18 17:56:01:107 ~ [LogManager][frk][receive][info] 7B227365637265744B6579223A226E4E526A6B52704B5478767072476157227D
+2025-04-18 17:56:01:107 ~ [LogManager][frk][receive][info] {"secretKey":"nNRjkRpKTxvprGaW"}
+2025-04-18 17:56:01:107 ~ [LogManager][frk][send][info]-$${"cmd":"get_deviceSecret"}$$-
+2025-04-18 17:56:01:108 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F646576696365536563726574227D24242D0A
+2025-04-18 17:56:01:137 ~ [LogManager][frk][receive][info] 7B22646576696365536563726574223A226662663162346133306333663337386133393935663864643930393633616639227D
+2025-04-18 17:56:01:137 ~ [LogManager][frk][receive][info] {"deviceSecret":"fbf1b4a30c3f378a3995f8dd90963af9"}
+timeout not support. will lock forever.
+2025-04-18 17:56:01:137 ~ [LogManager][STBS]
+2025-04-18 17:56:01:137 ~ [LogManager]MGNT:SEND BLE DATA
+2025-04-18 17:56:01:138 ~ [LogManager][STBS]
+2025-04-18 17:56:01:138 ~ [LogManager]MGNT:SEND BLE DATA
+2025-04-18 17:56:01:138 ~ [LogManager]send_data2device = 01
+2025-04-18 17:56:01:138 ~ [LogManager][frk][send] 2D24240124242D
+2025-04-18 17:56:01:168 ~ [LogManager][STBS]
+2025-04-18 17:56:01:168 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:01:189 ~ [LogManager][frk][receive][info] 0201
+2025-04-18 17:56:01:189 ~ [LogManager][frk][receive][info] \^B\^A
+timeout not support. will lock forever.
+timeout not support. will lock forever.
+timeout not support. will lock forever.
+2025-04-18 17:56:01:190 ~ [LogManager]send_data2device = 07 31 37 34 34 39 37 30 31 36 31 31 38 39
+2025-04-18 17:56:01:190 ~ [LogManager][STBS]
+2025-04-18 17:56:01:190 ~ [LogManager]\^A
+2025-04-18 17:56:01:190 ~ [LogManager][STBS]
+2025-04-18 17:56:01:190 ~ [LogManager]\^A
+2025-04-18 17:56:01:190 ~ [LogManager][STBS]
+2025-04-18 17:56:01:190 ~ [LogManager][frk][send] 2D2424073137343439373031363131383924242D
+2025-04-18 17:56:01:191 ~ [LogManager]
+2025-04-18 17:56:01:191 ~ [LogManager][STBS]
+2025-04-18 17:56:01:191 ~ [LogManager]
+2025-04-18 17:56:01:191 ~ [LogManager][STBS]
+2025-04-18 17:56:01:191 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:01:191 ~ [LogManager][STBS]
+2025-04-18 17:56:01:191 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:01:191 ~ [LogManager][STBS]
+2025-04-18 17:56:01:192 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:01:192 ~ [LogManager][STBS]
+2025-04-18 17:56:01:192 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:01:226 ~ [LogManager][frk][receive][info] 086B317238644E6559325569007BB935011ED13E2DC7A89680C008A51E5DF5F6F0433033313030303041353833
+2025-04-18 17:56:01:226 ~ [LogManager][frk][receive][info] (null)
+timeout not support. will lock forever.
+timeout not support. will lock forever.
+timeout not support. will lock forever.
+2025-04-18 17:56:01:226 ~ [LogManager][STBS]
+2025-04-18 17:56:01:226 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:01:226 ~ [LogManager][STBS]
+2025-04-18 17:56:01:227 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:01:227 ~ [LogManager][STBS]
+2025-04-18 17:56:01:227 ~ [LogManager]
+2025-04-18 17:56:01:227 ~ [LogManager][STBS]
+2025-04-18 17:56:01:227 ~ [LogManager]
+2025-04-18 17:56:01:227 ~ [LogManager][STBS]
+2025-04-18 17:56:01:227 ~ [LogManager]
+2025-04-18 17:56:01:250 ~ [LogManager][STBS]
+2025-04-18 17:56:01:250 ~ [LogManager]
+2025-04-18 17:56:01:250 ~ [LogManager][STBS]
+2025-04-18 17:56:01:250 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:01:251 ~ [LogManager][STBS]
+2025-04-18 17:56:01:251 ~ [LogManager]
+2025-04-18 17:56:01:251 ~ [LogManager][STBS]
+2025-04-18 17:56:01:251 ~ [LogManager]
+2025-04-18 17:56:01:251 ~ [LogManager][STBS]
+2025-04-18 17:56:01:251 ~ [LogManager]
+2025-04-18 17:56:01:252 ~ [LogManager][STBS]
+2025-04-18 17:56:01:252 ~ [LogManager]
+2025-04-18 17:56:01:252 ~ [LogManager][STBS]
+2025-04-18 17:56:01:252 ~ [LogManager]
+2025-04-18 17:56:01:317 ~ [LogManager][STBS]
+2025-04-18 17:56:01:318 ~ [LogManager]\^H\^B……
+2025-04-18 17:56:01:318 ~ [LogManager][STBS]
+2025-04-18 17:56:01:318 ~ [LogManager]\^H\^B……
+2025-04-18 17:56:01:318 ~ [LogManager][STBS]
+2025-04-18 17:56:01:318 ~ [LogManager][1744970161.317][LK-1000] establish mbedtls connection with server(host='iot-060aenzm.mq阿
+2025-04-18 17:56:01:508 ~ [LogManager][STBS]
+2025-04-18 17:56:01:508 ~ [LogManager][1744970161.508][LK-1000] success to establish mbedtls connection, (cost 50394 bytes in total, max used 53470 bytes)
+timeout not support. will lock forever.
+2025-04-18 17:56:01:594 ~ [LogManager][STBS]
+2025-04-18 17:56:01:595 ~ [LogManager]
+2025-04-18 17:56:01:595 ~ [LogManager][STBS]
+2025-04-18 17:56:01:595 ~ [LogManager]
+2025-04-18 17:56:01:595 ~ [LogManager][STBS]
+2025-04-18 17:56:01:595 ~ [LogManager]
+2025-04-18 17:56:01:595 ~ [LogManager][STBS]
+2025-04-18 17:56:01:595 ~ [LogManager]
+2025-04-18 17:56:01:595 ~ [LogManager]send_data2device = 09 00
+2025-04-18 17:56:01:596 ~ [LogManager][STBS]
+2025-04-18 17:56:01:596 ~ [LogManager]
+2025-04-18 17:56:01:596 ~ [LogManager]STB_MQTT_CONNECT_SUCCESS
+timeout not support. will lock forever.
+timeout not support. will lock forever.
+2025-04-18 17:56:01:596 ~ [LogManager][frk][send] 2D2424090024242D
+2025-04-18 17:56:01:596 ~ [LogManager]event_callback type = 4278255616,data =
+2025-04-18 17:56:01:596 ~ [LogManager]str =
+2025-04-18 17:56:01:596 ~ [LogManager]STB_MQTT_CONNECT_ONLINE
+2025-04-18 17:56:01:596 ~ [LogManager]event_callback type = 4278255620,data =
+2025-04-18 17:56:01:597 ~ [LogManager]str =
+2025-04-18 17:56:01:597 ~ [LogManager][STBS]
+2025-04-18 17:56:01:597 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:01:597 ~ [LogManager][STBS]
+2025-04-18 17:56:01:597 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:01:597 ~ [LogManager][STBS]
+2025-04-18 17:56:01:597 ~ [LogManager]wating for Mqtt Sem
+2025-04-18 17:56:01:597 ~ [LogManager][STBS]
+2025-04-18 17:56:01:597 ~ [LogManager]
+2025-04-18 17:56:01:598 ~ [LogManager][STBS]
+2025-04-18 17:56:01:598 ~ [LogManager]
+2025-04-18 17:56:01:598 ~ [LogManager][STBS]
+2025-04-18 17:56:01:598 ~ [LogManager]wating for Mqtt Sem
+2025-04-18 17:56:01:598 ~ [LogManager][STBS]
+2025-04-18 17:56:01:599 ~ [LogManager]wating for Mqtt Sem
+2025-04-18 17:56:01:599 ~ [LogManager][STBS]
+2025-04-18 17:56:01:599 ~ [LogManager]
+2025-04-18 17:56:01:599 ~ [LogManager][STBS]
+2025-04-18 17:56:01:599 ~ [LogManager]
+2025-04-18 17:56:01:599 ~ [LogManager][STBS]
+2025-04-18 17:56:01:599 ~ [LogManager]
+2025-04-18 17:56:01:599 ~ [LogManager][STBS]
+2025-04-18 17:56:01:600 ~ [LogManager]
+2025-04-18 17:56:01:600 ~ [LogManager][STBS]
+2025-04-18 17:56:01:600 ~ [LogManager]
+2025-04-18 17:56:01:600 ~ [LogManager][STBS]
+2025-04-18 17:56:01:600 ~ [LogManager]
+2025-04-18 17:56:01:600 ~ [LogManager][STBS]
+2025-04-18 17:56:01:600 ~ [LogManager]
+2025-04-18 17:56:01:600 ~ [LogManager][STBS]
+2025-04-18 17:56:01:600 ~ [LogManager]
+2025-04-18 17:56:01:600 ~ [LogManager][STBS]
+2025-04-18 17:56:01:601 ~ [LogManager]
+2025-04-18 17:56:01:601 ~ [LogManager][STBS]
+2025-04-18 17:56:01:601 ~ [LogManager]
+2025-04-18 17:56:01:601 ~ [LogManager][STBS]
+2025-04-18 17:56:01:601 ~ [LogManager]
+2025-04-18 17:56:01:601 ~ [LogManager][STBS]
+2025-04-18 17:56:01:601 ~ [LogManager]
+2025-04-18 17:56:01:601 ~ [LogManager][STBS]
+2025-04-18 17:56:01:601 ~ [LogManager]
+2025-04-18 17:56:01:602 ~ [LogManager][STBS]
+2025-04-18 17:56:01:603 ~ [LogManager]wating for Mqtt Sem
+2025-04-18 17:56:01:603 ~ [LogManager][STBS]
+2025-04-18 17:56:01:603 ~ [LogManager]wating for Mqtt Sem
+2025-04-18 17:56:01:603 ~ [LogManager][STBS]
+2025-04-18 17:56:01:603 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:01:645 ~ [LogManager][STBS]
+2025-04-18 17:56:01:646 ~ [LogManager][1744970161.645][LK-0000] MQTT Packet Type: 53456
+BOOL _NSPersistentUIDeleteItemAtFileURL(NSURL *const __strong) Failed to stat item: file:///Users/yaozuopan/Library/Containers/zhihuishixun.MouseSdk/Data/Library/Saved%20Application%20State/zhihuishixun.MouseSdk.savedState/restorecount.plist
+timeout not support. will lock forever.
+2025-04-18 17:56:02:003 ~ [LogManager][STBS]
+2025-04-18 17:56:02:004 ~ [LogManager]
+2025-04-18 17:56:02:004 ~ [LogManager][STBS]
+2025-04-18 17:56:02:004 ~ [LogManager]
+2025-04-18 17:56:02:004 ~ [LogManager]send_data2device = 0B 31 37 34 34 39 37 30 31 36 31 38 30 37 69 6F 74 2D 30 36 30 61 65 6E 7A 6D
+2025-04-18 17:56:02:004 ~ [LogManager][STBS]
+2025-04-18 17:56:02:004 ~ [LogManager]
+2025-04-18 17:56:02:004 ~ [LogManager][STBS]
+2025-04-18 17:56:02:004 ~ [LogManager]
+2025-04-18 17:56:02:005 ~ [LogManager][STBS]
+2025-04-18 17:56:02:005 ~ [LogManager]
+2025-04-18 17:56:02:005 ~ [LogManager][STBS]
+2025-04-18 17:56:02:005 ~ [LogManager]
+2025-04-18 17:56:02:005 ~ [LogManager][STBS]
+2025-04-18 17:56:02:005 ~ [LogManager]
+2025-04-18 17:56:02:005 ~ [LogManager][STBS]
+2025-04-18 17:56:02:006 ~ [LogManager]
+2025-04-18 17:56:02:006 ~ [LogManager][STBS]
+2025-04-18 17:56:02:006 ~ [LogManager]
+2025-04-18 17:56:02:006 ~ [LogManager][STBS]
+2025-04-18 17:56:02:006 ~ [LogManager]
+2025-04-18 17:56:02:006 ~ [LogManager][STBS]
+2025-04-18 17:56:02:006 ~ [LogManager]
+2025-04-18 17:56:02:006 ~ [LogManager][STBS]
+2025-04-18 17:56:02:007 ~ [LogManager]
+2025-04-18 17:56:02:007 ~ [LogManager][STBS]
+2025-04-18 17:56:02:007 ~ [LogManager]
+2025-04-18 17:56:02:007 ~ [LogManager][STBS]
+2025-04-18 17:56:02:007 ~ [LogManager]
+2025-04-18 17:56:02:007 ~ [LogManager][STBS]
+2025-04-18 17:56:02:007 ~ [LogManager]
+2025-04-18 17:56:02:008 ~ [LogManager][STBS]
+2025-04-18 17:56:02:008 ~ [LogManager]
+2025-04-18 17:56:02:008 ~ [LogManager][STBS]
+2025-04-18 17:56:02:008 ~ [LogManager]
+2025-04-18 17:56:02:008 ~ [LogManager][STBS]
+2025-04-18 17:56:02:008 ~ [LogManager]
+2025-04-18 17:56:02:008 ~ [LogManager][STBS]
+2025-04-18 17:56:02:008 ~ [LogManager]
+2025-04-18 17:56:02:009 ~ [LogManager][STBS]
+2025-04-18 17:56:02:009 ~ [LogManager]
+2025-04-18 17:56:02:009 ~ [LogManager][STBS]
+2025-04-18 17:56:02:009 ~ [LogManager]
+2025-04-18 17:56:02:009 ~ [LogManager][STBS]
+2025-04-18 17:56:02:009 ~ [LogManager]
+2025-04-18 17:56:02:010 ~ [LogManager][frk][send] 2D24240B31373434393730313631383037696F742D30363061656E7A6D24242D
+2025-04-18 17:56:02:010 ~ [LogManager][STBS]
+2025-04-18 17:56:02:010 ~ [LogManager]
+2025-04-18 17:56:02:010 ~ [LogManager][STBS]
+2025-04-18 17:56:02:010 ~ [LogManager]
+2025-04-18 17:56:02:010 ~ [LogManager][STBS]
+2025-04-18 17:56:02:010 ~ [LogManager]
+2025-04-18 17:56:02:010 ~ [LogManager][STBS]
+2025-04-18 17:56:02:011 ~ [LogManager]
+2025-04-18 17:56:02:011 ~ [LogManager][STBS]
+2025-04-18 17:56:02:011 ~ [LogManager]
+2025-04-18 17:56:02:011 ~ [LogManager][STBS]
+2025-04-18 17:56:02:011 ~ [LogManager]
+2025-04-18 17:56:02:011 ~ [LogManager][STBS]
+2025-04-18 17:56:02:011 ~ [LogManager]
+2025-04-18 17:56:02:011 ~ [LogManager][STBS]
+2025-04-18 17:56:02:011 ~ [LogManager]
+2025-04-18 17:56:02:012 ~ [LogManager][STBS]
+2025-04-18 17:56:02:012 ~ [LogManager]
+2025-04-18 17:56:02:012 ~ [LogManager][STBS]
+2025-04-18 17:56:02:012 ~ [LogManager]
+2025-04-18 17:56:02:012 ~ [LogManager][STBS]
+2025-04-18 17:56:02:012 ~ [LogManager]
+2025-04-18 17:56:02:012 ~ [LogManager][STBS]
+2025-04-18 17:56:02:012 ~ [LogManager]
+2025-04-18 17:56:02:012 ~ [LogManager][STBS]
+2025-04-18 17:56:02:012 ~ [LogManager]
+2025-04-18 17:56:02:013 ~ [LogManager][STBS]
+2025-04-18 17:56:02:013 ~ [LogManager]
+2025-04-18 17:56:02:013 ~ [LogManager][STBS]
+2025-04-18 17:56:02:013 ~ [LogManager]
+2025-04-18 17:56:02:013 ~ [LogManager][STBS]
+2025-04-18 17:56:02:013 ~ [LogManager]
+2025-04-18 17:56:02:013 ~ [LogManager][STBS]
+2025-04-18 17:56:02:013 ~ [LogManager]
+2025-04-18 17:56:02:013 ~ [LogManager][STBS]
+2025-04-18 17:56:02:013 ~ [LogManager]
+2025-04-18 17:56:02:014 ~ [LogManager][STBS]
+2025-04-18 17:56:02:014 ~ [LogManager]
+2025-04-18 17:56:02:014 ~ [LogManager][STBS]
+2025-04-18 17:56:02:014 ~ [LogManager]
+2025-04-18 17:56:02:014 ~ [LogManager][STBS]
+2025-04-18 17:56:02:014 ~ [LogManager]
+2025-04-18 17:56:02:014 ~ [LogManager]STB_DM_DATA_ARRIVED_TOKEN = YVtJ1IcQkjH43yhLx0oXwt1snFjucCMv
+2025-04-18 17:56:02:014 ~ [LogManager]event_callback type = 4278321152,data = 5956744A314963516B6A48343379684C78306F58777431736E466A7563434D76
+2025-04-18 17:56:02:014 ~ [LogManager]str = YVtJ1IcQkjH43yhLx0oXwt1snFjucCMv
+2025-04-18 17:56:02:014 ~ [LogManager]event_callback type = 4278321153,data = 31373435303536353631383037
+2025-04-18 17:56:02:014 ~ [LogManager]str = 1745056561807
+2025-04-18 17:56:02:014 ~ [LogManager]STB_DM_DATA_ARRIVED_HOST = ainf.tis.cn-beijing.volces.com
+2025-04-18 17:56:02:014 ~ [LogManager]event_callback type = 4278321154,data = 61696E662E7469732E636E2D6265696A696E672E766F6C6365732E636F6D
+2025-04-18 17:56:02:014 ~ [LogManager]str = ainf.tis.cn-beijing.volces.com
+2025-04-18 17:56:02:014 ~ [LogManager][STBS]
+2025-04-18 17:56:02:014 ~ [LogManager]
+2025-04-18 17:56:02:015 ~ [LogManager][STBS]
+2025-04-18 17:56:02:015 ~ [LogManager]
+2025-04-18 17:56:02:015 ~ [LogManager][STBS]
+2025-04-18 17:56:02:015 ~ [LogManager]star send get params sign.
+2025-04-18 17:56:02:015 ~ [LogManager][STBS]
+2025-04-18 17:56:02:015 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:02:015 ~ [LogManager][STBS]
+2025-04-18 17:56:02:015 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:02:015 ~ [LogManager][STBS]
+2025-04-18 17:56:02:015 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:02:051 ~ [LogManager][frk][receive][info] 0CBBDC5DE48C4FB9C4666E0557BF71D9651D2FE75022B4B638E7A42186E31A32D0
+2025-04-18 17:56:02:051 ~ [LogManager][frk][receive][info] (null)
+timeout not support. will lock forever.
+timeout not support. will lock forever.
+2025-04-18 17:56:02:051 ~ [LogManager][STBS]
+2025-04-18 17:56:02:052 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:02:052 ~ [LogManager][STBS]
+2025-04-18 17:56:02:052 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:02:052 ~ [LogManager][STBS]
+2025-04-18 17:56:02:052 ~ [LogManager]
+2025-04-18 17:56:02:052 ~ [LogManager][STBS]
+2025-04-18 17:56:02:052 ~ [LogManager]PeW\^C
+2025-04-18 17:56:02:053 ~ [LogManager][STBS]
+2025-04-18 17:56:02:053 ~ [LogManager]
+2025-04-18 17:56:02:053 ~ [LogManager][STBS]
+2025-04-18 17:56:02:053 ~ [LogManager]
+2025-04-18 17:56:02:053 ~ [LogManager]STB_DM_DATA_ARRIVED_PARAMS_SIGN = productKey=k1r8dNeY2Ui&deviceName=C0310000A583&iotInstanceId=iot-060aenzm&timestamp=1744970161807&sign=bbdc5de48c4fb9c4666e0557bf71d9651d2fe75022b4b638e7a42186e31a32d0
+2025-04-18 17:56:02:053 ~ [LogManager][frk]
+ type = 0 
+ battery_power = 97
+ CPI = 800
+ CPI_list = 600,800,1000,1300,1600
+ version = v1.24.12.24_t
+ brand = VMouse
+ sn = MSCL1BKZ12105000042371
+ mac = C0310000A583
+ productKey = ccvUoJOLbXn
+ secretKey = nNRjkRpKTxvprGaW
+ deviceSecret = fbf1b4a30c3f378a3995f8dd90963af9 
+
+ host = ainf.tis.cn-beijing.volces.com 
+ token = YVtJ1IcQkjH43yhLx0oXwt1snFjucCMv 
+ urlParams = productKey=k1r8dNeY2Ui&deviceName=C0310000A583&iotInstanceId=iot-060aenzm&timestamp=1744970161807&sign=bbdc5de48c4fb9c4666e0557bf71d9651d2fe75022b4b638e7a42186e31a32d0 
+ expireTime = 1745056561807
+2025-04-18 17:56:02:053 ~ [LogManager]event_callback type = 4278321155,data = 70726F647563744B65793D6B317238644E6559325569266465766963654E616D653D43303331303030304135383326696F74496E7374616E636549643D696F742D30363061656E7A6D2674696D657374616D703D31373434393730313631383037267369676E3D62626463356465343863346662396334363636653035353762663731643936353164326665373530323262346236333865376134323138366533316133326430
+2025-04-18 17:56:02:053 ~ [LogManager]str = productKey=k1r8dNeY2Ui&deviceName=C0310000A583&iotInstanceId=iot-060aenzm&timestamp=1744970161807&sign=bbdc5de48c4fb9c4666e0557bf71d9651d2fe75022b4b638e7a42186e31a32d0
+2025-04-18 17:56:02:054 ~ [LogManager][STBS]
+2025-04-18 17:56:02:054 ~ [LogManager]wating for Recv Sem
+2025-04-18 17:56:02:186 ~ [LogManager]蓝牙 设备连接状态返回: true
+2025-04-18 17:56:02:186 ~ [LogManager]app主动获取设备信息 。。。
+2025-04-18 17:56:02:186 ~ [LogManager][frk][send][info]-$${"cmd":"get_battery_power"}$$-
+2025-04-18 17:56:02:186 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F626174746572795F706F776572227D24242D0A
+2025-04-18 17:56:02:216 ~ [LogManager][frk][receive][info] 7B22626174746572795F706F776572223A223936227D
+2025-04-18 17:56:02:216 ~ [LogManager][frk][receive][info] {"battery_power":"96"}
+2025-04-18 17:56:02:217 ~ [LogManager][frk][send][info]-$${"cmd":"get_CPI"}$$-
+2025-04-18 17:56:02:217 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F435049227D24242D0A
+2025-04-18 17:56:02:240 ~ [LogManager][frk][receive][info] 7B22435049223A22383030227D
+2025-04-18 17:56:02:240 ~ [LogManager][frk][receive][info] {"CPI":"800"}
+2025-04-18 17:56:02:240 ~ [LogManager][frk][send][info]-$${"cmd":"get_CPI_list"}$$-
+2025-04-18 17:56:02:240 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F4350495F6C697374227D24242D0A
+2025-04-18 17:56:02:262 ~ [LogManager][frk][receive][info] 7B224350495F6C697374223A223630302C3830302C313030302C313330302C31363030227D
+2025-04-18 17:56:02:262 ~ [LogManager][frk][receive][info] {"CPI_list":"600,800,1000,1300,1600"}
+2025-04-18 17:56:02:262 ~ [LogManager][frk][send][info]-$${"cmd":"get_version"}$$-
+2025-04-18 17:56:02:262 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F76657273696F6E227D24242D0A
+2025-04-18 17:56:02:284 ~ [LogManager][frk][receive][info] 7B2276657273696F6E223A2276312E32342E31322E32345F74227D
+2025-04-18 17:56:02:285 ~ [LogManager][frk][receive][info] {"version":"v1.24.12.24_t"}
+2025-04-18 17:56:02:285 ~ [LogManager][frk][send][info]-$${"cmd":"get_brand"}$$-
+2025-04-18 17:56:02:285 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F6272616E64227D24242D0A
+2025-04-18 17:56:02:307 ~ [LogManager][frk][receive][info] 7B226272616E64223A22564D6F757365227D
+2025-04-18 17:56:02:307 ~ [LogManager][frk][receive][info] {"brand":"VMouse"}
+2025-04-18 17:56:02:307 ~ [LogManager][frk][send][info]-$${"cmd":"get_SN"}$$-
+2025-04-18 17:56:02:307 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F534E227D24242D0A
+2025-04-18 17:56:02:329 ~ [LogManager][frk][receive][info] 7B22534E223A224D53434C31424B5A3132313035303030303432333731227D
+2025-04-18 17:56:02:329 ~ [LogManager][frk][receive][info] {"SN":"MSCL1BKZ12105000042371"}
+2025-04-18 17:56:02:330 ~ [LogManager][frk][send][info]-$${"cmd":"get_MAC"}$$-
+2025-04-18 17:56:02:330 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F4D4143227D24242D0A
+2025-04-18 17:56:02:352 ~ [LogManager][frk][receive][info] 7B224D4143223A22433033313030303041353833227D
+2025-04-18 17:56:02:352 ~ [LogManager][frk][receive][info] {"MAC":"C0310000A583"}
+2025-04-18 17:56:02:352 ~ [LogManager][frk][send][info]-$${"cmd":"get_productKey"}$$-
+2025-04-18 17:56:02:353 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F70726F647563744B6579227D24242D0A
+2025-04-18 17:56:02:374 ~ [LogManager][frk][receive][info] 7B2270726F647563744B6579223A22636376556F4A4F4C62586E227D
+2025-04-18 17:56:02:374 ~ [LogManager][frk][receive][info] {"productKey":"ccvUoJOLbXn"}
+2025-04-18 17:56:02:375 ~ [LogManager][frk][send][info]-$${"cmd":"get_secretKey"}$$-
+2025-04-18 17:56:02:375 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F7365637265744B6579227D24242D0A
+2025-04-18 17:56:02:397 ~ [LogManager][frk][receive][info] 7B227365637265744B6579223A226E4E526A6B52704B5478767072476157227D
+2025-04-18 17:56:02:397 ~ [LogManager][frk][receive][info] {"secretKey":"nNRjkRpKTxvprGaW"}
+2025-04-18 17:56:02:397 ~ [LogManager][frk][send][info]-$${"cmd":"get_deviceSecret"}$$-
+2025-04-18 17:56:02:397 ~ [LogManager][frk][send][info]2D24247B22636D64223A226765745F646576696365536563726574227D24242D0A
+2025-04-18 17:56:02:427 ~ [LogManager][frk][receive][info] 7B22646576696365536563726574223A226662663162346133306333663337386133393935663864643930393633616639227D
+2025-04-18 17:56:02:427 ~ [LogManager][frk][receive][info] {"deviceSecret":"fbf1b4a30c3f378a3995f8dd90963af9"}
+2025-04-18 17:56:02:427 ~ [LogManager][frk]
+ type = 0 
+ battery_power = 96
+ CPI = 800
+ CPI_list = 600,800,1000,1300,1600
+ version = v1.24.12.24_t
+ brand = VMouse
+ sn = MSCL1BKZ12105000042371
+ mac = C0310000A583
+ productKey = ccvUoJOLbXn
+ secretKey = nNRjkRpKTxvprGaW
+ deviceSecret = fbf1b4a30c3f378a3995f8dd90963af9 
+
+ host = ainf.tis.cn-beijing.volces.com 
+ token = YVtJ1IcQkjH43yhLx0oXwt1snFjucCMv 
+ urlParams = productKey=k1r8dNeY2Ui&deviceName=C0310000A583&iotInstanceId=iot-060aenzm&timestamp=1744970161807&sign=bbdc5de48c4fb9c4666e0557bf71d9651d2fe75022b4b638e7a42186e31a32d0 
+ expireTime = 1745056561807
+Message from debugger: killed
\ No newline at end of file
diff --git a/Document/新/富瑞坤无鉴权uuid.txt b/Document/新/富瑞坤无鉴权uuid.txt
new file mode 100644 (file)
index 0000000..46940a2
--- /dev/null
@@ -0,0 +1,29 @@
+2025-04-19 11:04:45:150 ~ [LogManager][BleManager] 发现服务 
+ (
+    "<CBService: 0x600001c19600, isPrimary = YES, UUID = Device Information>",
+    "<CBService: 0x600001c19700, isPrimary = YES, UUID = FFF1>",
+    "<CBService: 0x600001c19740, isPrimary = YES, UUID = 02F00000-0000-0000-0000-00000000FE00>",
+    "<CBService: 0x600001c19780, isPrimary = YES, UUID = Battery>"
+)
+2025-04-19 11:04:45:151 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600001c19600, isPrimary = YES, UUID = Device Information>
+(
+    "<CBCharacteristic: 0x600002d68a80, UUID = Hardware Revision String, properties = 0x2, value = {length = 4, bytes = 0x56312e30}, notifying = NO>",
+    "<CBCharacteristic: 0x600002d68ba0, UUID = Firmware Revision String, properties = 0x2, value = {length = 8, bytes = 0x56312e302e313039}, notifying = NO>"
+)
+2025-04-19 11:04:45:152 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600001c19700, isPrimary = YES, UUID = FFF1>
+(
+    "<CBCharacteristic: 0x600002d68120, UUID = 0783B03E-8535-B5A0-7140-A304D2194CB8, properties = 0x1C, value = {length = 16, bytes = 0x0affff2fbc2800040101c045028a1164}, notifying = NO>",
+    "<CBCharacteristic: 0x600002d68000, UUID = 0783B03E-8535-B5A0-7140-A304D2495CB9, properties = 0x1C, value = (null), notifying = NO>",
+    "<CBCharacteristic: 0x600002d688a0, UUID = 0783B63E-8535-B5A0-7140-A304D2495CB6, properties = 0x1C, value = {length = 103, bytes = 0x7b226465 76696365 53656372 6574223a ... ffffffff 5638227d }, notifying = NO>",
+    "<CBCharacteristic: 0x600002d681e0, UUID = 0783B73E-8535-B5A0-7140-A304D2194CB7, properties = 0x1C, value = (null), notifying = NO>"
+)
+2025-04-19 11:04:45:152 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600001c19740, isPrimary = YES, UUID = 02F00000-0000-0000-0000-00000000FE00>
+(
+    "<CBCharacteristic: 0x600002d68180, UUID = 02F00000-0000-0000-0000-00000000FF03, properties = 0x2, value = (null), notifying = NO>",
+    "<CBCharacteristic: 0x600002d69380, UUID = 02F00000-0000-0000-0000-00000000FF02, properties = 0x12, value = (null), notifying = NO>",
+    "<CBCharacteristic: 0x600002d693e0, UUID = 02F00000-0000-0000-0000-00000000FF00, properties = 0x2, value = (null), notifying = NO>",
+    "<CBCharacteristic: 0x600002d69440, UUID = 02F00000-0000-0000-0000-00000000FF01, properties = 0xC, value = (null), notifying = NO>"
+)
\ No newline at end of file
diff --git a/Document/新/泰凌微无鉴权uuid.txt b/Document/新/泰凌微无鉴权uuid.txt
new file mode 100644 (file)
index 0000000..422945b
--- /dev/null
@@ -0,0 +1,37 @@
+2025-04-19 11:09:15:425 ~ [LogManager][BleManager] 发现服务
+ (
+    "<CBService: 0x600002db1340, isPrimary = YES, UUID = Device Information>",
+    "<CBService: 0x600002db1740, isPrimary = YES, UUID = Battery>",
+    "<CBService: 0x600002db1780, isPrimary = YES, UUID = 00010203-0405-0607-0809-0A0B0C0D1912>",
+    "<CBService: 0x600002db17c0, isPrimary = YES, UUID = 00010203-0405-0607-0809-0A0B0C0D1911>",
+    "<CBService: 0x600002db1840, isPrimary = YES, UUID = FFF0>"
+)
+2025-04-19 11:09:15:426 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600002db1340, isPrimary = YES, UUID = Device Information>
+(
+    "<CBCharacteristic: 0x600001cfb000, UUID = PnP ID, properties = 0x2, value = {length = 7, bytes = 0x028a2466820100}, notifying = NO>"
+)
+2025-04-19 11:09:15:427 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600002db1740, isPrimary = YES, UUID = Battery>
+(
+    "<CBCharacteristic: 0x600001cd3420, UUID = Battery Level, properties = 0x12, value = {length = 1, bytes = 0x4c}, notifying = NO>"
+)
+2025-04-19 11:09:15:427 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600002db1780, isPrimary = YES, UUID = 00010203-0405-0607-0809-0A0B0C0D1912>
+(
+    "<CBCharacteristic: 0x600001cd0600, UUID = 00010203-0405-0607-0809-0A0B0C0D2B12, properties = 0x6, value = (null), notifying = NO>",
+    "<CBCharacteristic: 0x600001cd3a80, UUID = 6971656B-676E-6179-6971-656B676E6179, properties = 0x2, value = (null), notifying = NO>"
+)
+2025-04-19 11:09:15:427 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600002db17c0, isPrimary = YES, UUID = 00010203-0405-0607-0809-0A0B0C0D1911>
+(
+    "<CBCharacteristic: 0x600001cd3480, UUID = 00010203-0405-0607-0809-0A0B0C0D2B18, properties = 0x12, value = (null), notifying = NO>",
+    "<CBCharacteristic: 0x600001cd36c0, UUID = 00010203-0405-0607-0809-0A0B0C0D2B19, properties = 0x6, value = (null), notifying = NO>"
+)
+2025-04-19 11:09:15:428 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600002db1840, isPrimary = YES, UUID = FFF0>
+(
+    "<CBCharacteristic: 0x600001cd3c60, UUID = FFF1, properties = 0x8, value = (null), notifying = NO>",
+    "<CBCharacteristic: 0x600001cd3d20, UUID = FFF2, properties = 0x12, value = {length = 20, bytes = 0x22021048584137000000003031e64d2311d7d000}, notifying = NO>",
+    "<CBCharacteristic: 0x600001cd3d80, UUID = FFF3, properties = 0x2, value = (null), notifying = NO>"
+)
\ No newline at end of file
diff --git a/Document/新/泰凌微鉴权uuid.txt b/Document/新/泰凌微鉴权uuid.txt
new file mode 100644 (file)
index 0000000..242f53f
--- /dev/null
@@ -0,0 +1,44 @@
+2025-04-19 11:08:11:486 ~ [LogManager][BleManager] 发现服务
+ (
+    "<CBService: 0x600001719700, isPrimary = YES, UUID = Device Information>",
+    "<CBService: 0x600001718dc0, isPrimary = YES, UUID = Battery>",
+    "<CBService: 0x600001719040, isPrimary = YES, UUID = 00010203-0405-0607-0809-0A0B0C0D1912>",
+    "<CBService: 0x600001718d40, isPrimary = YES, UUID = FFF0>",
+    "<CBService: 0x600001718040, isPrimary = YES, UUID = FFF0>",
+    "<CBService: 0x600001718180, isPrimary = YES, UUID = FFF1>"
+)
+2025-04-19 11:08:11:487 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600001719700, isPrimary = YES, UUID = Device Information>
+(
+    "<CBCharacteristic: 0x6000026a4ae0, UUID = PnP ID, properties = 0x2, value = {length = 7, bytes = 0x028a2466820100}, notifying = NO>"
+)
+2025-04-19 11:08:11:487 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600001718dc0, isPrimary = YES, UUID = Battery>
+(
+    "<CBCharacteristic: 0x6000026a4c60, UUID = Battery Level, properties = 0x12, value = {length = 1, bytes = 0x64}, notifying = NO>"
+)
+2025-04-19 11:08:11:488 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600001719040, isPrimary = YES, UUID = 00010203-0405-0607-0809-0A0B0C0D1912>
+(
+    "<CBCharacteristic: 0x6000026a4ea0, UUID = 00010203-0405-0607-0809-0A0B0C0D2B12, properties = 0x6, value = (null), notifying = NO>",
+    "<CBCharacteristic: 0x6000026a4420, UUID = 00010203-0405-0607-0809-0A0B0C0D2B14, properties = 0x2, value = (null), notifying = NO>",
+    "<CBCharacteristic: 0x6000026a4cc0, UUID = 00010203-0405-0607-0809-0A0B0C0D2B15, properties = 0x16, value = (null), notifying = NO>"
+)
+2025-04-19 11:08:11:488 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600001718d40, isPrimary = YES, UUID = FFF0>
+(
+    "<CBCharacteristic: 0x6000026a4de0, UUID = B03E, properties = 0x12, value = (null), notifying = NO>"
+)
+2025-04-19 11:08:11:488 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600001718040, isPrimary = YES, UUID = FFF0>
+(
+    "<CBCharacteristic: 0x6000026a4e40, UUID = FFF1, properties = 0x8, value = (null), notifying = NO>",
+    "<CBCharacteristic: 0x6000026a4ba0, UUID = FFF2, properties = 0x12, value = (null), notifying = NO>",
+    "<CBCharacteristic: 0x6000026a4b40, UUID = FFF3, properties = 0x2, value = (null), notifying = NO>"
+)
+2025-04-19 11:08:11:489 ~ [LogManager][BleManager] 发现特征
+<CBService: 0x600001718180, isPrimary = YES, UUID = FFF1>
+(
+    "<CBCharacteristic: 0x6000026a5080, UUID = 0783B63E-8535-B5A0-7140-A304D2495CB6, properties = 0x18, value = {length = 77, bytes = 0x7b226465 76696365 53656372 6574223a ... 564d6f75 7365227d }, notifying = NO>",
+    "<CBCharacteristic: 0x6000026a4f60, UUID = 0783B03E-8535-B5A0-7140-A304D2194CB8, properties = 0x18, value = {length = 16, bytes = 0x0a670064012600ff0101d72200846670}, notifying = NO>"
+)
\ No newline at end of file
diff --git a/MouseSdk/AiMouseSdk/AiMouseSdk/AiAudioManager.m b/MouseSdk/AiMouseSdk/AiMouseSdk/AiAudioManager.m
new file mode 100644 (file)
index 0000000..74e12bd
--- /dev/null
@@ -0,0 +1,46 @@
+//
+//  SbcConverter.m
+//  AiMouse
+//
+//  Created by incar on 2024/2/28.
+//
+
+#import "SbcConverter.h"
+#import "AiMouseTools.h"
+#import "AiAudioDecoder.h"
+
+@interface SbcConverter ()
+@property (nonatomic,strong)AiAudioDecoder *audioDecoder;
+@end
+
+@implementation SbcConverter
+
+-(instancetype)init{
+    if (self = [super init]) {
+        [self setupAudioDecoder];
+    }
+    return self;
+}
+
+- (void)receiveData:(NSData *)data{
+    [self.audioDecoder decodeSBCData:data];
+}
+
+- (void)setupAudioDecoder{
+    self.audioDecoder = [AiAudioDecoder sharedInstance];
+    __weak typeof(self) ws = self;
+    self.audioDecoder.onRecvPCMData = ^(NSData * _Nonnull pcmData) {
+        [ws showLog:[NSString stringWithFormat:@"转换后数据%@",[AiMouseTools dataToHexString:pcmData]]];
+        if(ws.decodeCallBack)ws.decodeCallBack(pcmData);
+    };
+    [self.audioDecoder initSBCDecodec];
+}
+
+- (void)showLog:(NSString *)log{
+    if (self.outputLog) {
+        self.outputLog([NSString stringWithFormat:@"[audio] %@",log]);
+    }
+}
+
+
+@end