{"id":89974,"date":"2026-08-04T11:48:37","date_gmt":"2026-08-04T03:48:37","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/89974.html"},"modified":"2026-08-04T11:48:37","modified_gmt":"2026-08-04T03:48:37","slug":"%e5%b9%b2%e8%b4%a7%ef%bd%9c%e5%a4%a7%e7%96%86-dock3-psdk-%e5%96%8a%e8%af%9d%e5%99%a8%e5%af%b9%e6%8e%a5%e6%8c%87%e5%8d%97%ef%bc%88%e9%99%84%e5%ae%9e%e6%b5%8b-mqtt-%e6%8c%87%e4%bb%a4%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/89974.html","title":{"rendered":"\u5e72\u8d27\uff5c\u5927\u7586 Dock3 + PSDK \u558a\u8bdd\u5668\u5bf9\u63a5\u6307\u5357\uff08\u9644\u5b9e\u6d4b MQTT \u6307\u4ee4\uff09"},"content":{"rendered":"<h2>\u5927\u7586 Dock3 \u57fa\u4e8e PSDK \u63a5\u5165\u558a\u8bdd\u5668\u65b9\u6848<\/h2>\n<p>&#x1f4e1; Dji-cloud-api-tool \u00b7 \u6280\u672f\u5e72\u8d27 \u5168\u9762\u89e3\u6790 Dock3 &#043; PSDK \u558a\u8bdd\u5668\u7684\u786c\u4ef6\u63a5\u53e3\u3001\u901a\u4fe1\u534f\u8bae\u4e0e\u4e91\u7aef\u96c6\u6210<\/p>\n<hr \/>\n<h3>1. \u5f15\u8a00<\/h3>\n<p>\u672c\u5468\u5df2\u7ecf\u5c06\u5927\u7586PSDK\u558a\u8bdd\u5668\u529f\u80fd\u5168\u90e8\u96c6\u6210\u5230Dji-cloud-api-tool\u5de5\u5177\u4e2d&#xff0c;\u5e76\u4e14\u529f\u80fd\u8c03\u8bd5\u901a\u8fc7&#xff0c;\u7279\u610f\u6574\u7406\u4e86\u4e00\u4e0b\u5bf9\u63a5\u5b8c\u6574\u65b9\u6848&#xff0c;\u5e0c\u671b\u80fd\u5e2e\u52a9\u5230\u4f60\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804034836-6a71611455b49.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>2. \u6982\u8ff0<\/h3>\n<p>\u672c\u6587\u6863\u8c03\u7814\u57fa\u4e8e\u5927\u7586 Dock3&#xff08;\u914d\u5957 Matrice 4D\/4TD \u98de\u884c\u5e73\u53f0&#xff09;\u901a\u8fc7 PSDK&#xff08;Payload SDK&#xff09;\u63a5\u5165\u558a\u8bdd\u5668\u8d1f\u8f7d\u8bbe\u5907\u7684\u5b8c\u6574\u65b9\u6848&#xff0c;\u6db5\u76d6\u786c\u4ef6\u63a5\u53e3\u3001PSDK \u7aef\u5f00\u53d1\u3001Cloud API \u901a\u4fe1\u534f\u8bae\u3001\u4ee5\u53ca\u7b2c\u4e09\u65b9\u5e73\u53f0\u96c6\u6210\u67b6\u6784\u3002<\/p>\n<h4>2.1 \u6838\u5fc3\u4ea7\u54c1\u5173\u7cfb<\/h4>\n<table>\n<tr>\u7ec4\u4ef6\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>DJI Dock 3<\/td>\n<td>\u7b2c\u4e09\u4ee3\u65e0\u4eba\u673a\u673a\u573a\/\u673a\u5de2&#xff0c;\u652f\u6301 24\/7 \u8fdc\u7a0b\u65e0\u4eba\u503c\u5b88\u4f5c\u4e1a<\/td>\n<\/tr>\n<tr>\n<td>Matrice 4D\/4TD<\/td>\n<td>Dock3 \u914d\u5957\u98de\u884c\u5e73\u53f0&#xff0c;\u63d0\u4f9b E-Port&#xff08;PSDK \u6269\u5c55\u63a5\u53e3&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>E-Port<\/td>\n<td>M4D \u7cfb\u5217\u98de\u673a\u4e0a\u7684\u8d1f\u8f7d\u6269\u5c55\u63a5\u53e3&#xff0c;\u4f9b\u7535 &#043; \u901a\u4fe1\u4e00\u4f53\u5316<\/td>\n<\/tr>\n<tr>\n<td>PSDK<\/td>\n<td>DJI \u63d0\u4f9b\u7684\u8d1f\u8f7d\u8bbe\u5907\u8f6f\u4ef6\u5f00\u53d1\u5957\u4ef6&#xff08;\u5f53\u524d\u6700\u65b0 V3.12.0&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>Cloud API<\/td>\n<td>DJI \u63d0\u4f9b\u7684\u4e91\u7aef API&#xff0c;\u57fa\u4e8e MQTT \u5b9e\u73b0\u8bbe\u5907-\u4e91\u7aef\u53cc\u5411\u901a\u4fe1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2.2 \u4e24\u79cd\u63a5\u5165\u8def\u5f84<\/h4>\n<p>\u558a\u8bdd\u5668\u53ef\u901a\u8fc7\u4ee5\u4e0b\u4e24\u79cd\u65b9\u5f0f\u63a5\u5165 Dock3 \u7cfb\u7edf&#xff1a;<\/p>\n<table>\n<tr>\u8def\u5f84\u8bf4\u660e\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>\u8def\u5f84 A&#xff1a;\u5b98\u65b9\/\u7b2c\u4e09\u65b9 PSDK \u558a\u8bdd\u5668<\/td>\n<td>\u76f4\u63a5\u901a\u8fc7 E-Port \u6302\u8f7d\u7b26\u5408 PSDK \u89c4\u8303\u7684\u558a\u8bdd\u5668\u786c\u4ef6<\/td>\n<td>\u5feb\u901f\u90e8\u7f72&#xff0c;\u5f00\u7bb1\u5373\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u8def\u5f84 B&#xff1a;\u81ea\u5b9a\u4e49 PSDK \u558a\u8bdd\u5668<\/td>\n<td>\u57fa\u4e8e PSDK \u81ea\u884c\u5f00\u53d1\u558a\u8bdd\u5668\u8d1f\u8f7d&#xff08;\u542b\u786c\u4ef6 &#043; \u56fa\u4ef6&#xff09;<\/td>\n<td>\u5b9a\u5236\u9700\u6c42&#xff0c;\u6df1\u5ea6\u96c6\u6210<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>3. \u786c\u4ef6\u5c42&#xff1a;E-Port \u63a5\u53e3\u89c4\u683c<\/h3>\n<h4>3.1 \u7535\u6c14\u89c4\u683c<\/h4>\n<table>\n<tr>\u53c2\u6570\u89c4\u683c<\/tr>\n<tbody>\n<tr>\n<td>\u8f93\u51fa\u7535\u538b<\/td>\n<td>16.8V \u2013 25.5V&#xff08;\u98de\u673a\u7535\u6c60\u76f4\u4f9b&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u5927\u7535\u6d41<\/td>\n<td>3A<\/td>\n<\/tr>\n<tr>\n<td>\u4fdd\u62a4\u7535\u6d41<\/td>\n<td>4A&#xff08;\u8d85\u8fc7\u5219\u65ad\u7535\u4fdd\u62a4&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u8d1f\u8f7d\u7535\u5bb9\u9650\u5236<\/td>\n<td>\u2264 500 \u00b5F&#xff08;\u8d85\u8fc7\u89e6\u53d1\u77ed\u8def\u4fdd\u62a4&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>PPS \u5f15\u811a\u7535\u538b<\/td>\n<td>\u2264 3.3V<\/td>\n<\/tr>\n<tr>\n<td>\u901a\u4fe1\u534f\u8bae<\/td>\n<td>USB 2.0 \/ UART 3.3V TTL<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.2 \u7269\u7406\u63a5\u53e3<\/h4>\n<p>M4D \u7cfb\u5217 E-Port \u652f\u6301\u4ee5\u4e0b\u6302\u8f7d\u65b9\u5f0f&#xff1a;<\/p>\n<ul>\n<li>E-Port \u76f4\u8fde&#xff08;\u63a8\u8350&#xff09;&#xff1a;\u76f4\u63a5\u8fde\u63a5 PSDK \u8d1f\u8f7d\u8bbe\u5907<\/li>\n<li>SkyPort V2 \u8f6c\u63a5\u73af&#xff1a;\u6807\u51c6\u4e91\u53f0\u63a5\u53e3&#xff08;\u517c\u5bb9\u65e7\u6b3e\u8d1f\u8f7d&#xff09;<\/li>\n<li>X-Port \u6807\u51c6\u4e91\u53f0&#xff1a;\u4e00\u4f53\u5316\u6807\u51c6\u4e91\u53f0<\/li>\n<\/ul>\n<h4>3.3 \u5173\u952e\u7ea6\u675f<\/h4>\n<p>\u26a0\ufe0f \u5355\u8d1f\u8f7d\u9650\u5236&#xff1a;\u540c\u4e00\u65f6\u95f4\u98de\u673a\u53ea\u80fd\u4e0e\u4e00\u4e2a PSDK \u8d1f\u8f7d\u8bbe\u5907\u901a\u4fe1\u3002\u5982\u679c E-Port \u5df2\u88ab\u5360\u7528&#xff0c;\u65e0\u6cd5\u901a\u8fc7\u5206\u7ebf\u5668\u540c\u65f6\u63a5\u5165\u591a\u4e2a\u8d1f\u8f7d\u3002<\/p>\n<p>\u26a0\ufe0f \u5b89\u88c5\u540e\u9700\u91cd\u65b0\u6821\u51c6\u98de\u673a\u7f57\u76d8\u3002<\/p>\n<p>\u26a0\ufe0f \u8d1f\u8f7d\u4f1a\u589e\u52a0\u98de\u673a\u529f\u8017&#xff0c;\u964d\u4f4e\u98de\u884c\u7eed\u822a\u548c\u6297\u98ce\u80fd\u529b\u3002<\/p>\n<hr \/>\n<h3>4. \u7cfb\u7edf\u67b6\u6784&#xff1a;\u7aef\u5230\u7aef\u901a\u4fe1\u94fe\u8def<\/h3>\n<h4>4.1 \u6574\u4f53\u67b6\u6784\u56fe<\/h4>\n<p>\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502              \u7b2c\u4e09\u65b9\u4e91\u7aef\u5e73\u53f0                        \u2502<br \/>\n\u2502         (Dji-cloud-api-tool \/ \u5176\u4ed6)               \u2502<br \/>\n\u2502                                                   \u2502<br \/>\n\u2502  \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510  \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510  \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510  \u2502<br \/>\n\u2502  \u2502 \u558a\u8bdd\u5668 UI \u2502  \u2502 TTS \u5f15\u64ce  \u2502  \u2502 \u97f3\u9891\u6587\u4ef6\u7ba1\u7406   \u2502  \u2502<br \/>\n\u2502  \u2514\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2518  \u2514\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2518  \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518  \u2502<br \/>\n\u2502       \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518           \u2502<br \/>\n\u2502                      \u2502 MQTT                       \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                       \u2502<br \/>\n              \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n              \u2502   DJI Cloud API  \u2502<br \/>\n              \u2502   (MQTT Broker)  \u2502<br \/>\n              \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                       \u2502<br \/>\n              \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n              \u2502   DJI Dock 3    \u2502<br \/>\n              \u2502   (\u673a\u573a\/\u673a\u5de2)    \u2502<br \/>\n              \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                       \u2502 OcuSync\/SDR<br \/>\n              \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n              \u2502 Matrice 4D\/4TD \u2502<br \/>\n              \u2502   (\u98de\u884c\u5e73\u53f0)    \u2502<br \/>\n              \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                       \u2502 E-Port (USB\/UART)<br \/>\n              \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n              \u2502  PSDK \u558a\u8bdd\u5668    \u2502<br \/>\n              \u2502  (\u8d1f\u8f7d\u8bbe\u5907)     \u2502<br \/>\n              \u2502                 \u2502<br \/>\n              \u2502 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u2502<br \/>\n              \u2502 \u2502 MCU \/ Linux \u2502 \u2502<br \/>\n              \u2502 \u2502  &#043; \u97f3\u9891PA   \u2502 \u2502<br \/>\n              \u2502 \u2502  &#043; \u626c\u58f0\u5668   \u2502 \u2502<br \/>\n              \u2502 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2502<br \/>\n              \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<h4>4.2 \u901a\u4fe1\u534f\u8bae\u5206\u5c42<\/h4>\n<table>\n<tr>\u5c42\u6b21\u534f\u8bae\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u4e91\u7aef \u2192 Dock<\/td>\n<td>MQTT&#xff08;Dock-to-Cloud Protocol&#xff09;<\/td>\n<td>services\/services_reply topic&#xff0c;JSON \u683c\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>Dock \u2192 \u98de\u673a<\/td>\n<td>OcuSync \/ SDR<\/td>\n<td>DJI \u79c1\u6709\u534f\u8bae&#xff0c;\u900f\u660e\u4f20\u8f93<\/td>\n<\/tr>\n<tr>\n<td>\u98de\u673a \u2192 PSDK<\/td>\n<td>USB_BULK \/ UART<\/td>\n<td>PSDK \u534f\u8bae&#xff0c;C \u8bed\u8a00 API<\/td>\n<\/tr>\n<tr>\n<td>PSDK \u2192 \u626c\u58f0\u5668<\/td>\n<td>I2S \/ I2C \/ GPIO<\/td>\n<td>\u786c\u4ef6\u76f8\u5173<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>4.3 \u6269\u5c55\u67b6\u6784&#xff1a;\u673a\u8f7d\u8ba1\u7b97\u5e73\u53f0\u4e2d\u8f6c<\/h4>\n<p>\u5982\u679c\u9700\u8981\u540c\u65f6\u63a5\u5165\u558a\u8bdd\u5668\u548c\u5176\u4ed6\u8d1f\u8f7d\u8bbe\u5907&#xff08;\u5982\u63a2\u7167\u706f\u3001RTK \u7b49&#xff09;&#xff0c;\u63a8\u8350\u4f7f\u7528\u673a\u8f7d\u8ba1\u7b97\u5e73\u53f0\u7edf\u4e00\u63a5\u5165&#xff1a;<\/p>\n<p>Matrice 4D E-Port<br \/>\n    \u2502<br \/>\n    \u2514\u2500\u2500 \u673a\u8f7d\u8ba1\u7b97\u5e73\u53f0 (\u5982\u54c1\u7acb 17F1 \/ NVIDIA Jetson)<br \/>\n          \u251c\u2500\u2500 PSDK \u4e3b\u7a0b\u5e8f&#xff08;\u4e0e\u98de\u673a\u901a\u4fe1&#xff09;<br \/>\n          \u251c\u2500\u2500 \u558a\u8bdd\u5668\u8d1f\u8f7d&#xff08;I2S\/UART \u97f3\u9891\u8f93\u51fa&#xff09;<br \/>\n          \u251c\u2500\u2500 \u63a2\u7167\u706f\u8d1f\u8f7d&#xff08;GPIO\/PWM \u63a7\u5236&#xff09;<br \/>\n          \u2514\u2500\u2500 \u5176\u4ed6\u4f20\u611f\u5668&#xff08;\u4e32\u53e3\/SPI\/I2C&#xff09;<\/p>\n<hr \/>\n<h3>5. PSDK \u558a\u8bdd\u5668\u5f00\u53d1&#xff08;\u786c\u4ef6\u7aef&#xff09;<\/h3>\n<h4>5.1 PSDK \u558a\u8bdd\u5668\u6838\u5fc3 API<\/h4>\n<p>PSDK \u558a\u8bdd\u5668\u529f\u80fd\u901a\u8fc7 dji_widget.h \u63d0\u4f9b\u7684\u63a5\u53e3\u5b9e\u73b0&#xff0c;\u6838\u5fc3\u662f\u6ce8\u518c T_DjiWidgetSpeakerHandler \u56de\u8c03\u51fd\u6570\u96c6&#xff1a;<\/p>\n<table>\n<tr>\u56de\u8c03\u51fd\u6570\u65b9\u5411\u529f\u80fd<\/tr>\n<tbody>\n<tr>\n<td>GetSpeakerState<\/td>\n<td>\u98de\u63a7\u2192\u8d1f\u8f7d<\/td>\n<td>\u4e0a\u62a5\u64ad\u653e\u72b6\u6001\u3001\u5de5\u4f5c\u6a21\u5f0f\u3001\u64ad\u653e\u6a21\u5f0f\u3001\u97f3\u91cf<\/td>\n<\/tr>\n<tr>\n<td>SetWorkMode<\/td>\n<td>\u98de\u63a7\u2192\u8d1f\u8f7d<\/td>\n<td>\u8bbe\u7f6e TTS \/ \u8bed\u97f3\u5de5\u4f5c\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>SetPlayMode<\/td>\n<td>\u98de\u63a7\u2192\u8d1f\u8f7d<\/td>\n<td>\u8bbe\u7f6e\u5355\u6b21\u64ad\u653e \/ \u5faa\u73af\u64ad\u653e<\/td>\n<\/tr>\n<tr>\n<td>SetVolume<\/td>\n<td>\u98de\u63a7\u2192\u8d1f\u8f7d<\/td>\n<td>\u8bbe\u7f6e\u97f3\u91cf&#xff08;0-100&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>StartPlay<\/td>\n<td>\u98de\u63a7\u2192\u8d1f\u8f7d<\/td>\n<td>\u5f00\u59cb\u64ad\u653e<\/td>\n<\/tr>\n<tr>\n<td>StopPlay<\/td>\n<td>\u98de\u63a7\u2192\u8d1f\u8f7d<\/td>\n<td>\u505c\u6b62\u64ad\u653e<\/td>\n<\/tr>\n<tr>\n<td>ReceiveTtsData<\/td>\n<td>\u98de\u63a7\u2192\u8d1f\u8f7d<\/td>\n<td>\u63a5\u6536 TTS \u6587\u672c\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>ReceiveAudioData<\/td>\n<td>\u98de\u63a7\u2192\u8d1f\u8f7d<\/td>\n<td>\u63a5\u6536 Opus \u7f16\u7801\u7684\u8bed\u97f3\u6570\u636e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>5.2 \u558a\u8bdd\u5668\u72b6\u6001\u673a<\/h4>\n<p>                  SetWorkMode \/ SetPlayMode<br \/>\n                         \u2502<br \/>\n                         \u25bc<br \/>\n  \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2510  StartPlay  \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510  \u64ad\u653e\u5b8c\u6210   \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n  \u2502 IDLE \u2502\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25b6\u2502 PLAYING \u2502\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25b6\u2502 IDLE \u2502<br \/>\n  \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2518             \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518            \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n       \u25b2                    \u2502<br \/>\n       \u2502    StopPlay        \u2502<br \/>\n       \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<p>\u5de5\u4f5c\u6a21\u5f0f&#xff1a;<\/p>\n<ul>\n<li>DJI_WIDGET_SPEAKER_WORK_MODE_TTS \u2014 TTS \u6587\u5b57\u8f6c\u8bed\u97f3<\/li>\n<li>DJI_WIDGET_SPEAKER_WORK_MODE_VOICE \u2014 \u8bed\u97f3\u558a\u8bdd&#xff08;\u5b9e\u65f6\/\u5f55\u97f3&#xff09;<\/li>\n<\/ul>\n<p>\u64ad\u653e\u6a21\u5f0f&#xff1a;<\/p>\n<ul>\n<li>DJI_WIDGET_SPEAKER_PLAY_MODE_SINGLE_PLAY \u2014 \u5355\u6b21\u64ad\u653e<\/li>\n<li>DJI_WIDGET_SPEAKER_PLAY_MODE_LOOP_PLAY \u2014 \u5faa\u73af\u64ad\u653e<\/li>\n<\/ul>\n<h4>5.3 \u97f3\u9891\u53c2\u6570\u89c4\u8303<\/h4>\n<table>\n<tr>\u53c2\u6570\u89c4\u683c<\/tr>\n<tbody>\n<tr>\n<td>\u91c7\u6837\u7387<\/td>\n<td>16 kHz<\/td>\n<\/tr>\n<tr>\n<td>\u58f0\u9053<\/td>\n<td>\u5355\u58f0\u9053 (Mono)<\/td>\n<\/tr>\n<tr>\n<td>\u91cf\u5316\u683c\u5f0f<\/td>\n<td>16 bit<\/td>\n<\/tr>\n<tr>\n<td>\u7f16\u7801\u683c\u5f0f<\/td>\n<td>Opus &#064; 16 kbps<\/td>\n<\/tr>\n<tr>\n<td>\u5355\u5e27\u6570\u636e<\/td>\n<td>160 \u5b57\u8282<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u5927\u5f55\u97f3\u65f6\u957f<\/td>\n<td>3 \u5206\u949f<\/td>\n<\/tr>\n<tr>\n<td>\u5bfc\u5165\u97f3\u9891\u683c\u5f0f<\/td>\n<td>MP3 \/ WAV \/ AAC<\/td>\n<\/tr>\n<tr>\n<td>\u5bfc\u5165\u97f3\u9891\u5927\u5c0f\u9650\u5236<\/td>\n<td>10 MB<\/td>\n<\/tr>\n<tr>\n<td>\u97f3\u9891\u6587\u4ef6\u6700\u5927\u6570\u91cf<\/td>\n<td>20 \u4e2a<\/td>\n<\/tr>\n<tr>\n<td>TTS \u6587\u672c\u5b57\u7b26\u9650\u5236<\/td>\n<td>1000 \u5b57\u7b26&#xff08;\u6c49\u5b57\u8ba1\u4e3a 1 \u5b57\u7b26&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>5.4 \u521d\u59cb\u5316\u793a\u4f8b\u4ee3\u7801<\/h4>\n<p>T_DjiReturnCode <span class=\"token function\">Speaker_Init<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">void<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    T_DjiReturnCode returnCode<span class=\"token punctuation\">;<\/span><br \/>\n    T_DjiOsalHandler <span class=\"token operator\">*<\/span>osalHandler <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">DjiPlatform_GetOsalHandler<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ 1. \u6ce8\u518c\u56de\u8c03\u51fd\u6570<\/span><br \/>\n    s_speakerHandler<span class=\"token punctuation\">.<\/span>GetSpeakerState <span class=\"token operator\">&#061;<\/span> Speaker_GetState<span class=\"token punctuation\">;<\/span><br \/>\n    s_speakerHandler<span class=\"token punctuation\">.<\/span>SetWorkMode     <span class=\"token operator\">&#061;<\/span> Speaker_SetWorkMode<span class=\"token punctuation\">;<\/span><br \/>\n    s_speakerHandler<span class=\"token punctuation\">.<\/span>SetPlayMode     <span class=\"token operator\">&#061;<\/span> Speaker_SetPlayMode<span class=\"token punctuation\">;<\/span><br \/>\n    s_speakerHandler<span class=\"token punctuation\">.<\/span>SetVolume       <span class=\"token operator\">&#061;<\/span> Speaker_SetVolume<span class=\"token punctuation\">;<\/span><br \/>\n    s_speakerHandler<span class=\"token punctuation\">.<\/span>StartPlay       <span class=\"token operator\">&#061;<\/span> Speaker_StartPlay<span class=\"token punctuation\">;<\/span><br \/>\n    s_speakerHandler<span class=\"token punctuation\">.<\/span>StopPlay        <span class=\"token operator\">&#061;<\/span> Speaker_StopPlay<span class=\"token punctuation\">;<\/span><br \/>\n    s_speakerHandler<span class=\"token punctuation\">.<\/span>ReceiveTtsData  <span class=\"token operator\">&#061;<\/span> Speaker_ReceiveTtsData<span class=\"token punctuation\">;<\/span><br \/>\n    s_speakerHandler<span class=\"token punctuation\">.<\/span>ReceiveAudioData <span class=\"token operator\">&#061;<\/span> Speaker_ReceiveAudioData<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ 2. \u521b\u5efa\u4e92\u65a5\u9501\u4fdd\u62a4\u72b6\u6001<\/span><br \/>\n    osalHandler<span class=\"token operator\">-&gt;<\/span><span class=\"token function\">MutexCreate<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">&amp;<\/span>s_speakerMutex<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ 3. \u6ce8\u518c\u558a\u8bdd\u5668 Handler<\/span><br \/>\n    returnCode <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">DjiWidget_RegSpeakerHandler<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">&amp;<\/span>s_speakerHandler<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ 4. \u521d\u59cb\u5316\u72b6\u6001<\/span><br \/>\n    s_speakerState<span class=\"token punctuation\">.<\/span>state    <span class=\"token operator\">&#061;<\/span> DJI_WIDGET_SPEAKER_STATE_IDEL<span class=\"token punctuation\">;<\/span><br \/>\n    s_speakerState<span class=\"token punctuation\">.<\/span>workMode <span class=\"token operator\">&#061;<\/span> DJI_WIDGET_SPEAKER_WORK_MODE_VOICE<span class=\"token punctuation\">;<\/span><br \/>\n    s_speakerState<span class=\"token punctuation\">.<\/span>playMode <span class=\"token operator\">&#061;<\/span> DJI_WIDGET_SPEAKER_PLAY_MODE_SINGLE_PLAY<span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ 5. \u542f\u52a8\u540e\u53f0\u64ad\u653e\u4efb\u52a1\u7ebf\u7a0b<\/span><br \/>\n    osalHandler<span class=\"token operator\">-&gt;<\/span><span class=\"token function\">TaskCreate<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;speaker_task&#034;<\/span><span class=\"token punctuation\">,<\/span> Speaker_BackgroundTask<span class=\"token punctuation\">,<\/span><br \/>\n                            STACK_SIZE<span class=\"token punctuation\">,<\/span> <span class=\"token constant\">NULL<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&amp;<\/span>s_speakerThread<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token keyword\">return<\/span> DJI_ERROR_SYSTEM_MODULE_CODE_SUCCESS<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>5.5 \u63a7\u4ef6\u914d\u7f6e JSON<\/h4>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;main_interface&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;floating_window&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;is_enable&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;speaker&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;is_enable_tts&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;is_enable_voice&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<hr \/>\n<h3>6. \u4e0a\u4e91API\u901a\u4fe1\u534f\u8bae&#xff08;\u4e91\u7aef \u2194 Dock&#xff09;<\/h3>\n<p>Dock3 \u901a\u8fc7 MQTT \u4e0e\u4e91\u7aef\u901a\u4fe1&#xff0c;\u558a\u8bdd\u5668\u76f8\u5173 API \u5206\u4e3a\u4ee5\u4e0b\u4e24\u7ec4&#xff1a;<\/p>\n<h4>6.1 Services&#xff08;\u4e91\u7aef \u2192 \u8bbe\u5907&#xff0c;\u4e0b\u884c\u6307\u4ee4&#xff09;<\/h4>\n<p>\u6240\u6709\u4e0b\u884c\u6307\u4ee4\u53d1\u9001\u5230 topic&#xff1a;thing\/product\/{gateway_sn}\/services<\/p>\n<p>\u8bbe\u5907\u56de\u590d\u5728 topic&#xff1a;thing\/product\/{gateway_sn}\/services_reply<\/p>\n<h5>6.1.1 \u6307\u4ee4\u6c47\u603b<\/h5>\n<table>\n<tr>Method\u529f\u80fd\u5173\u952e\u53c2\u6570<\/tr>\n<tbody>\n<tr>\n<td>speaker_play_volume_set<\/td>\n<td>\u8bbe\u7f6e\u97f3\u91cf<\/td>\n<td>psdk_index, play_volume (0\u2013100)<\/td>\n<\/tr>\n<tr>\n<td>speaker_play_mode_set<\/td>\n<td>\u8bbe\u7f6e\u64ad\u653e\u6a21\u5f0f<\/td>\n<td>psdk_index, play_mode (0&#061;\u5355\u6b21, 1&#061;\u5faa\u73af)<\/td>\n<\/tr>\n<tr>\n<td>speaker_play_stop<\/td>\n<td>\u505c\u6b62\u64ad\u653e<\/td>\n<td>psdk_index<\/td>\n<\/tr>\n<tr>\n<td>speaker_replay<\/td>\n<td>\u91cd\u65b0\u64ad\u653e<\/td>\n<td>psdk_index<\/td>\n<\/tr>\n<tr>\n<td>speaker_tts_play_start<\/td>\n<td>TTS \u6587\u672c\u64ad\u653e<\/td>\n<td>psdk_index, tts.name, tts.text, tts.md5<\/td>\n<\/tr>\n<tr>\n<td>speaker_audio_play_start<\/td>\n<td>\u97f3\u9891\u6587\u4ef6\u64ad\u653e<\/td>\n<td>psdk_index, file.name, file.url, file.md5, file.format<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>6.1.2 \u8bbe\u7f6e\u97f3\u91cf<\/h5>\n<p>Topic: thing\/product\/{gateway_sn}\/services<br \/>\nMethod: speaker_play_volume_set<\/p>\n<p><span class=\"token punctuation\">[<\/span><span class=\"token number\">14<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">46<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">59<\/span><span class=\"token punctuation\">]<\/span> \u8bbe\u7f6e\u97f3\u91cf  \u2705 <span class=\"token function\">\u6210\u529f<\/span> <span class=\"token punctuation\">(<\/span>result<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token literal-property property\">Topic<\/span><span class=\"token operator\">:<\/span> thing<span class=\"token operator\">\/<\/span>product<span class=\"token operator\">\/<\/span>8UUXXXXXXXXXXX<span class=\"token operator\">\/<\/span>services<br \/>\n<span class=\"token literal-property property\">\u4e0b\u53d1<\/span><span class=\"token operator\">:<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;9e29ce43-a386-4c89-9320-2b794225069e&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;play_volume&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">54<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string-property property\">&#034;psdk_index&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">2<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;speaker_play_volume_set&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;940ec08d-a0f6-427e-a897-35539f473860&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1785307619550<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token literal-property property\">\u54cd\u5e94<\/span><span class=\"token operator\">:<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;9e29ce43-a386-4c89-9320-2b794225069e&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;result&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;speaker_play_volume_set&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;940ec08d-a0f6-427e-a897-35539f473860&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1785307623339<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5b57\u6bb5\u8bf4\u660e&#xff1a;<\/p>\n<table>\n<tr>\u5b57\u6bb5\u7c7b\u578b\u5fc5\u586b\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>psdk_index<\/td>\n<td>int<\/td>\n<td>\u662f<\/td>\n<td>PSDK \u8d1f\u8f7d\u8bbe\u5907\u7d22\u5f15&#xff08;0\u20133&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>play_volume<\/td>\n<td>int<\/td>\n<td>\u662f<\/td>\n<td>\u97f3\u91cf\u503c&#xff08;0\u2013100&#xff09;&#xff0c;0 \u4e3a\u9759\u97f3&#xff0c;100 \u4e3a\u6700\u5927\u97f3\u91cf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>6.1.3 \u8bbe\u7f6e\u64ad\u653e\u6a21\u5f0f<\/h5>\n<p>Topic: thing\/product\/{gateway_sn}\/services<br \/>\nMethod: speaker_play_mode_set<\/p>\n<p><span class=\"token punctuation\">[<\/span><span class=\"token number\">14<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">49<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">23<\/span><span class=\"token punctuation\">]<\/span> \u8bbe\u7f6e\u64ad\u653e\u6a21\u5f0f  \u2705 <span class=\"token function\">\u6210\u529f<\/span> <span class=\"token punctuation\">(<\/span>result<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token literal-property property\">Topic<\/span><span class=\"token operator\">:<\/span> thing<span class=\"token operator\">\/<\/span>product<span class=\"token operator\">\/<\/span>8UUXXXXXXXXXXX<span class=\"token operator\">\/<\/span>services<br \/>\n<span class=\"token literal-property property\">\u4e0b\u53d1<\/span><span class=\"token operator\">:<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;d56d07b3-737c-423b-b38f-c7a40c535f05&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;play_mode&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string-property property\">&#034;psdk_index&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">2<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;speaker_play_mode_set&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;05eb6bf9-56e2-4d0c-b453-a4e838842b2e&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1785307763832<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token literal-property property\">\u54cd\u5e94<\/span><span class=\"token operator\">:<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;d56d07b3-737c-423b-b38f-c7a40c535f05&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;result&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;speaker_play_mode_set&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;05eb6bf9-56e2-4d0c-b453-a4e838842b2e&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1785307767493<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5b57\u6bb5\u8bf4\u660e&#xff1a;<\/p>\n<table>\n<tr>\u5b57\u6bb5\u7c7b\u578b\u5fc5\u586b\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>psdk_index<\/td>\n<td>int<\/td>\n<td>\u662f<\/td>\n<td>PSDK \u8d1f\u8f7d\u8bbe\u5907\u7d22\u5f15&#xff08;0\u20133&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>play_mode<\/td>\n<td>int<\/td>\n<td>\u662f<\/td>\n<td>\u64ad\u653e\u6a21\u5f0f&#xff1a;0 &#061; \u5355\u6b21\u64ad\u653e&#xff08;\u64ad\u5b8c\u505c\u6b62&#xff09;&#xff0c;1 &#061; \u5faa\u73af\u64ad\u653e&#xff08;\u91cd\u590d\u64ad\u653e&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>6.1.4 \u505c\u6b62\u64ad\u653e<\/h5>\n<p>Topic: thing\/product\/{gateway_sn}\/services<br \/>\nMethod: speaker_play_stop<\/p>\n<p><span class=\"token punctuation\">[<\/span><span class=\"token number\">14<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">53<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">02<\/span><span class=\"token punctuation\">]<\/span> \u505c\u6b62\u64ad\u653e  \u2705 <span class=\"token function\">\u6210\u529f<\/span> <span class=\"token punctuation\">(<\/span>result<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token literal-property property\">Topic<\/span><span class=\"token operator\">:<\/span> thing<span class=\"token operator\">\/<\/span>product<span class=\"token operator\">\/<\/span>8UUXXXXXXXXXXX<span class=\"token operator\">\/<\/span>services<br \/>\n<span class=\"token literal-property property\">\u4e0b\u53d1<\/span><span class=\"token operator\">:<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;6920c62c-526e-4ac8-9cde-006df03a9a90&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;psdk_index&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">2<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;speaker_play_stop&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;334d3823-cde7-43fa-a007-b8df8d2eccc9&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1785307982361<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token literal-property property\">\u54cd\u5e94<\/span><span class=\"token operator\">:<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;6920c62c-526e-4ac8-9cde-006df03a9a90&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;result&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;speaker_play_stop&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;334d3823-cde7-43fa-a007-b8df8d2eccc9&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1785307985515<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5b57\u6bb5\u8bf4\u660e&#xff1a;<\/p>\n<table>\n<tr>\u5b57\u6bb5\u7c7b\u578b\u5fc5\u586b\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>psdk_index<\/td>\n<td>int<\/td>\n<td>\u662f<\/td>\n<td>PSDK \u8d1f\u8f7d\u8bbe\u5907\u7d22\u5f15&#xff08;0\u20133&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8bf4\u660e&#xff1a; \u505c\u6b62\u5f53\u524d\u6b63\u5728\u8fdb\u884c\u7684 TTS \u6216\u97f3\u9891\u6587\u4ef6\u64ad\u653e&#xff0c;\u5bf9\u5e94 PSDK \u7aef StopPlay \u56de\u8c03\u3002\u505c\u6b62\u540e\u558a\u8bdd\u5668\u56de\u5230 IDLE \u72b6\u6001&#xff0c;\u53ef\u63a5\u6536\u65b0\u7684\u64ad\u653e\u6307\u4ee4\u3002<\/p>\n<h5>6.1.5 \u91cd\u65b0\u64ad\u653e<\/h5>\n<p>Topic: thing\/product\/{gateway_sn}\/services<br \/>\nMethod: speaker_replay<\/p>\n<p><span class=\"token punctuation\">[<\/span><span class=\"token number\">14<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">53<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">08<\/span><span class=\"token punctuation\">]<\/span> \u91cd\u65b0\u64ad\u653e  \u2705 <span class=\"token function\">\u6210\u529f<\/span> <span class=\"token punctuation\">(<\/span>result<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token literal-property property\">Topic<\/span><span class=\"token operator\">:<\/span> thing<span class=\"token operator\">\/<\/span>product<span class=\"token operator\">\/<\/span>8UUXXXXXXXXXXX<span class=\"token operator\">\/<\/span>services<br \/>\n<span class=\"token literal-property property\">\u4e0b\u53d1<\/span><span class=\"token operator\">:<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;92bd80d9-8601-49a3-be9a-2cce25c49f1e&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;psdk_index&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">2<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;speaker_replay&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;dbabed3e-ca8e-47f0-bd5e-5f87d958117a&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1785307988390<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token literal-property property\">\u54cd\u5e94<\/span><span class=\"token operator\">:<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;92bd80d9-8601-49a3-be9a-2cce25c49f1e&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;result&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;speaker_replay&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;dbabed3e-ca8e-47f0-bd5e-5f87d958117a&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1785307991565<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5b57\u6bb5\u8bf4\u660e&#xff1a;<\/p>\n<table>\n<tr>\u5b57\u6bb5\u7c7b\u578b\u5fc5\u586b\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>psdk_index<\/td>\n<td>int<\/td>\n<td>\u662f<\/td>\n<td>PSDK \u8d1f\u8f7d\u8bbe\u5907\u7d22\u5f15&#xff08;0\u20133&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8bf4\u660e&#xff1a; \u91cd\u65b0\u64ad\u653e\u4e0a\u4e00\u6b21\u901a\u8fc7 speaker_tts_play_start \u6216 speaker_audio_play_start \u53d1\u9001\u7684\u97f3\u9891\u5185\u5bb9&#xff0c;\u65e0\u9700\u91cd\u65b0\u4e0a\u4f20\u97f3\u9891\u6570\u636e\u3002<\/p>\n<h5>6.1.6 TTS \u6587\u672c\u64ad\u653e<\/h5>\n<p>Topic: thing\/product\/{gateway_sn}\/services<br \/>\nMethod: speaker_tts_play_start<\/p>\n<p><span class=\"token punctuation\">[<\/span><span class=\"token number\">14<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">51<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">32<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token constant\">TTS<\/span>\u6587\u672c\u558a\u8bdd  \u2705 <span class=\"token function\">\u6210\u529f<\/span> <span class=\"token punctuation\">(<\/span>result<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token literal-property property\">Topic<\/span><span class=\"token operator\">:<\/span> thing<span class=\"token operator\">\/<\/span>product<span class=\"token operator\">\/<\/span>8UUXXXXXXXXXXX<span class=\"token operator\">\/<\/span>services<br \/>\n<span class=\"token literal-property property\">\u4e0b\u53d1<\/span><span class=\"token operator\">:<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;dc8da309-f96e-4f17-b8b0-538c46f9d141&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;psdk_index&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string-property property\">&#034;tts&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token string-property property\">&#034;md5&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;3dc5fa788a1a0f687e8350ce9019f5ac&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string-property property\">&#034;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u6d4b\u8bd5\u6587\u672c\u558a\u8bdd&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string-property property\">&#034;text&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u5148\u5e1d\u521b\u4e1a\u672a\u534a\u800c\u4e2d\u9053\u5d29\u6b82&#xff0c;\u4eca\u5929\u4e0b\u4e09\u5206&#xff0c;\u76ca\u5dde\u75b2\u5f0a&#xff0c;\u6b64\u8bda\u5371\u6025\u5b58\u4ea1\u4e4b\u79cb\u4e5f\u3002\u7136\u4f8d\u536b\u4e4b\u81e3\u4e0d\u61c8\u4e8e\u5185&#xff0c;\u5fe0\u5fd7\u4e4b\u58eb\u5fd8\u8eab\u4e8e\u5916\u8005&#xff0c;\u76d6\u8ffd\u5148\u5e1d\u4e4b\u6b8a\u9047&#xff0c;\u6b32\u62a5\u4e4b\u4e8e\u965b\u4e0b\u4e5f\u3002\u8bda\u5b9c\u5f00\u5f20\u5723\u542c&#xff0c;\u4ee5\u5149\u5148\u5e1d\u9057\u5fb7&#xff0c;\u6062\u5f18\u5fd7\u58eb\u4e4b\u6c14&#xff0c;\u4e0d\u5b9c\u5984\u81ea\u83f2\u8584&#xff0c;\u5f15\u55bb\u5931\u4e49&#xff0c;\u4ee5\u585e\u5fe0\u8c0f\u4e4b\u8def\u4e5f&#034;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;speaker_tts_play_start&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;705fe0d9-4d91-48bb-b0a7-f12337c4bd9c&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1785307892599<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token literal-property property\">\u54cd\u5e94<\/span><span class=\"token operator\">:<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;dc8da309-f96e-4f17-b8b0-538c46f9d141&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;result&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;speaker_tts_play_start&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;705fe0d9-4d91-48bb-b0a7-f12337c4bd9c&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1785307895946<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5b57\u6bb5\u8bf4\u660e&#xff1a;<\/p>\n<table>\n<tr>\u5b57\u6bb5\u7c7b\u578b\u5fc5\u586b\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>psdk_index<\/td>\n<td>int<\/td>\n<td>\u662f<\/td>\n<td>PSDK \u8d1f\u8f7d\u8bbe\u5907\u7d22\u5f15&#xff08;0\u20133&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>tts.name<\/td>\n<td>text<\/td>\n<td>\u662f<\/td>\n<td>\u6587\u4ef6\u540d&#xff08;\u7528\u4e8e\u5728\u673a\u573a\u4fa7\u6807\u8bc6&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>tts.text<\/td>\n<td>text<\/td>\n<td>\u662f<\/td>\n<td>TTS \u6587\u672c\u5185\u5bb9&#xff08;\u22641000 \u5b57\u7b26&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>tts.md5<\/td>\n<td>text<\/td>\n<td>\u662f<\/td>\n<td>\u6587\u672c\u5185\u5bb9\u7684 MD5 \u6821\u9a8c\u548c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>TTS \u64ad\u653e\u8fdb\u5ea6\u4e8b\u4ef6&#xff08;\u4e0a\u884c&#xff09;&#xff1a;<\/p>\n<p>Topic: thing\/product\/{gateway_sn}\/events<br \/>\nMethod: speaker_tts_play_start_progress<\/p>\n<p>\u8fdb\u5ea6\u9636\u6bb5&#xff08;step_key&#xff09;&#xff1a;<\/p>\n<table>\n<tr>step_key\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>change_work_mode<\/td>\n<td>\u5207\u6362\u5de5\u4f5c\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>upload<\/td>\n<td>\u673a\u573a\u4e0a\u4f20\u97f3\u9891\u5230 PSDK<\/td>\n<\/tr>\n<tr>\n<td>play<\/td>\n<td>\u5f00\u59cb\u64ad\u653e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>6.1.7 \u97f3\u9891\u6587\u4ef6\u64ad\u653e<\/h5>\n<p>Topic: thing\/product\/{gateway_sn}\/services<br \/>\nMethod: speaker_audio_play_start<\/p>\n<p><span class=\"token punctuation\">[<\/span><span class=\"token number\">17<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">24<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">49<\/span><span class=\"token punctuation\">]<\/span> \u97f3\u9891\u6587\u4ef6\u558a\u8bdd  \u2705 <span class=\"token function\">\u6210\u529f<\/span> <span class=\"token punctuation\">(<\/span>result<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token literal-property property\">Topic<\/span><span class=\"token operator\">:<\/span> thing<span class=\"token operator\">\/<\/span>product<span class=\"token operator\">\/<\/span>8UUXXXXXXXXXXX<span class=\"token operator\">\/<\/span>services<br \/>\n<span class=\"token literal-property property\">\u4e0b\u53d1<\/span><span class=\"token operator\">:<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;222cd9f1-15fa-4cc9-9b8f-f6d19a2a67d8&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;file&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token string-property property\">&#034;format&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;pcm&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string-property property\">&#034;md5&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;8cfa8d06fa2707332a7a319d98d975a4&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string-property property\">&#034;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;audio_172449&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string-property property\">&#034;url&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;http:\/\/127.0.0.1:8888\/file\/get?id&#061;domp-track-binary:psdk:short_pcm_s16le.pcm&#034;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string-property property\">&#034;psdk_index&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">2<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;speaker_audio_play_start&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;265d9172-901e-44d3-984f-2e68fc9beccd&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1785317089694<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token literal-property property\">\u54cd\u5e94<\/span><span class=\"token operator\">:<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;222cd9f1-15fa-4cc9-9b8f-f6d19a2a67d8&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;result&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;speaker_audio_play_start&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;265d9172-901e-44d3-984f-2e68fc9beccd&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1785317088714<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5b57\u6bb5\u8bf4\u660e&#xff1a;<\/p>\n<table>\n<tr>\u5b57\u6bb5\u7c7b\u578b\u5fc5\u586b\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>psdk_index<\/td>\n<td>int<\/td>\n<td>\u662f<\/td>\n<td>PSDK \u8d1f\u8f7d\u8bbe\u5907\u7d22\u5f15<\/td>\n<\/tr>\n<tr>\n<td>file.name<\/td>\n<td>text<\/td>\n<td>\u662f<\/td>\n<td>\u6587\u4ef6\u540d<\/td>\n<\/tr>\n<tr>\n<td>file.url<\/td>\n<td>text<\/td>\n<td>\u662f<\/td>\n<td>\u97f3\u9891\u6587\u4ef6\u4e0b\u8f7d\u94fe\u63a5&#xff08;\u516c\u7f51\u53ef\u8bbf\u95ee&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>file.md5<\/td>\n<td>text<\/td>\n<td>\u662f<\/td>\n<td>\u97f3\u9891\u6587\u4ef6\u7684 MD5 \u6821\u9a8c\u548c<\/td>\n<\/tr>\n<tr>\n<td>file.format<\/td>\n<td>enum_string<\/td>\n<td>\u662f<\/td>\n<td>\u76ee\u524d\u4ec5\u652f\u6301 &#034;pcm&#034;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u97f3\u9891\u64ad\u653e\u8fdb\u5ea6\u4e8b\u4ef6&#xff08;\u4e0a\u884c&#xff09;&#xff1a;<\/p>\n<p>Topic: thing\/product\/{gateway_sn}\/events<br \/>\nMethod: speaker_audio_play_start_progress<\/p>\n<p>\u8fdb\u5ea6\u9636\u6bb5&#xff08;step_key&#xff09;&#xff1a;<\/p>\n<table>\n<tr>step_key\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>change_work_mode<\/td>\n<td>\u5207\u6362\u5de5\u4f5c\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>download<\/td>\n<td>\u4ece\u4e91\u7aef\u4e0b\u8f7d\u97f3\u9891\u6587\u4ef6\u5230\u673a\u573a<\/td>\n<\/tr>\n<tr>\n<td>encoding<\/td>\n<td>\u7f16\u7801 PCM \u4e3a Opus<\/td>\n<\/tr>\n<tr>\n<td>upload<\/td>\n<td>\u673a\u573a\u4e0a\u4f20\u97f3\u9891\u5230 PSDK<\/td>\n<\/tr>\n<tr>\n<td>play<\/td>\n<td>\u5f00\u59cb\u64ad\u653e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>6.2 Events&#xff08;\u8bbe\u5907 \u2192 \u4e91\u7aef&#xff0c;\u4e0a\u884c\u901a\u77e5&#xff09;<\/h4>\n<p>\u6240\u6709\u4e0a\u884c\u4e8b\u4ef6\u5728 topic&#xff1a;thing\/product\/{gateway_sn}\/events<\/p>\n<table>\n<tr>Method\u529f\u80fd<\/tr>\n<tbody>\n<tr>\n<td>speaker_tts_play_start_progress<\/td>\n<td>TTS \u64ad\u653e\u8fdb\u5ea6\u901a\u77e5<\/td>\n<\/tr>\n<tr>\n<td>speaker_audio_play_start_progress<\/td>\n<td>\u97f3\u9891\u64ad\u653e\u8fdb\u5ea6\u901a\u77e5<\/td>\n<\/tr>\n<tr>\n<td>psdk_floating_window_text<\/td>\n<td>PSDK \u6d6e\u7a97\u6587\u672c\u63a8\u9001<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>6.2.1 \u64ad\u653e\u8fdb\u5ea6\u4e8b\u4ef6\u901a\u7528\u7ed3\u6784<\/h5>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;1740d345-1d70-4a8c-b49a-feae3308d569&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;output&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token string-property property\">&#034;md5&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;8cfa8d06fa2707332a7a319d98d975a4&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string-property property\">&#034;progress&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n                <span class=\"token string-property property\">&#034;percent&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">100<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string-property property\">&#034;step_key&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;change_work_mode&#034;<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string-property property\">&#034;psdk_index&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string-property property\">&#034;status&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;in_progress&#034;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string-property property\">&#034;result&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;gateway&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;8UUXXXXXXXXXXX&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;speaker_audio_play_start_progress&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;need_reply&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;71b96927-504a-47f7-8485-e448bd55c5c2&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1785376016406<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>status \u679a\u4e3e&#xff1a;<\/p>\n<table>\n<tr>\u503c\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>in_progress<\/td>\n<td>\u5904\u7406\u4e2d<\/td>\n<\/tr>\n<tr>\n<td>ok<\/td>\n<td>\u64ad\u653e\u6210\u529f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>6.3 \u5b8c\u6574\u6307\u4ee4\u65f6\u5e8f\u56fe<\/h4>\n<p>\u4e91\u7aef                          Dock3\/\u98de\u673a                     PSDK\u558a\u8bdd\u5668<br \/>\n \u2502                              \u2502                              \u2502<br \/>\n \u2502\u2500\u2500 speaker_tts_play_start \u2500\u2500\u25b6\u2502                              \u2502<br \/>\n \u2502                              \u2502\u2500\u2500 SetWorkMode(TTS) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25b6\u2502<br \/>\n \u2502                              \u2502\u2500\u2500 ReceiveTtsData(text) \u2500\u2500\u2500\u2500\u25b6\u2502<br \/>\n \u2502                              \u2502\u2500\u2500 StartPlay \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25b6\u2502<br \/>\n \u2502                              \u2502                              \u2502\u2500\u2500 TTS\u5408\u6210<br \/>\n \u2502                              \u2502                              \u2502\u2500\u2500 \u97f3\u9891\u64ad\u653e<br \/>\n \u2502\u25c0\u2500\u2500 speaker_tts_play_start   \u2502                              \u2502<br \/>\n \u2502    _progress(in_progress) \u2500\u2500\u2502                              \u2502<br \/>\n \u2502\u25c0\u2500\u2500 speaker_tts_play_start   \u2502                              \u2502<br \/>\n \u2502    _progress(ok) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2502                              \u2502<br \/>\n \u2502                              \u2502                              \u2502<br \/>\n \u2502\u2500\u2500 speaker_play_stop \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25b6\u2502                              \u2502<br \/>\n \u2502                              \u2502\u2500\u2500 StopPlay \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25b6\u2502\u2500\u2500 \u505c\u6b62\u64ad\u653e<br \/>\n \u2502\u25c0\u2500\u2500 services_reply(result) \u2500\u2500\u2502                              \u2502<br \/>\n \u2502                              \u2502                              \u2502<\/p>\n<hr \/>\n<h3>7. \u4e91\u7aef\u96c6\u6210\u65b9\u6848<\/h3>\n<h4>7.1 \u97f3\u9891\u6587\u4ef6\u51c6\u5907<\/h4>\n<p>\u4e91\u7aef\u9700\u8981\u4e3a speaker_audio_play_start \u6307\u4ee4\u51c6\u5907\u673a\u573a\u53ef\u8bbf\u95ee\u7684 PCM \u97f3\u9891\u6587\u4ef6&#xff1a;<\/p>\n<table>\n<tr>\u53c2\u6570\u89c4\u683c<\/tr>\n<tbody>\n<tr>\n<td>\u683c\u5f0f<\/td>\n<td>PCM&#xff08;\u672a\u538b\u7f29\u539f\u59cb\u97f3\u9891&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u91c7\u6837\u7387<\/td>\n<td>16 kHz<\/td>\n<\/tr>\n<tr>\n<td>\u58f0\u9053<\/td>\n<td>\u5355\u58f0\u9053<\/td>\n<\/tr>\n<tr>\n<td>\u4f4d\u6df1<\/td>\n<td>16 bit<\/td>\n<\/tr>\n<tr>\n<td>\u6258\u7ba1\u65b9\u5f0f<\/td>\n<td>OSS \/ S3 \/ CDN&#xff08;\u9700\u751f\u6210\u53ef\u516c\u5f00\u4e0b\u8f7d\u7684 URL&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>PCM \u6587\u4ef6\u751f\u6210\u793a\u4f8b&#xff08;FFmpeg&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5c06\u4efb\u610f\u97f3\u9891\u6587\u4ef6\u8f6c\u6362\u4e3a PSDK \u558a\u8bdd\u5668\u517c\u5bb9\u7684 PCM \u683c\u5f0f<\/span><br \/>\nffmpeg <span class=\"token parameter variable\">-i<\/span> input.mp3 <span class=\"token punctuation\">\\\\<\/span><br \/>\n       <span class=\"token parameter variable\">-acodec<\/span> pcm_s16le <span class=\"token punctuation\">\\\\<\/span><br \/>\n       <span class=\"token parameter variable\">-ar<\/span> <span class=\"token number\">16000<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n       <span class=\"token parameter variable\">-ac<\/span> <span class=\"token number\">1<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n       <span class=\"token parameter variable\">-f<\/span> s16le <span class=\"token punctuation\">\\\\<\/span><br \/>\n       output.pcm<\/p>\n<p><span class=\"token comment\"># \u8ba1\u7b97 MD5&#xff08;\u7528\u4e8e API \u8c03\u7528&#xff09;<\/span><br \/>\nmd5sum output.pcm<\/p>\n<h4>7.2 OSS \u4e0a\u4f20\u4e34\u65f6\u51ed\u8bc1<\/h4>\n<p>\u5982\u679c\u4e91\u7aef\u9700\u8981\u63a5\u6536 PSDK UI \u8d44\u6e90\u5305\u4e0a\u4f20\u7ed3\u679c&#xff0c;\u53ef\u4f7f\u7528 storage_config_get \u83b7\u53d6\u4e34\u65f6\u51ed\u8bc1&#xff1a;<\/p>\n<p>Topic: thing\/product\/{gateway_sn}\/requests<br \/>\nMethod: storage_config_get<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;bid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;&#8230;&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;data&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;module&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;gateway&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;4TADKAQ000002J&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;method&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;storage_config_get&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;tid&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;&#8230;&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;timestamp&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1689911314560<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8fd4\u56de\u4e34\u65f6 OSS \u51ed\u8bc1&#xff08;\u6709\u6548\u671f 3600 \u79d2&#xff09;&#xff0c;\u652f\u6301\u963f\u91cc\u4e91\/AWS\/MinIO\u3002<\/p>\n<h4>7.3 MQTT \u6d88\u606f\u5904\u7406\u6d41\u7a0b<\/h4>\n<p>1. \u6784\u9020 MQTT \u6d88\u606f<br \/>\n   \u251c\u2500\u2500 \u751f\u6210\u552f\u4e00 tid&#xff08;\u6d88\u606f\u8ffd\u8e2a ID&#xff09;<br \/>\n   \u251c\u2500\u2500 \u751f\u6210\u552f\u4e00 bid&#xff08;\u4e1a\u52a1\u8ffd\u8e2a ID&#xff09;<br \/>\n   \u251c\u2500\u2500 \u586b\u5145 method \u548c data<br \/>\n   \u2514\u2500\u2500 \u8bbe\u7f6e timestamp&#xff08;\u6beb\u79d2\u7ea7 Unix \u65f6\u95f4\u6233&#xff09;<\/p>\n<p>2. \u53d1\u5e03\u5230 thing\/product\/{gateway_sn}\/services<\/p>\n<p>3. \u76d1\u542c thing\/product\/{gateway_sn}\/services_reply<br \/>\n   \u251c\u2500\u2500 \u5339\u914d tid \u2192 \u786e\u8ba4\u6307\u4ee4\u662f\u5426\u88ab Dock \u63a5\u6536<br \/>\n   \u2514\u2500\u2500 result&#061;0 \u8868\u793a\u6210\u529f<\/p>\n<p>4. \u76d1\u542c thing\/product\/{gateway_sn}\/events<br \/>\n   \u251c\u2500\u2500 \u5339\u914d method \u2192 \u786e\u8ba4\u6b63\u5728\u76d1\u542c\u7684\u8fdb\u5ea6\u4e8b\u4ef6<br \/>\n   \u251c\u2500\u2500 \u68c0\u67e5 status&#xff08;in_progress \/ ok&#xff09;<br \/>\n   \u2514\u2500\u2500 \u89e3\u6790 progress.percent \u548c step_key<\/p>\n<hr \/>\n<h3>8. \u53c2\u8003\u8d44\u6599<\/h3>\n<ul>\n<li>DJI Cloud API \u6587\u6863<\/li>\n<li>DJI PSDK \u5f00\u53d1\u6559\u7a0b<\/li>\n<li>PSDK Speaker Widget \u6587\u6863<\/li>\n<li>DJI Dock 3 \u4ea7\u54c1\u9875<\/li>\n<li>Glider WR-01 Dock3 \u558a\u8bdd\u5668<\/li>\n<li>FlytBase Speaker &amp; Spotlight \u96c6\u6210<\/li>\n<li>DJI Zenmuse V1 \u558a\u8bdd\u5668<\/li>\n<\/ul>\n<hr \/>\n<p>&#x1f4ec; Dji-cloud-api-tool \u00b7 \u4e13\u6ce8\u5927\u7586 Cloud API \u5f00\u53d1\u8005\u5de5\u5177 github&#xff1a;https:\/\/github.com\/damon-liu\/Dji-cloud-api-tool gitee&#xff1a;https:\/\/gitee.com\/damon123-liu\/dji-cloud-api-tool \u5982\u6709\u7591\u95ee\u6216\u5408\u4f5c\u610f\u5411&#xff0c;\u6b22\u8fce\u4ea4\u6d41\u63a2\u8ba8&#xff01;&#xff01;&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u7586 Dock3 \u57fa\u4e8e PSDK \u63a5\u5165\u558a\u8bdd\u5668\u65b9\u6848 &#x1f4e1; Dji-cloud-api-tool \u00b7 \u6280\u672f\u5e72\u8d27 \u5168\u9762\u89e3\u6790 Dock3  PSDK \u558a\u8bdd\u5668\u7684\u786c\u4ef6\u63a5\u53e3\u3001\u901a\u4fe1\u534f\u8bae\u4e0e\u4e91\u7aef\u96c6\u6210 1. \u5f15\u8a00<br \/>\n\u672c\u5468\u5df2\u7ecf\u5c06\u5927\u7586PSDK\u558a\u8bdd\u5668\u529f\u80fd\u5168\u90e8\u96c6\u6210\u5230Dji-cloud-api-tool\u5de5\u5177\u4e2d&#xff0c;\u5e76\u4e14\u529f\u80fd\u8c03\u8bd5\u901a\u8fc7&#xff0c;\u7279\u610f\u6574\u7406\u4e86\u4e00\u4e0b\u5bf9\u63a5\u5b8c\u6574\u65b9\u6848&#xff0c;\u5e0c\u671b\u80fd\u5e2e\u52a9\u5230\u4f60\u3002 2. \u6982\u8ff0<br \/>\n\u672c\u6587\u6863\u8c03\u7814\u57fa\u4e8e\u5927\u7586 Dock3&#xff08;\u914d\u5957 Matrice<\/p>\n","protected":false},"author":2,"featured_media":89973,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[84],"topic":[],"class_list":["post-89974","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-android"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5e72\u8d27\uff5c\u5927\u7586 Dock3 + PSDK \u558a\u8bdd\u5668\u5bf9\u63a5\u6307\u5357\uff08\u9644\u5b9e\u6d4b MQTT \u6307\u4ee4\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/89974.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5e72\u8d27\uff5c\u5927\u7586 Dock3 + PSDK \u558a\u8bdd\u5668\u5bf9\u63a5\u6307\u5357\uff08\u9644\u5b9e\u6d4b MQTT \u6307\u4ee4\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5927\u7586 Dock3 \u57fa\u4e8e PSDK \u63a5\u5165\u558a\u8bdd\u5668\u65b9\u6848 &#x1f4e1; Dji-cloud-api-tool \u00b7 \u6280\u672f\u5e72\u8d27 \u5168\u9762\u89e3\u6790 Dock3 PSDK \u558a\u8bdd\u5668\u7684\u786c\u4ef6\u63a5\u53e3\u3001\u901a\u4fe1\u534f\u8bae\u4e0e\u4e91\u7aef\u96c6\u6210 1. \u5f15\u8a00 \u672c\u5468\u5df2\u7ecf\u5c06\u5927\u7586PSDK\u558a\u8bdd\u5668\u529f\u80fd\u5168\u90e8\u96c6\u6210\u5230Dji-cloud-api-tool\u5de5\u5177\u4e2d&#xff0c;\u5e76\u4e14\u529f\u80fd\u8c03\u8bd5\u901a\u8fc7&#xff0c;\u7279\u610f\u6574\u7406\u4e86\u4e00\u4e0b\u5bf9\u63a5\u5b8c\u6574\u65b9\u6848&#xff0c;\u5e0c\u671b\u80fd\u5e2e\u52a9\u5230\u4f60\u3002 2. \u6982\u8ff0 \u672c\u6587\u6863\u8c03\u7814\u57fa\u4e8e\u5927\u7586 Dock3&#xff08;\u914d\u5957 Matrice\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/89974.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-04T03:48:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804034836-6a71611455b49.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89974.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/89974.html\",\"name\":\"\u5e72\u8d27\uff5c\u5927\u7586 Dock3 + PSDK \u558a\u8bdd\u5668\u5bf9\u63a5\u6307\u5357\uff08\u9644\u5b9e\u6d4b MQTT \u6307\u4ee4\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-04T03:48:37+00:00\",\"dateModified\":\"2026-08-04T03:48:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/89974.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/89974.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89974.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5e72\u8d27\uff5c\u5927\u7586 Dock3 + PSDK \u558a\u8bdd\u5668\u5bf9\u63a5\u6307\u5357\uff08\u9644\u5b9e\u6d4b MQTT \u6307\u4ee4\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5e72\u8d27\uff5c\u5927\u7586 Dock3 + PSDK \u558a\u8bdd\u5668\u5bf9\u63a5\u6307\u5357\uff08\u9644\u5b9e\u6d4b MQTT \u6307\u4ee4\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/89974.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5e72\u8d27\uff5c\u5927\u7586 Dock3 + PSDK \u558a\u8bdd\u5668\u5bf9\u63a5\u6307\u5357\uff08\u9644\u5b9e\u6d4b MQTT \u6307\u4ee4\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5927\u7586 Dock3 \u57fa\u4e8e PSDK \u63a5\u5165\u558a\u8bdd\u5668\u65b9\u6848 &#x1f4e1; Dji-cloud-api-tool \u00b7 \u6280\u672f\u5e72\u8d27 \u5168\u9762\u89e3\u6790 Dock3 PSDK \u558a\u8bdd\u5668\u7684\u786c\u4ef6\u63a5\u53e3\u3001\u901a\u4fe1\u534f\u8bae\u4e0e\u4e91\u7aef\u96c6\u6210 1. \u5f15\u8a00 \u672c\u5468\u5df2\u7ecf\u5c06\u5927\u7586PSDK\u558a\u8bdd\u5668\u529f\u80fd\u5168\u90e8\u96c6\u6210\u5230Dji-cloud-api-tool\u5de5\u5177\u4e2d&#xff0c;\u5e76\u4e14\u529f\u80fd\u8c03\u8bd5\u901a\u8fc7&#xff0c;\u7279\u610f\u6574\u7406\u4e86\u4e00\u4e0b\u5bf9\u63a5\u5b8c\u6574\u65b9\u6848&#xff0c;\u5e0c\u671b\u80fd\u5e2e\u52a9\u5230\u4f60\u3002 2. \u6982\u8ff0 \u672c\u6587\u6863\u8c03\u7814\u57fa\u4e8e\u5927\u7586 Dock3&#xff08;\u914d\u5957 Matrice","og_url":"https:\/\/www.wsisp.com\/helps\/89974.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-04T03:48:37+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260804034836-6a71611455b49.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/89974.html","url":"https:\/\/www.wsisp.com\/helps\/89974.html","name":"\u5e72\u8d27\uff5c\u5927\u7586 Dock3 + PSDK \u558a\u8bdd\u5668\u5bf9\u63a5\u6307\u5357\uff08\u9644\u5b9e\u6d4b MQTT \u6307\u4ee4\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-04T03:48:37+00:00","dateModified":"2026-08-04T03:48:37+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/89974.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/89974.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/89974.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5e72\u8d27\uff5c\u5927\u7586 Dock3 + PSDK \u558a\u8bdd\u5668\u5bf9\u63a5\u6307\u5357\uff08\u9644\u5b9e\u6d4b MQTT \u6307\u4ee4\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=89974"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89974\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/89973"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=89974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=89974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=89974"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=89974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}