添加SDK数据交互流程图
authorliangzhenying <867174124@qq.com>
Tue, 12 Mar 2024 03:17:13 +0000 (11:17 +0800)
committerliangzhenying <867174124@qq.com>
Tue, 12 Mar 2024 03:17:13 +0000 (11:17 +0800)
Document/AiMouseSdk接口文档.md
Document/sdk框架.jpg [new file with mode: 0644]
Document/数据交互流程.eddx [new file with mode: 0644]
Document/数据交互流程.png [new file with mode: 0644]
MouseSdk/AliIotConnectKitSDK/AliIotConnectKit.xcodeproj/xcshareddata/xcschemes/AliIotConnectKit.xcscheme
MouseSdk/MouseSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate
MouseSdkDemo/AiMouseSdk接口文档.pdf
MouseSdkDemo/MouseSdkDemo.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate
MouseSdkDemo/MouseSdkDemo/BleManager.m

index c5b75c3..bcf2b42 100644 (file)
 \r
   \r
 \r
-​            \r
-\r
-\r
+## 数据交互流程  \r
 \r
+鉴权特征数据走鉴权接口,AI特征数据走AI接口\r
 \r
+![数据交互流程](/Users/apple/Desktop/数据交互流程.png)\r
 \r
diff --git a/Document/sdk框架.jpg b/Document/sdk框架.jpg
new file mode 100644 (file)
index 0000000..9efac89
Binary files /dev/null and "b/Document/sdk\346\241\206\346\236\266.jpg" differ
diff --git a/Document/数据交互流程.eddx b/Document/数据交互流程.eddx
new file mode 100644 (file)
index 0000000..365e1a2
Binary files /dev/null and "b/Document/\346\225\260\346\215\256\344\272\244\344\272\222\346\265\201\347\250\213.eddx" differ
diff --git a/Document/数据交互流程.png b/Document/数据交互流程.png
new file mode 100644 (file)
index 0000000..ba4b941
Binary files /dev/null and "b/Document/\346\225\260\346\215\256\344\272\244\344\272\222\346\265\201\347\250\213.png" differ
index 15d7b35..7fb362e 100755 (executable)
@@ -30,7 +30,7 @@
       shouldAutocreateTestPlan = "YES">
    </TestAction>
    <LaunchAction
-      buildConfiguration = "Release"
+      buildConfiguration = "Debug"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       launchStyle = "0"
index 49a0ec2..f79eee0 100644 (file)
Binary files a/MouseSdk/MouseSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate and b/MouseSdk/MouseSdk.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate differ
index cdb48aa..b16a116 100644 (file)
Binary files "a/MouseSdkDemo/AiMouseSdk\346\216\245\345\217\243\346\226\207\346\241\243.pdf" and "b/MouseSdkDemo/AiMouseSdk\346\216\245\345\217\243\346\226\207\346\241\243.pdf" differ
index ff094a5..84e18a6 100644 (file)
Binary files a/MouseSdkDemo/MouseSdkDemo.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate and b/MouseSdkDemo/MouseSdkDemo.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate differ
index 0e4f6f5..a5673a1 100644 (file)
     [self showLog:[NSString stringWithFormat:@"[send] %@",[AiTools dataToHexString:data]]];
     [self.connectPeripheral writeValue:data forCharacteristic:self.authCha type:CBCharacteristicWriteWithoutResponse];
 }
-/// 指令回调
-/// - Parameter data: 数据
+/// 鼠标按键指令回调
+/// - Parameter data: 数据。AI键0x42单击,0x25按下,0x26抬起 ; 录音键0x51单击,0x32按下。0x31(未知),其他未知
 - (void)aiMouseSendCmdData:(NSData *)data{
     NSString *cmd = [[AiTools dataToHexString:data] lowercaseString];
     if([cmd hasSuffix:@"31"]){
     NSLog(@"%@",log);
 }
 
+//拿到录音数据,可以上传调用AI接口处理
 - (void)finishRecored:(NSData *)data{
     NSString *doc = NSTemporaryDirectory();
     NSString *fullPath = [NSString stringWithFormat:@"%@.pcm",doc];