{"id":121190,"date":"2026-11-02T06:41:03","date_gmt":"2026-11-01T22:41:03","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/121190.html"},"modified":"2026-11-02T06:41:03","modified_gmt":"2026-11-01T22:41:03","slug":"%e3%80%90bas%e3%80%91%e8%a7%84%e8%8c%83%e7%b2%be%e8%ae%b21-%e4%b8%80%e5%9d%97%e7%94%b5%e6%b1%a0%e4%b8%80%e4%b8%aa%e5%ae%9e%e4%be%8b%ef%bc%9f%e5%85%ad%e7%a7%8d%e8%ae%be%e5%a4%87%e5%bd%a2%e6%80%81","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/121190.html","title":{"rendered":"\u3010BAS\u3011\u89c4\u8303\u7cbe\u8bb2[1]: \u4e00\u5757\u7535\u6c60\u4e00\u4e2a\u5b9e\u4f8b\uff1f\u516d\u79cd\u8bbe\u5907\u5f62\u6001\u4e0e\u7535\u6c60\u70ed\u63d2\u62d4\u4e0a\u62a5\u5168\u6d41\u7a0b"},"content":{"rendered":"<p>\u5148\u6f84\u6e05\u4e00\u4e2a\u5bb9\u6613\u6df7\u7684\u70b9&#xff1a;\u8fd9\u91cc\u7684 BAS \u662f Battery Service&#xff08;\u7535\u6c60\u670d\u52a1&#xff09;&#xff0c;\u5c5e\u4e8e GATT \u4f53\u7cfb\u4e0b\u7684\u6807\u51c6\u670d\u52a1\u3002\u5b83\u7684\u670d\u52a1 UUID \u662f\u5927\u5bb6\u719f\u6089\u7684 0x180F&#xff0c;1.1 \u7248\u672c\u5728\u8001\u7248\u672c\u53ea\u6709\u4e00\u4e2a\u7535\u91cf\u767e\u5206\u6bd4\u7279\u5f81\u7684\u57fa\u7840\u4e0a&#xff0c;\u628a\u7535\u6c60\u72b6\u6001\u3001\u80fd\u91cf\u3001\u65f6\u95f4\u3001\u5065\u5eb7\u3001\u8eab\u4efd\u4fe1\u606f\u4e00\u6574\u5957\u7279\u5f81\u8865\u9f50\u4e86\u3002<\/p>\n<hr \/>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E4%B8%80%E3%80%81%E5%85%88%E7%AB%8B%E9%AA%A8%E6%9E%B6%EF%BC%9A%E4%B8%80%E4%B8%AA%E5%AE%9E%E4%BE%8B%E5%8F%AA%E4%BC%BA%E5%80%99%E4%B8%80%E5%9D%97%E7%89%A9%E7%90%86%E7%94%B5%E6%B1%A0-toc\" style=\"margin-left:0px\">\u4e00\u3001\u5148\u7acb\u9aa8\u67b6&#xff1a;\u4e00\u4e2a\u5b9e\u4f8b\u53ea\u4f3a\u5019\u4e00\u5757\u7269\u7406\u7535\u6c60<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E5%85%AD%E7%A7%8D%E9%83%A8%E7%BD%B2%E5%BD%A2%E6%80%81%EF%BC%9A%E5%8F%98%E7%9A%84%E6%98%AF%E7%89%A9%E7%90%86%E8%BE%B9%E7%95%8C%EF%BC%8C%E4%B8%8D%E5%8F%98%E7%9A%84%E6%98%AF%E5%AE%9E%E4%BE%8B%E5%BD%92%E5%B1%9E-toc\" style=\"margin-left:0px\">\u4e8c\u3001\u516d\u79cd\u90e8\u7f72\u5f62\u6001&#xff1a;\u53d8\u7684\u662f\u7269\u7406\u8fb9\u754c&#xff0c;\u4e0d\u53d8\u7684\u662f\u5b9e\u4f8b\u5f52\u5c5e<\/p>\n<p id=\"2.1%20%E5%BD%A2%E6%80%81%E4%B8%80%E4%B8%8E%E5%BD%A2%E6%80%81%E4%BA%8C%EF%BC%9A%E5%90%84%E8%87%AA%E7%8B%AC%E7%AB%8B%E7%9A%84%E4%B8%A4%E5%A5%97%20Server-toc\" style=\"margin-left:40px\">2.1 \u5f62\u6001\u4e00\u4e0e\u5f62\u6001\u4e8c&#xff1a;\u5404\u81ea\u72ec\u7acb\u7684\u4e24\u5957 Server<\/p>\n<p id=\"2.2%20%E5%BD%A2%E6%80%81%E4%B8%89%EF%BC%9A%E5%88%86%E5%B8%83%E5%BC%8F%E8%AE%BE%E5%A4%87%E5%85%B1%E4%BA%AB%E4%B8%80%E4%B8%AA%20Server-toc\" style=\"margin-left:40px\">2.2 \u5f62\u6001\u4e09&#xff1a;\u5206\u5e03\u5f0f\u8bbe\u5907\u5171\u4eab\u4e00\u4e2a Server<\/p>\n<p id=\"2.3%20%E5%BD%A2%E6%80%81%E5%9B%9B%EF%BC%9A%E5%8F%AF%E5%88%86%E7%A6%BB%20%2B%20%E5%88%86%E5%B8%83%E5%BC%8F%EF%BC%8C%E7%83%AD%E6%8F%92%E6%8B%94%E9%97%AE%E9%A2%98%E7%9A%84%E6%BA%90%E5%A4%B4-toc\" style=\"margin-left:40px\">2.3 \u5f62\u6001\u56db&#xff1a;\u53ef\u5206\u79bb &#043; \u5206\u5e03\u5f0f&#xff0c;\u70ed\u63d2\u62d4\u95ee\u9898\u7684\u6e90\u5934<\/p>\n<p id=\"2.4%20%E5%BD%A2%E6%80%81%E4%BA%94%EF%BC%9A%E5%90%8E%E4%B9%B0%E7%9A%84%E9%85%8D%E4%BB%B6%EF%BC%8C%E5%AE%9E%E4%BE%8B%E6%8C%89%E9%9C%80%E5%BC%80%E5%BC%A0-toc\" style=\"margin-left:40px\">2.4 \u5f62\u6001\u4e94&#xff1a;\u540e\u4e70\u7684\u914d\u4ef6&#xff0c;\u5b9e\u4f8b\u6309\u9700\u5f00\u5f20<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E8%81%9A%E5%90%88%E7%BB%84%EF%BC%9A%E5%A4%9A%E5%9D%97%E7%94%B5%E6%B1%A0%E6%80%8E%E4%B9%88%E5%90%88%E6%88%90%E7%94%A8%E6%88%B7%E7%9C%8B%E5%88%B0%E7%9A%84%E4%B8%80%E6%A0%BC%E7%94%B5-toc\" style=\"margin-left:0px\">\u4e09\u3001\u805a\u5408\u7ec4&#xff1a;\u591a\u5757\u7535\u6c60\u600e\u4e48\u5408\u6210\u7528\u6237\u770b\u5230\u7684\u4e00\u683c\u7535<\/p>\n<p id=\"%E5%9B%9B%E3%80%81Low%20%E4%B8%8E%20Critical%EF%BC%9A%E4%B8%A4%E7%BA%A7%E5%91%8A%E8%AD%A6%E8%AF%AD%E4%B9%89-toc\" style=\"margin-left:0px\">\u56db\u3001Low \u4e0e Critical&#xff1a;\u4e24\u7ea7\u544a\u8b66\u8bed\u4e49<\/p>\n<p id=\"%E4%BA%94%E3%80%81%E8%AF%BB%E8%A7%84%E8%8C%83%E8%A6%81%E5%85%88%E6%8E%A5%E5%8F%97%E7%9A%84%E5%87%A0%E5%A5%97%E8%A7%84%E7%9F%A9-toc\" style=\"margin-left:0px\">\u4e94\u3001\u8bfb\u89c4\u8303\u8981\u5148\u63a5\u53d7\u7684\u51e0\u5957\u89c4\u77e9<\/p>\n<p id=\"5.1%20%E6%83%85%E6%80%81%E5%8A%A8%E8%AF%8D%E5%B0%B1%E6%98%AF%E6%B3%95%E5%BE%8B%E6%95%88%E5%8A%9B-toc\" style=\"margin-left:40px\">5.1 \u60c5\u6001\u52a8\u8bcd\u5c31\u662f\u6cd5\u5f8b\u6548\u529b<\/p>\n<p id=\"5.2%20RFU%20%E4%B8%8E%20Prohibited%EF%BC%9A%E4%B8%A4%E7%A7%8D%E6%9C%AA%E7%9F%A5%E5%80%BC%EF%BC%8C%E4%B8%A4%E7%A7%8D%E5%A4%84%E7%90%86-toc\" style=\"margin-left:40px\">5.2 RFU \u4e0e Prohibited&#xff1a;\u4e24\u79cd\u672a\u77e5\u503c&#xff0c;\u4e24\u79cd\u5904\u7406<\/p>\n<p id=\"5.3%20%E9%9C%80%E6%B1%82%E8%A1%A8%E6%A0%BC%E4%B8%8E%E4%B8%80%E8%87%B4%E6%80%A7-toc\" style=\"margin-left:40px\">5.3 \u9700\u6c42\u8868\u683c\u4e0e\u4e00\u81f4\u6027<\/p>\n<p id=\"5.4%20%E5%AD%97%E8%8A%82%E5%BA%8F%EF%BC%9A%E4%B8%80%E5%BE%8B%E5%B0%8F%E7%AB%AF-toc\" style=\"margin-left:40px\">5.4 \u5b57\u8282\u5e8f&#xff1a;\u4e00\u5f8b\u5c0f\u7aef<\/p>\n<p id=\"%E5%85%AD%E3%80%81%E7%94%B5%E6%B1%A0%E6%8B%94%E6%8F%92%E7%9A%84%E4%B8%A4%E6%9D%A1%E5%AE%8C%E6%95%B4%E6%B6%88%E6%81%AF%E6%B5%81-toc\" style=\"margin-left:0px\">\u516d\u3001\u7535\u6c60\u62d4\u63d2\u7684\u4e24\u6761\u5b8c\u6574\u6d88\u606f\u6d41<\/p>\n<p id=\"6.1%20%E5%9C%BA%E6%99%AF%E4%B8%80%EF%BC%9A%E6%8B%94%E4%B8%8B%E6%97%A7%E7%94%B5%E6%B1%A0%EF%BC%8C%E6%8F%92%E5%85%A5%E4%B8%80%E5%9D%97%E4%B8%8D%E5%90%8C%E7%9A%84%E6%96%B0%E7%94%B5%E6%B1%A0-toc\" style=\"margin-left:40px\">6.1 \u573a\u666f\u4e00&#xff1a;\u62d4\u4e0b\u65e7\u7535\u6c60&#xff0c;\u63d2\u5165\u4e00\u5757\u4e0d\u540c\u7684\u65b0\u7535\u6c60<\/p>\n<p id=\"6.2%20%E5%9C%BA%E6%99%AF%E4%BA%8C%EF%BC%9A%E6%8B%94%E4%B8%8B%E7%9A%84%E6%98%AF%E5%90%8C%E4%B8%80%E5%9D%97%E7%94%B5%E6%B1%A0%EF%BC%8C%E5%8F%88%E6%8F%92%E4%BA%86%E5%9B%9E%E6%9D%A5-toc\" style=\"margin-left:40px\">6.2 \u573a\u666f\u4e8c&#xff1a;\u62d4\u4e0b\u7684\u662f\u540c\u4e00\u5757\u7535\u6c60&#xff0c;\u53c8\u63d2\u4e86\u56de\u6765<\/p>\n<p id=\"6.3%20%E4%B8%89%E4%B8%AA%E5%B7%A5%E7%A8%8B%E4%B8%8A%E7%9A%84%E5%9D%91-toc\" style=\"margin-left:40px\">6.3 \u4e09\u4e2a\u5de5\u7a0b\u4e0a\u7684\u5751<\/p>\n<p id=\"%E4%B8%83%E3%80%81%E5%86%99%E5%9C%A8%E6%9C%80%E5%90%8E-toc\" style=\"margin-left:0px\">\u4e03\u3001\u5199\u5728\u6700\u540e<\/p>\n<p id=\"%E5%85%AB%E3%80%81%E6%B5%8B%E9%AA%8C-toc\" style=\"margin-left:0px\">\u516b\u3001\u6d4b\u9a8c<\/p>\n<hr \/>\n<p>\u505a\u8fc7 BLE \u8bbe\u5907\u7684\u540c\u5b66\u5927\u6982\u7387\u90fd\u8bfb\u8fc7\u7535\u91cf&#xff1a;\u641c\u670d\u52a1\u3001\u627e 0x2A19\u3001\u8bfb\u4e00\u4e2a 0 \u5230 100 \u7684\u5b57\u8282\u3002\u4f46\u771f\u6b63\u505a\u4ea7\u54c1\u65f6\u4f1a\u88ab\u4e00\u8fde\u4e32\u95ee\u9898\u6253\u8138&#xff1a;TWS \u4e24\u53ea\u8033\u673a\u5728\u624b\u673a\u4e0a\u4e3a\u4ec0\u4e48\u6709\u65f6\u663e\u793a\u4e24\u4e2a\u7535\u6c60\u3001\u6709\u65f6\u4e09\u4e2a&#xff08;\u8fd8\u5e26\u5145\u7535\u76d2&#xff09;&#xff1f;\u53ef\u62c6\u5378\u7b14\u8bb0\u672c\u7684\u5e95\u5ea7\u7535\u6c60\u62d4\u4e86&#xff0c;\u670d\u52a1\u8981\u4e0d\u8981\u9500\u6bc1&#xff1f;\u540e\u4e70\u7684\u80cc\u5939\u7535\u6c60\u600e\u4e48\u52a8\u6001\u5192\u51fa\u6765&#xff1f;\u8fd9\u7bc7\u5c31\u56f4\u7ed5\u8fd9\u4e9b\u95ee\u9898&#xff0c;\u628a Battery Service \u7684\u8bbe\u8ba1\u610f\u56fe\u3001\u516d\u79cd\u5178\u578b\u90e8\u7f72\u5f62\u6001\u3001\u4e09\u6761\u672f\u8bed\u548c\u70ed\u63d2\u62d4\u6d88\u606f\u6d41\u4e00\u6b21\u6027\u4e32\u8d77\u6765\u3002<\/p>\n<hr \/>\n<h2 id=\"%E4%B8%80%E3%80%81%E5%85%88%E7%AB%8B%E9%AA%A8%E6%9E%B6%EF%BC%9A%E4%B8%80%E4%B8%AA%E5%AE%9E%E4%BE%8B%E5%8F%AA%E4%BC%BA%E5%80%99%E4%B8%80%E5%9D%97%E7%89%A9%E7%90%86%E7%94%B5%E6%B1%A0\">\u4e00\u3001\u5148\u7acb\u9aa8\u67b6&#xff1a;\u4e00\u4e2a\u5b9e\u4f8b\u53ea\u4f3a\u5019\u4e00\u5757\u7269\u7406\u7535\u6c60<\/h2>\n<p>\u89c4\u8303\u5bf9 Battery Service \u7684\u5b9a\u4e49\u53ea\u6709\u4e00\u53e5\u8bdd&#xff0c;\u4f46\u4fe1\u606f\u5bc6\u5ea6\u5f88\u9ad8&#xff1a;<\/p>\n<p>The Battery Service exposes the Battery Level and other information for a battery (which may be composed of one or more cells) in the context of the battery&#039;s electrical connection to a device.<\/p>\n<p>\u62c6\u5f00\u770b\u6709\u4e09\u5c42\u610f\u601d\u3002<\/p>\n<p>\u7b2c\u4e00&#xff0c;\u670d\u52a1\u7684\u63cf\u8ff0\u5bf9\u8c61\u662f battery&#xff0c;\u4e00\u5757\u7535\u6c60\u53ef\u4ee5\u7531\u4e00\u4e2a\u6216\u591a\u4e2a cell&#xff08;\u7535\u82af&#xff09;\u7ec4\u6210\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u51e0\u8282\u7535\u82af\u4e32\u5e76\u8054\u5c01\u88c5\u6210\u4e00\u5757\u7535\u6c60\u5305&#xff0c;\u5bf9\u4e0a\u53ea\u66b4\u9732\u4e00\u4e2a\u670d\u52a1\u5b9e\u4f8b&#xff0c;\u7535\u82af\u4e0d\u662f\u5355\u72ec\u5efa\u6a21\u7684\u3002<\/p>\n<p>\u7b2c\u4e8c&#xff0c;\u6240\u6709\u4fe1\u606f\u90fd\u6709\u4e00\u4e2a\u5927\u524d\u63d0&#xff1a;in the context of the battery&#039;s electrical connection to a device&#xff0c;\u8981\u7ed3\u5408\u7535\u6c60\u4e0e\u8bbe\u5907\u7684\u7535\u6c14\u8fde\u63a5\u5173\u7cfb\u6765\u7406\u89e3\u3002\u7535\u91cf\u662f 0% \u8fd8\u662f 100% \u53ea\u662f\u8868\u5c42&#xff0c;\u8fd9\u5757\u7535\u6c60\u6b64\u523b\u5728\u4e0d\u5728\u4f4d\u3001\u8c01\u5728\u7ed9\u8c01\u4f9b\u7535\u3001\u662f\u5145\u7535\u8fd8\u662f\u653e\u7535\u3002<\/p>\n<p>\u7b2c\u4e09&#xff0c;\u591a\u7535\u6c60\u5c31\u591a\u5b9e\u4f8b&#xff0c;\u89c4\u8303\u7528\u8bcd\u662f should&#xff1a;<\/p>\n<p>If a device has several batteries to be monitored, then multiple instances of the Battery Service should be declared.<\/p>\n<p>\u6211\u4e2a\u4eba\u7684\u8bb0\u5fc6\u6a21\u578b\u662f&#xff1a;\u628a\u6bcf\u4e2a BAS \u5b9e\u4f8b\u60f3\u8c61\u6210\u4e00\u5757\u7535\u6c60\u7684\u4e13\u5c5e\u6863\u6848\u888b&#xff0c;\u91cc\u9762\u65e2\u6709\u4f53\u68c0\u8868&#xff08;\u7535\u91cf\u3001\u7535\u538b\u3001\u6e29\u5ea6\u3001\u5faa\u73af\u6b21\u6570&#xff09;&#xff0c;\u4e5f\u6709\u8eab\u4efd\u8bc1&#xff08;\u5382\u5546\u3001\u578b\u53f7\u3001\u5e8f\u5217\u53f7&#xff09;\u3002\u4e00\u5757\u7269\u7406\u7535\u6c60\u5bf9\u5e94\u4e00\u4e2a\u6863\u6848\u888b&#xff0c;\u8bbe\u5907\u4e0a\u6709\u51e0\u5757\u7535\u6c60&#xff0c;GATT \u6570\u636e\u5e93\u91cc\u5c31\u6302\u51e0\u4e2a\u6863\u6848\u888b\u3002\u540e\u9762\u6240\u6709\u7684\u90e8\u7f72\u56fe&#xff0c;\u672c\u8d28\u4e0a\u90fd\u662f\u5728\u56de\u7b54\u6863\u6848\u888b\u6302\u5728\u54ea\u9762\u5899\u4e0a&#xff08;\u54ea\u4e2a GATT Server&#xff09;\u3001\u7531\u8c01\u6765\u66f4\u65b0\u3002<\/p>\n<p>\u6700\u7b80\u5355\u7684\u5f62\u6001\u5c31\u662f\u4e00\u90e8\u624b\u673a&#xff0c;\u4e00\u5757\u7535\u6c60&#xff0c;\u4e00\u4e2a GATT Server&#xff0c;\u4e00\u4e2a\u670d\u52a1\u5b9e\u4f8b&#xff0c;\u6240\u6709\u4e1c\u897f\u5c42\u5c42\u5d4c\u5957&#xff1a;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"197\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101224102-6ae7bffe0d7c8.png\" width=\"422\" \/><\/p>\n<p>\u53e6\u5916\u8865\u4e24\u6761\u670d\u52a1\u58f0\u660e\u5c42\u9762\u7684\u786c\u7ea6\u675f&#xff08;\u5728\u540e\u9762\u7684\u670d\u52a1\u5b9a\u4e49\u7ae0\u8282\u7ed9\u51fa&#xff0c;\u5148\u8bb0\u4f4f&#xff09;&#xff1a;\u8be5\u670d\u52a1\u6ca1\u6709\u4efb\u4f55\u5176\u4ed6 GATT \u670d\u52a1\u4f9d\u8d56&#xff0c;LE \u548c BR\/EDR \u4e24\u79cd\u4f20\u8f93\u90fd\u53ef\u4ee5\u8dd1&#xff1b;\u4e00\u4e2a\u670d\u52a1\u5b9e\u4f8b\u5185\u90e8&#xff0c;\u6bcf\u79cd\u7279\u5f81\u6700\u591a\u53ea\u5141\u8bb8\u51fa\u73b0\u4e00\u4e2a\u5b9e\u4f8b&#xff0c;\u60f3\u63cf\u8ff0\u591a\u5757\u7535\u6c60\u53ea\u80fd\u9760\u591a\u5f00\u670d\u52a1&#xff0c;\u4e0d\u80fd\u5728\u4e00\u4e2a\u670d\u52a1\u91cc\u5806\u4e24\u4e2a Battery Level\u3002<\/p>\n<h2 id=\"%E4%BA%8C%E3%80%81%E5%85%AD%E7%A7%8D%E9%83%A8%E7%BD%B2%E5%BD%A2%E6%80%81%EF%BC%9A%E5%8F%98%E7%9A%84%E6%98%AF%E7%89%A9%E7%90%86%E8%BE%B9%E7%95%8C%EF%BC%8C%E4%B8%8D%E5%8F%98%E7%9A%84%E6%98%AF%E5%AE%9E%E4%BE%8B%E5%BD%92%E5%B1%9E\">\u4e8c\u3001\u516d\u79cd\u90e8\u7f72\u5f62\u6001&#xff1a;\u53d8\u7684\u662f\u7269\u7406\u8fb9\u754c&#xff0c;\u4e0d\u53d8\u7684\u662f\u5b9e\u4f8b\u5f52\u5c5e<\/h2>\n<p>\u89c4\u8303\u7528\u516d\u5f20\u56fe\u628a\u771f\u5b9e\u4ea7\u54c1\u7684\u5f62\u6001\u679a\u4e3e\u4e86\u4e00\u904d\u3002\u5efa\u8bae\u6309\u4e24\u4e2a\u7ef4\u5ea6\u53bb\u8bfb&#xff1a;\u7269\u7406\u4e0a\u6709\u51e0\u4e2a\u8bbe\u5907\u3001\u903b\u8f91\u4e0a\u6709\u51e0\u4e2a GATT Server\u3002<\/p>\n<h3 id=\"2.1%20%E5%BD%A2%E6%80%81%E4%B8%80%E4%B8%8E%E5%BD%A2%E6%80%81%E4%BA%8C%EF%BC%9A%E5%90%84%E8%87%AA%E7%8B%AC%E7%AB%8B%E7%9A%84%E4%B8%A4%E5%A5%97%20Server\">2.1 \u5f62\u6001\u4e00\u4e0e\u5f62\u6001\u4e8c&#xff1a;\u5404\u81ea\u72ec\u7acb\u7684\u4e24\u5957 Server<\/h3>\n<p>\u4e0b\u9762\u5de6\u56fe\u662f\u7269\u7406\u4e0a\u5b8c\u5168\u5206\u79bb\u7684\u4e24\u4e2a\u8bbe\u5907&#xff0c;\u5178\u578b\u4ee3\u8868\u662f\u4e00\u5bf9\u5404\u81ea\u72ec\u7acb\u5de5\u4f5c\u7684\u5de6\u53f3\u8033\u585e&#xff1b;\u4e0b\u56fe\u662f\u4e24\u4e2a\u53ef\u8d34\u5408&#xff08;attachable&#xff09;\u7684\u8bbe\u5907&#xff0c;\u6bd4\u5982\u5e73\u677f\u548c\u952e\u76d8\u3002\u6ce8\u610f\u5b83\u4eec\u7684\u5171\u540c\u70b9&#xff1a;\u65e0\u8bba\u7269\u7406\u4e0a\u8d34\u4e0d\u8d34\u5408&#xff0c;\u6bcf\u4e2a\u8bbe\u5907\u90fd\u4fdd\u7559\u81ea\u5df1\u7684\u7535\u6c60\u3001\u81ea\u5df1\u7684 BAS \u5b9e\u4f8b\u548c\u81ea\u5df1\u7684 GATT Server\u3002<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"407\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101224102-6ae7bffe2c378.png\" width=\"567\" \/><\/p>\n<p>\u5bf9 Client \u4fa7\u7684\u542b\u4e49\u662f&#xff1a;\u4f60\u8981\u5206\u522b\u5efa\u7acb\u4e24\u6761 GATT \u8fde\u63a5\u3001\u505a\u4e24\u6b21\u670d\u52a1\u53d1\u73b0&#xff0c;\u8c01\u4e5f\u4e0d\u4ee3\u7406\u8c01\u3002\u8d34\u5408\u52a8\u4f5c\u4e0d\u4f1a\u628a\u4e24\u53f0\u8bbe\u5907\u5408\u5e76\u6210\u4e00\u4e2a Server\u3002<\/p>\n<h3 id=\"2.2%20%E5%BD%A2%E6%80%81%E4%B8%89%EF%BC%9A%E5%88%86%E5%B8%83%E5%BC%8F%E8%AE%BE%E5%A4%87%E5%85%B1%E4%BA%AB%E4%B8%80%E4%B8%AA%20Server\">2.2 \u5f62\u6001\u4e09&#xff1a;\u5206\u5e03\u5f0f\u8bbe\u5907\u5171\u4eab\u4e00\u4e2a Server<\/h3>\n<p>\u540c\u6837\u662f\u4e24\u53ea\u8033\u585e&#xff0c;\u6362\u4e00\u79cd\u4ea7\u54c1\u8bbe\u8ba1\u5c31\u5b8c\u5168\u4e0d\u540c&#xff1a;\u4e24\u53ea\u7269\u7406\u8033\u585e\u5bf9\u5916\u5448\u73b0\u4e3a\u540c\u4e00\u4e2a headset&#xff08;distributed device&#xff09;&#xff0c;\u7535\u6c60\u548c\u5b9e\u4f8b\u4ecd\u7136\u5404\u6709\u4e00\u4e2a&#xff0c;\u4f46 GATT Server \u53ea\u6709\u4e00\u4e2a&#xff0c;\u7531\u5176\u4e2d\u4e00\u53ea\u8033\u585e&#xff08;\u6216\u5145\u7535\u76d2\/\u4e3b\u8033&#xff09;\u4ee3\u7ba1\u3002<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"237\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101224102-6ae7bffe3d4a8.png\" width=\"565\" \/><\/p>\n<p>\u5bf9\u6bd4\u524d\u4e00\u79cd\u5f62\u6001\u53ef\u4ee5\u4f53\u4f1a\u5230\u89c4\u8303\u7684\u5206\u5bf8&#xff1a;Server \u7684\u8fb9\u754c\u4e0d\u662f\u7531\u7269\u7406\u5916\u58f3\u51b3\u5b9a\u7684&#xff0c;\u800c\u662f\u7531\u8c01\u5bf9\u5916\u7ef4\u62a4 GATT \u6570\u636e\u5e93\u51b3\u5b9a\u7684\u3002Client \u53ea\u8fde\u4e00\u6b21&#xff0c;\u5374\u80fd\u5728\u4e00\u4e2a Server \u91cc\u53d1\u73b0\u4e24\u4e2a BAS \u5b9e\u4f8b\u3002\u56fe\u4e2d\u4e24\u53ea\u8033\u585e\u5206\u522b\u88ab\u6807\u6210 Aggregation Group 1 \u548c Group 2&#xff0c;\u8fd9\u70b9\u5148\u7559\u4e2a\u5370\u8c61&#xff0c;\u7b2c\u56db\u8282\u5c55\u5f00\u3002<\/p>\n<h3 id=\"2.3%20%E5%BD%A2%E6%80%81%E5%9B%9B%EF%BC%9A%E5%8F%AF%E5%88%86%E7%A6%BB%20%2B%20%E5%88%86%E5%B8%83%E5%BC%8F%EF%BC%8C%E7%83%AD%E6%8F%92%E6%8B%94%E9%97%AE%E9%A2%98%E7%9A%84%E6%BA%90%E5%A4%B4\">2.3 \u5f62\u6001\u56db&#xff1a;\u53ef\u5206\u79bb &#043; \u5206\u5e03\u5f0f&#xff0c;\u70ed\u63d2\u62d4\u95ee\u9898\u7684\u6e90\u5934<\/h3>\n<p>\u8fd9\u662f\u516d\u5f20\u56fe\u91cc\u4fe1\u606f\u91cf\u6700\u5927\u7684\u4e00\u5f20\u3002\u4e00\u53f0\u53ef\u62c6\u5378\u7b14\u8bb0\u672c&#xff1a;\u663e\u793a\u5c4f\u90e8\u5206\u6709\u4e00\u5757\u4e0d\u53ef\u62c6\u5378\u7535\u6c60&#xff08;Battery 1&#xff09;&#xff0c;\u5e95\u5ea7\u90e8\u5206\u585e\u4e86\u4e24\u5757\u7535\u6c60&#xff08;Battery 2\u30013&#xff09;\u3002\u6574\u673a\u5171\u4eab\u4e00\u4e2a GATT Server&#xff0c;\u4f46\u53ea\u6709\u663e\u793a\u5c4f\u5e26\u84dd\u7259\u5c04\u9891&#xff0c;\u6240\u4ee5\u5e95\u5ea7\u90a3\u4e24\u5757\u7535\u6c60\u7684\u72b6\u6001\u662f\u5148\u901a\u8fc7\u8bbe\u5907\u5185\u90e8\u94fe\u8def\u6c47\u603b\u5230\u663e\u793a\u5c4f&#xff0c;\u518d\u7531\u663e\u793a\u5c4f\u5bf9\u5916\u66b4\u9732\u7684\u3002<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"384\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101224102-6ae7bffe4b049.png\" width=\"630\" \/><\/p>\n<p>\u5173\u952e\u8bbe\u8ba1\u5728\u8fd9\u91cc&#xff1a;\u5e95\u5ea7\u88ab\u62d4\u4e0b\u6765\u4e4b\u540e&#xff0c;\u5bf9\u5e94 Battery 2\u30013 \u7684\u670d\u52a1\u548c\u7279\u5f81\u5e76\u4e0d\u4f1a\u4ece GATT \u6570\u636e\u5e93\u91cc\u6d88\u5931&#xff0c;\u800c\u662f\u7ee7\u7eed\u4fdd\u7559&#xff0c;\u53ea\u662f\u7279\u5f81\u503c\u4f1a\u8868\u660e\u7535\u6c60\u5df2\u88ab\u79fb\u9664\u3002\u89c4\u8303\u5728\u8fd9\u91cc\u76f4\u63a5\u70b9\u540d\u4e86&#xff1a;<\/p>\n<p>When the base is detached, the services and characteristics for those batteries remain in the GATT database but their values will show the batteries as being removed. See Appendix A for an example message sequence illustrating the removal and insertion of a battery.<\/p>\n<p>\u4e3a\u4ec0\u4e48\u4e0d\u52a8\u6001\u5220\u670d\u52a1&#xff1f;\u5de5\u7a0b\u4e0a\u5f88\u597d\u7406\u89e3&#xff1a;\u670d\u52a1\u53e5\u67c4\u662f Client \u505a\u53d1\u73b0\u3001\u8ba2\u9605\u3001\u7f13\u5b58\u7684\u57fa\u7840\u3002\u5982\u679c\u70ed\u63d2\u62d4\u4e00\u6b21\u5c31\u9500\u6bc1\u91cd\u5efa\u4e00\u6b21\u53e5\u67c4&#xff0c;Client \u5c31\u5f97\u53cd\u590d\u505a\u670d\u52a1\u53d1\u73b0&#xff0c;CCCD \u8ba2\u9605\u72b6\u6001\u4e5f\u5168\u90e8\u4e22\u5931\u3002\u8ba9\u6863\u6848\u888b\u7559\u5728\u5899\u4e0a\u3001\u53ea\u6539\u6863\u6848\u888b\u91cc\u7684\u5185\u5bb9&#xff0c;\u662f\u4ee3\u4ef7\u6700\u5c0f\u7684\u65b9\u6848\u3002SPEC\u7ed9\u7684\u5c31\u662f\u8fd9\u4e2a\u65b9\u6848\u7684\u6807\u51c6\u65f6\u5e8f&#xff0c;\u7b2c\u516d\u8282\u7ec6\u8bb2\u3002<\/p>\n<h3 id=\"2.4%20%E5%BD%A2%E6%80%81%E4%BA%94%EF%BC%9A%E5%90%8E%E4%B9%B0%E7%9A%84%E9%85%8D%E4%BB%B6%EF%BC%8C%E5%AE%9E%E4%BE%8B%E6%8C%89%E9%9C%80%E5%BC%80%E5%BC%A0\">2.4 \u5f62\u6001\u4e94&#xff1a;\u540e\u4e70\u7684\u914d\u4ef6&#xff0c;\u5b9e\u4f8b\u6309\u9700\u5f00\u5f20<\/h3>\n<p>\u6700\u540e\u4e00\u79cd\u5f62\u6001\u662f\u624b\u673a\u52a0\u4e00\u5757\u540e\u8d2d\u4e70\u7684\u80cc\u5939\u7535\u6c60&#xff08;phone battery sleeve&#xff09;\u3002\u624b\u673a\u51fa\u5382\u65f6\u53ea\u6709\u4e00\u4e2a\u5b9e\u4f8b&#xff1b;\u80cc\u5939\u63a5\u4e0a\u540e&#xff0c;\u624b\u673a\u901a\u8fc7\u4e00\u6761\u5185\u90e8\u7684\u7535\u6c60\u4fe1\u606f\u94fe\u8def\u8bc6\u522b\u5230\u5b83&#xff0c;\u518d\u52a8\u6001\u65b0\u5efa\u4e00\u4e2a BAS \u5b9e\u4f8b\u4ee3\u8868\u80cc\u5939&#xff0c;\u56fe\u4e2d\u7528\u7eff\u8272\u865a\u7ebf\u6846\u8868\u793a\u8fd9\u4e2a\u4e8b\u540e\u5f00\u5f20\u7684\u5b9e\u4f8b\u3002<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"302\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101224102-6ae7bffe5bf0b.png\" width=\"681\" \/><\/p>\n<p>\u6ce8\u610f\u5b83\u548c\u5f62\u6001\u56db\u7684\u5dee\u522b&#xff1a;\u5f62\u6001\u56db\u662f\u7535\u6c60\u7269\u7406\u79fb\u9664\u4f46\u5b9e\u4f8b\u5e38\u9a7b&#xff08;\u7535\u6c60\u53ef\u62c6\u5378\u3001\u5b9e\u4f8b\u4e0d\u9500\u6bc1&#xff09;&#xff1b;\u5f62\u6001\u4e94\u662f\u6574\u4e2a\u914d\u4ef6\u4e00\u5f00\u59cb\u4e0d\u5b58\u5728&#xff0c;\u5b9e\u4f8b\u968f\u914d\u4ef6\u63a5\u5165\u800c\u65b0\u589e\u3002\u8fd9\u4e5f\u662f\u89c4\u8303\u7559\u7ed9\u5b9e\u73b0\u8005\u7684\u5f39\u6027&#xff1a;\u53ef\u62c6\u5378\u7535\u6c60\u8d70\u503c\u8868\u8fbe&#xff0c;\u5916\u6302\u914d\u4ef6\u8d70\u65b0\u589e\u5b9e\u4f8b\u3002<\/p>\n<p>\u516d\u5f20\u56fe\u6d53\u7f29\u6210\u4e00\u5f20\u8868&#xff1a;<\/p>\n<table>\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5f62\u6001<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u7269\u7406\u8bbe\u5907<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>GATT Server<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>BAS \u5b9e\u4f8b<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5178\u578b\u4ea7\u54c1<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u7535\u6c60\u4e0d\u5728\u4f4d\u65f6<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u57fa\u7840\u8bbe\u5907<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u624b\u673a<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u4e0d\u6d89\u53ca<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u7269\u7406\u5206\u79bb<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u72ec\u7acb\u53cc\u8033\u585e<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5404\u7ba1\u5404<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u53ef\u8d34\u5408<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5e73\u677f&#043;\u952e\u76d8<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5404\u7ba1\u5404<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5206\u5e03\u5f0f<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5448\u73b0\u4e3a\u4e00\u4e2aheadset\u7684\u53cc\u8033<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u503c\u8868\u8fbe<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u53ef\u5206\u79bb\u5206\u5e03\u5f0f<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u591a\u90e8\u4ef6<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>1<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>3<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u53ef\u62c6\u5378\u7b14\u8bb0\u672c<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5b9e\u4f8b\u4fdd\u7559&#xff0c;\u503c\u663e\u793aremoved<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5916\u6302\u914d\u4ef6<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>2<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>1&#xff08;\u4ee3\u7ba1&#xff09;<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u521d\u59cb1&#xff0c;\u63a5\u5165\u540e2<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u624b\u673a&#043;\u80cc\u5939\u7535\u6c60<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u914d\u4ef6\u7ea7\u65b0\u589e\u5b9e\u4f8b<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Client \u4fa7\u7684\u5de5\u7a0b\u7ed3\u8bba\u5c31\u4e00\u53e5\u8bdd&#xff1a;\u6c38\u8fdc\u4e0d\u8981\u5047\u8bbe\u5bf9\u7aef\u53ea\u6709\u4e00\u4e2a 0x180F&#xff0c;\u53d1\u73b0\u670d\u52a1\u65f6\u8981\u679a\u4e3e\u5168\u90e8\u5b9e\u4f8b\u5e76\u6309\u53e5\u67c4\u8303\u56f4\u5206\u522b\u8ba2\u9605\u3002<\/p>\n<h2 id=\"%E4%B8%89%E3%80%81%E8%81%9A%E5%90%88%E7%BB%84%EF%BC%9A%E5%A4%9A%E5%9D%97%E7%94%B5%E6%B1%A0%E6%80%8E%E4%B9%88%E5%90%88%E6%88%90%E7%94%A8%E6%88%B7%E7%9C%8B%E5%88%B0%E7%9A%84%E4%B8%80%E6%A0%BC%E7%94%B5\">\u4e09\u3001\u805a\u5408\u7ec4&#xff1a;\u591a\u5757\u7535\u6c60\u600e\u4e48\u5408\u6210\u7528\u6237\u770b\u5230\u7684\u4e00\u683c\u7535<\/h2>\n<p>\u5f15\u5165\u4e00\u4e2a\u6982\u5ff5&#xff0c;Battery Aggregation Group&#xff1a;<\/p>\n<p>A Battery Aggregation Group represents a collection of one or more batteries that provide power to a device concurrently and in parallel.<\/p>\n<p>\u5173\u952e\u8bcd\u662f concurrently and in parallel&#xff0c;\u540c\u4e00\u65f6\u523b\u5e76\u8054\u4f9b\u7535\u7684\u4e00\u7ec4\u7535\u6c60\u624d\u80fd\u8fdb\u540c\u4e00\u4e2a\u805a\u5408\u7ec4\u3002\u5b83\u89e3\u51b3\u7684\u662f UI \u5448\u73b0\u95ee\u9898&#xff1a;\u7cfb\u7edf\u6709\u4e09\u5757\u7535\u6c60&#xff0c;\u7528\u6237\u4e0d\u60f3\u770b\u4e09\u4e2a\u767e\u5206\u6bd4&#xff0c;\u53ea\u60f3\u770b\u6574\u673a\u8fd8\u5269\u591a\u5c11\u7535\u3002\u89c4\u8303\u7ed9\u4e86\u4e24\u4e2a\u975e\u5e38\u5177\u4f53\u7684\u805a\u5408\u7b97\u6cd5\u793a\u4f8b\u3002<\/p>\n<p>\u80fd\u91cf\u53e3\u5f84\u7684\u7b97\u6cd5\u662f\u628a\u540c\u7ec4\u5b9e\u4f8b\u7684\u53ef\u7528\u80fd\u91cf\u6c42\u548c\u3001\u53ef\u7528\u5bb9\u91cf\u4e5f\u6c42\u548c&#xff0c;\u518d\u76f8\u9664&#xff1a;<\/p>\n<p>\u5269\u4f59\u767e\u5206\u6bd4 &#061; \u03a3 Available Energy \/ \u03a3 Available Battery Capacity<\/p>\n<p>\u7eed\u822a\u65f6\u95f4\u53e3\u5f84\u5219\u662f\u53d6\u540c\u7ec4\u5404\u5b9e\u4f8b Time until Discharged \u5b57\u6bb5\u7684\u6700\u5927\u503c&#xff0c;\u4f5c\u4e3a\u6574\u673a\u9884\u4f30\u5269\u4f59\u65f6\u95f4\u2014\u2014\u5e76\u8054\u4f9b\u7535\u65f6\u7cfb\u7edf\u80fd\u6491\u591a\u4e45\u53d6\u51b3\u4e8e\u6700\u80fd\u625b\u7684\u90a3\u4e00\u5757&#xff0c;\u800c\u4e0d\u662f\u5e73\u5747\u503c\u3002<\/p>\n<p>\u7528\u4ee3\u7801\u8868\u8fbe\u5927\u6982\u662f\u8fd9\u6837&#xff1a;<\/p>\n<p>\/* \u540c\u4e00\u805a\u5408\u7ec4\u5185\u591a\u4e2a BAS \u5b9e\u4f8b\u7684\u6c47\u603b\u7ed3\u679c *\/<br \/>\nstruct bat_inst {<br \/>\n    uint16_t avail_energy;      \/* Available Energy, \u5355\u4f4d mWh *\/<br \/>\n    uint16_t avail_capacity;    \/* Available Battery Capacity, \u5355\u4f4d mAh *\/<br \/>\n    uint32_t time_to_discharge; \/* Time until Discharged, \u5355\u4f4d s *\/<br \/>\n};<\/p>\n<p>uint8_t agg_group_percent(const struct bat_inst *g, size_t n)<br \/>\n{<br \/>\n    uint32_t sum_e &#061; 0, sum_c &#061; 0;<br \/>\n    for (size_t i &#061; 0; i &lt; n; i&#043;&#043;) {<br \/>\n        sum_e &#043;&#061; g[i].avail_energy;<br \/>\n        sum_c &#043;&#061; g[i].avail_capacity;<br \/>\n    }<br \/>\n    if (sum_c &#061;&#061; 0)<br \/>\n        return 0;<br \/>\n    \/* \u5148\u4e58 100 \u518d\u9664&#xff0c;\u907f\u514d\u6574\u6570\u622a\u65ad\u628a\u7ed3\u679c\u5403\u6210 0 *\/<br \/>\n    return (uint8_t)((sum_e * 100u) \/ sum_c);<br \/>\n}<\/p>\n<p>uint32_t agg_group_remaining_seconds(const struct bat_inst *g, size_t n)<br \/>\n{<br \/>\n    uint32_t max_t &#061; 0;<br \/>\n    for (size_t i &#061; 0; i &lt; n; i&#043;&#043;)<br \/>\n        if (g[i].time_to_discharge &gt; max_t)<br \/>\n            max_t &#061; g[i].time_to_discharge;<br \/>\n    return max_t;<br \/>\n} <\/p>\n<p>\u56de\u770b\u5f62\u6001\u56db\u90a3\u5f20\u56fe&#xff0c;\u5e95\u5ea7\u7684\u4e24\u5757\u7535\u6c60\u540c\u5c5e Aggregation Group 2&#xff0c;\u56e0\u4e3a\u5b83\u4eec\u540c\u65f6\u7ed9\u5e95\u5ea7\u4f9b\u7535&#xff1b;\u663e\u793a\u5c4f\u7684\u7535\u6c60\u5355\u72ec\u5360 Group 1\u3002\u4e24\u53ea\u8033\u585e\u867d\u7136\u5171\u4eab Server&#xff0c;\u5374\u5206\u5230\u4e24\u4e2a\u7ec4\u2014\u2014\u5b83\u4eec\u4e0d\u5e76\u8054&#xff0c;\u5404\u4f9b\u5404\u7684\u3002\u805a\u5408\u5173\u7cfb\u672c\u8eab\u4f1a\u901a\u8fc7 Battery Information \u7279\u5f81\u91cc\u7684 Battery Aggregation Group \u5b57\u6bb5\u544a\u8bc9 Client&#xff0c;UI \u600e\u4e48\u5206\u7ec4\u3001\u8981\u4e0d\u8981\u52a0\u603b&#xff0c;\u7531\u4e0a\u5c42\u5e94\u7528\u81ea\u5df1\u51b3\u5b9a&#xff0c;\u89c4\u8303\u53ea\u63d0\u4f9b\u7d20\u6750\u3002<\/p>\n<h2 id=\"%E5%9B%9B%E3%80%81Low%20%E4%B8%8E%20Critical%EF%BC%9A%E4%B8%A4%E7%BA%A7%E5%91%8A%E8%AD%A6%E8%AF%AD%E4%B9%89\">\u56db\u3001Low \u4e0e Critical&#xff1a;\u4e24\u7ea7\u544a\u8b66\u8bed\u4e49<\/h2>\n<p>\u89c4\u8303\u5bf9\u4e24\u4e2a\u8bcd\u7ed9\u4e86\u4e25\u683c\u5b9a\u4e49&#xff0c;\u505a\u4f4e\u7535\u7b56\u7565\u65f6\u4e0d\u80fd\u6df7&#xff1a;<\/p>\n<p>Low: the device will still function normally, but immediate recharge or replacement of the battery is recommended.<\/p>\n<p>Critical: a load powered by the battery might not function fully or correctly.<\/p>\n<p>\u6253\u4e2a\u6bd4\u65b9&#xff1a;Low \u76f8\u5f53\u4e8e\u6cb9\u8868\u4eae\u706f&#xff0c;\u8f66\u8fd8\u80fd\u6b63\u5e38\u5f00&#xff0c;\u4f46\u89c4\u8303\u5efa\u8bae\u4f60\u7acb\u523b\u53bb\u52a0\u6cb9\u6216\u6362\u7535\u6c60&#xff1b;Critical \u5219\u662f\u53d1\u52a8\u673a\u5df2\u7ecf\u5f00\u59cb\u5598\u632f&#xff0c;\u7531\u7535\u6c60\u4f9b\u7535\u7684\u8d1f\u8f7d\u53ef\u80fd\u65e0\u6cd5\u5b8c\u6574\u6216\u6b63\u786e\u5730\u5de5\u4f5c&#xff0c;\u8be5\u4fdd\u5b58\u6570\u636e\u3001\u964d\u9891\u3001\u901a\u77e5\u7528\u6237\u4e86\u3002\u4e00\u4e2a\u662f\u529f\u80fd\u5b8c\u597d\u7684\u63d0\u9192\u6001&#xff0c;\u4e00\u4e2a\u662f\u529f\u80fd\u5373\u5c06\u53d7\u635f\u7684\u5931\u6548\u9884\u8b66&#xff0c;\u4e24\u8005\u5728 Battery Critical Status\u3001Battery Level Status \u7b49\u7279\u5f81\u91cc\u90fd\u6709\u5bf9\u5e94\u6bd4\u7279\u4f4d&#xff0c;SPEC 1.1 \u7248\u672c\u6b63\u662f\u4e3a\u4e86\u628a\u8fd9\u79cd\u8bed\u4e49\u6807\u51c6\u5316&#xff0c;\u800c\u4e0d\u662f\u8ba9\u6bcf\u5bb6\u5382\u5546\u81ea\u5b9a\u4e49\u4e00\u4e2a\u4f4e\u7535\u9608\u503c\u3002<\/p>\n<h2 id=\"%E4%BA%94%E3%80%81%E8%AF%BB%E8%A7%84%E8%8C%83%E8%A6%81%E5%85%88%E6%8E%A5%E5%8F%97%E7%9A%84%E5%87%A0%E5%A5%97%E8%A7%84%E7%9F%A9\">\u4e94\u3001\u8bfb\u89c4\u8303\u8981\u5148\u63a5\u53d7\u7684\u51e0\u5957\u89c4\u77e9<\/h2>\n<h3 id=\"5.1%20%E6%83%85%E6%80%81%E5%8A%A8%E8%AF%8D%E5%B0%B1%E6%98%AF%E6%B3%95%E5%BE%8B%E6%95%88%E5%8A%9B\">5.1 \u60c5\u6001\u52a8\u8bcd\u5c31\u662f\u6cd5\u5f8b\u6548\u529b<\/h3>\n<p>\u84dd\u7259\u89c4\u8303\u7528 shall\u3001must\u3001will\u3001should\u3001may\u3001can \u8fd9\u51e0\u4e2a\u8bcd\u8868\u8fbe\u4e0d\u540c\u5f3a\u5ea6\u7684\u8981\u6c42&#xff0c;\u8bfb\u7684\u65f6\u5019\u5fc5\u987b\u9010\u5b57\u8f83\u771f&#xff1a;<\/p>\n<table>\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u7528\u8bcd<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u542b\u4e49<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u843d\u5730\u7406\u89e3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>shall<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>is required to<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5f3a\u5236\u8981\u6c42&#xff0c;\u4e0d\u5408\u89c4\u5c31\u662f\u4e0d\u5408\u683c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>must<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5f3a\u5236\u8981\u6c42\u7684\u5fc5\u7136\u63a8\u8bba&#xff0c;\u6216\u4e0d\u4e89\u7684\u4e8b\u5b9e<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u6ca1\u6709\u5546\u91cf\u4f59\u5730<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>will<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>it is true that<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u4e8b\u5b9e\u9648\u8ff0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>should<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>is recommended that<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u63a8\u8350&#xff0c;\u4e0d\u505a\u8981\u6709\u7406\u7531<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>may<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>is permitted to<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5141\u8bb8\u7684\u53ef\u9009\u9879<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>can<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>is able to<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u80fd\u529b\/\u56e0\u679c\u63cf\u8ff0<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u524d\u9762\u90a3\u53e5\u591a\u7535\u6c60 should \u591a\u5b9e\u4f8b\u5c31\u662f\u63a8\u8350\u800c\u975e\u5f3a\u5236&#xff1b;\u800c\u5b57\u8282\u5e8f\u3001\u670d\u52a1 UUID \u7528\u7684\u662f shall&#xff0c;\u6ca1\u6709\u4f8b\u5916\u3002\u53e6\u5916 note \u53ea\u662f\u63d0\u793a&#xff0c;\u4e0d\u80fd\u5939\u5e26\u65b0\u8981\u6c42&#xff0c;\u5f53 note \u7684\u6f84\u6e05\u548c\u6b63\u6587\u8981\u6c42\u51b2\u7a81\u65f6&#xff0c;\u4ee5\u8981\u6c42\u4e3a\u51c6\u3002\u89c4\u8303\u8fd8\u660e\u786e&#xff1a;\u56fe\u548c\u6b63\u6587\u4e0d\u4e00\u81f4\u65f6&#xff0c;\u6587\u5b57\u4f18\u5148&#xff0c;\u56fe\u53ea\u662f visual aid&#xff0c;\u56fe\u91cc\u753b\u7684\u67d0\u4e00\u79cd\u5b9e\u73b0\u65b9\u5f0f\u4e0d\u6784\u6210\u5bf9\u5b9e\u73b0\u7684\u9650\u5236\u3002<\/p>\n<h3 id=\"5.2%20RFU%20%E4%B8%8E%20Prohibited%EF%BC%9A%E4%B8%A4%E7%A7%8D%E6%9C%AA%E7%9F%A5%E5%80%BC%EF%BC%8C%E4%B8%A4%E7%A7%8D%E5%A4%84%E7%90%86\">5.2 RFU \u4e0e Prohibited&#xff1a;\u4e24\u79cd\u672a\u77e5\u503c&#xff0c;\u4e24\u79cd\u5904\u7406<\/h3>\n<p>\u9884\u7559\u5b57\u6bb5 RFU&#xff08;Reserved for Future Use&#xff0c;\u8fd9\u4e2a\u7f29\u5199\u548c\u5168\u79f0\u7b49\u4ef7&#xff09;\u7684\u5904\u7406\u5206\u4e09\u79cd\u60c5\u5f62&#xff0c;\u975e\u5e38\u5bb9\u6613\u5728\u9762\u8bd5\u91cc\u88ab\u7ed5&#xff1a;<\/p>\n<p>1. \u7ed3\u6784\u4f53\u91cc\u7684 RFU \u5b57\u6bb5&#xff1a;\u53d1\u9001\u65b9\u586b 0&#xff1b;\u63a5\u6536\u65b9\u5fc5\u987b\u5ffd\u7565\u5b83&#xff0c;\u5c24\u5176\u4e0d\u80fd\u56e0\u4e3a\u5b83\u975e\u96f6\u5c31\u62d2\u7edd\u6574\u4e2a\u7ed3\u6784\u3002<\/p>\n<p>2. \u53d6\u503c\u8303\u56f4\u91cc\u88ab\u5212\u4e3a RFU \u7684\u679a\u4e3e\u503c&#xff1a;\u53d1\u9001\u65b9\u4e0d\u5f97\u4f7f\u7528&#xff1b;\u63a5\u6536\u65b9\u6536\u5230\u5e94\u5f53\u8fde\u540c\u6240\u5728\u6570\u636e\u7ed3\u6784\u4e00\u8d77\u62d2\u7edd&#xff0c;\u9664\u975e\u89c4\u8303\u660e\u786e\u8bf4\u8be5\u573a\u666f\u4e0b\u8981\u5ffd\u7565\u65e0\u6cd5\u8bc6\u522b\u7684\u503c\u3002<\/p>\n<p>3. RFU \u6bd4\u7279\u4f4d&#xff1a;\u672a\u5206\u914d\u6bd4\u7279\u53d1 0&#xff1b;\u6536\u5230\u4e3a 1 \u7684\u6d88\u606f\u65f6\u6309 0 \u7ee7\u7eed\u5904\u7406&#xff08;\u53e6\u6709\u89c4\u5b9a\u9664\u5916&#xff09;\u3002<\/p>\n<p>Prohibited \u53ea\u7528\u4e8e\u679a\u4e3e\u578b\u5b57\u6bb5\u91cc\u90a3\u4e9b\u672a\u5206\u914d\u7684\u503c&#xff0c;\u539f\u6587\u8981\u6c42\u4e09\u8fde&#xff1a;<\/p>\n<p>These values shall never be used by an implementation, and any message received that includes a Prohibited value shall be ignored and shall not be processed and shall not be responded to.<\/p>\n<p>\u6536\u5230\u5e26 Prohibited \u503c\u7684\u6d88\u606f&#xff1a;\u5ffd\u7565\u3001\u4e0d\u5904\u7406\u3001\u4e0d\u56de\u590d&#xff0c;\u6ce8\u610f\u662f\u4e0d\u54cd\u5e94&#xff0c;\u8fde\u9519\u8bef\u5e94\u7b54\u90fd\u4e0d\u8981\u56de\u3002\u800c\u4e14 Prohibited \u8fd9\u4e2a\u8bcd\u4ece\u6765\u4e0d\u7f29\u5199\u3002\u4e00\u53e5\u8bdd\u533a\u5206&#xff1a;RFU \u6bd4\u7279\u6536\u5230\u5f53 0\u3001\u534f\u8bae\u5c3d\u91cf\u5411\u524d\u517c\u5bb9&#xff1b;Prohibited \u503c\u6536\u5230\u5f53\u5783\u573e\u3001\u6574\u5305\u9759\u9ed8\u4e22\u5f03\u3002<\/p>\n<h3 id=\"5.3%20%E9%9C%80%E6%B1%82%E8%A1%A8%E6%A0%BC%E4%B8%8E%E4%B8%80%E8%87%B4%E6%80%A7\">5.3 \u9700\u6c42\u8868\u683c\u4e0e\u4e00\u81f4\u6027<\/h3>\n<p>\u540e\u9762\u6240\u6709\u7279\u6027\u8868\u683c\u7528 M&#xff08;\u5f3a\u5236&#xff09;\u3001O&#xff08;\u53ef\u9009&#xff09;\u3001X&#xff08;\u6392\u9664&#xff09;\u3001N\/A&#xff08;\u4e0d\u9002\u7528&#xff09;\u3001C.n&#xff08;\u6761\u4ef6\u5f3a\u5236&#xff09;\u6807\u6ce8&#xff0c;\u6761\u4ef6\u8bed\u53e5\u7d27\u8ddf\u5728\u8868\u683c\u4e0b\u65b9\u3002\u4e00\u81f4\u6027\u539f\u5219\u53eb process-mandatory&#xff1a;\u53ea\u8981\u4f60\u5ba3\u79f0\u7b26\u5408\u672c\u89c4\u8303&#xff0c;\u6240\u6709\u6807 M \u7684\u80fd\u529b\u5fc5\u987b\u6309\u89c4\u5b9a\u65b9\u5f0f\u652f\u6301&#xff1b;\u4f60\u81ea\u5df1\u9009\u4e86\u8981\u652f\u6301\u7684 O \u548c C \u9879&#xff0c;\u540c\u6837\u5fc5\u987b\u5b8c\u6574\u505a\u5230\u3002\u4e0d\u80fd\u53ea\u5b9e\u73b0\u4e00\u534a\u7136\u540e\u5ba3\u79f0\u652f\u6301\u3002<\/p>\n<h3 id=\"5.4%20%E5%AD%97%E8%8A%82%E5%BA%8F%EF%BC%9A%E4%B8%80%E5%BE%8B%E5%B0%8F%E7%AB%AF\">5.4 \u5b57\u8282\u5e8f&#xff1a;\u4e00\u5f8b\u5c0f\u7aef<\/h3>\n<p>All characteristics used with this service shall be transmitted with the least significant octet first (i.e., little endian).<\/p>\n<p>\u6240\u6709\u7279\u5f81\u503c\u4e00\u5f8b\u6700\u4f4e\u6709\u6548\u5b57\u8282\u5728\u524d\u3002BAS 1.1 \u65b0\u589e\u7684\u5b57\u6bb5\u5927\u91cf\u662f uint16\u3001uint24&#xff08;\u7535\u538b\u3001\u80fd\u91cf\u3001\u5bb9\u91cf\u3001\u65f6\u95f4\u3001\u6e29\u5ea6&#xff09;&#xff0c;\u89e3\u6790\u65f6\u4e0d\u80fd\u60f3\u5f53\u7136\u6309\u7f51\u7edc\u5b57\u8282\u5e8f\u5904\u7406\u3002\u4e00\u6bb5\u5178\u578b\u7684\u89e3\u6790\u4ee3\u7801&#xff1a;<\/p>\n<p>\/* \u7279\u5f81\u503c\u7f13\u51b2\u533a\u4e2d\u6309\u5c0f\u7aef\u53d6\u51fa\u591a\u5b57\u8282\u6574\u6570 *\/<br \/>\nstatic uint16_t rd_u16_le(const uint8_t *p)<br \/>\n{<br \/>\n    return (uint16_t)p[0] | ((uint16_t)p[1] &lt;&lt; 8);<br \/>\n}<\/p>\n<p>static uint32_t rd_u24_le(const uint8_t *p)<br \/>\n{<br \/>\n    return (uint32_t)p[0] | ((uint32_t)p[1] &lt;&lt; 8) | ((uint32_t)p[2] &lt;&lt; 16);<br \/>\n}<\/p>\n<p>\/* \u4f8b&#xff1a;\u89e3\u6790 Battery Energy Status \u4e2d\u7684\u7535\u538b\u4e0e\u53ef\u7528\u80fd\u91cf&#xff08;\u5b57\u6bb5\u524d\u8fd8\u6709 flags&#xff09; *\/<br \/>\nvoid parse_energy_status(const uint8_t *v)<br \/>\n{<br \/>\n    uint16_t present_voltage_mv &#061; rd_u16_le(v &#043; 2); \/* Present Voltage, \u5206\u8fa8\u7387 1mV *\/<br \/>\n    uint16_t avail_energy_mwh   &#061; rd_u16_le(v &#043; 5); \/* Available Energy, \u5206\u8fa8\u7387 1mWh *\/<br \/>\n    \/* &#8230; *\/<br \/>\n    (void)present_voltage_mv; (void)avail_energy_mwh;<br \/>\n} <\/p>\n<h2 id=\"%E5%85%AD%E3%80%81%E7%94%B5%E6%B1%A0%E6%8B%94%E6%8F%92%E7%9A%84%E4%B8%A4%E6%9D%A1%E5%AE%8C%E6%95%B4%E6%B6%88%E6%81%AF%E6%B5%81\">\u516d\u3001\u7535\u6c60\u62d4\u63d2\u7684\u4e24\u6761\u5b8c\u6574\u6d88\u606f\u6d41<\/h2>\n<p>\u5f62\u6001\u56db\u57cb\u7684\u94a9\u5b50\u5728\u8fd9\u91cc\u6536\u3002\u89c4\u8303\u7528\u4e24\u5f20\u6d88\u606f\u5e8f\u5217\u56fe&#xff08;MSC&#xff09;\u56de\u7b54\u540c\u4e00\u4e2a\u95ee\u9898&#xff1a;\u7535\u6c60\u88ab\u7269\u7406\u62d4\u51fa\u3001\u518d\u63d2\u5165&#xff0c;\u7a7a\u53e3\u5230\u5e95\u53d1\u751f\u4e86\u4ec0\u4e48\u3002\u524d\u63d0\u8bbe\u8ba1\u662f\u7279\u5f81\u5e38\u9a7b GATT \u6570\u636e\u5e93&#xff0c;\u9760\u7279\u5f81\u503c\u672c\u8eab\u8868\u8fbe\u7535\u6c60\u5728\u4e0d\u5728\u4f4d&#xff1a;<\/p>\n<p>&#8230;the characteristics remain in the GATT database but their values tell if the battery is present or not.<\/p>\n<h3 id=\"6.1%20%E5%9C%BA%E6%99%AF%E4%B8%80%EF%BC%9A%E6%8B%94%E4%B8%8B%E6%97%A7%E7%94%B5%E6%B1%A0%EF%BC%8C%E6%8F%92%E5%85%A5%E4%B8%80%E5%9D%97%E4%B8%8D%E5%90%8C%E7%9A%84%E6%96%B0%E7%94%B5%E6%B1%A0\">6.1 \u573a\u666f\u4e00&#xff1a;\u62d4\u4e0b\u65e7\u7535\u6c60&#xff0c;\u63d2\u5165\u4e00\u5757\u4e0d\u540c\u7684\u65b0\u7535\u6c60<\/h3>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"477\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101224102-6ae7bffe6ab6a.png\" width=\"766\" \/><\/p>\n<p>\u9010\u6b65\u8d70\u4e00\u904d&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6b65\u9aa4 1 \u5230 3&#xff0c;Client \u5206\u522b\u7ed9 Battery Information\u3001Serial Number String\u3001Battery Energy Status \u4e09\u4e2a\u7279\u5f81\u7684 CCCD&#xff08;Client Characteristic Configuration Descriptor&#xff09;\u5199\u503c&#xff0c;\u4f7f\u80fd indication\u3002\u8fd9\u662f\u8ba2\u9605\u52a8\u4f5c&#xff0c;\u672c\u8d28\u662f\u5bf9 CCCD \u53e5\u67c4\u5199\u5165 0x0002&#xff08;\u5c0f\u7aef\u4e24\u4e2a\u5b57\u8282&#xff09;&#xff1a;<\/p>\n<\/li>\n<\/ul>\n<p>\/* ATT Write Request: \u4f7f\u80fd\u67d0\u4e2a\u7279\u5f81\u7684 Indication *\/<br \/>\nuint8_t  att_op      &#061; 0x12;   \/* Write Request *\/<br \/>\nuint16_t cccd_handle &#061; 0x0142;\/* \u76ee\u6807\u7279\u5f81 CCCD \u7684\u53e5\u67c4&#xff0c;\u6309\u5b9e\u9645\u53d1\u73b0\u7ed3\u679c\u586b\u5165 *\/<br \/>\nuint8_t  value[2]    &#061; { 0x02, 0x00 }; \/* 0x0002 &#061; Indication&#xff0c;\u5c0f\u7aef *\/<br \/>\n\/* notification \u5bf9\u5e94 0x0001&#xff1b;indication \u5e26\u786e\u8ba4&#xff0c;\u9002\u5408\u7535\u6c60\u8fd9\u79cd\u5173\u952e\u72b6\u6001 *\/ <\/p>\n<ul>\n<li>\n<p>\u6b65\u9aa4 4 \u662f Server \u672c\u5730\u4e8b\u4ef6&#xff1a;\u7535\u6c60\u88ab\u62d4\u51fa&#xff0c;\u6ca1\u6709\u7a7a\u53e3\u6d88\u606f\u3002<\/p>\n<\/li>\n<li>\n<p>\u6b65\u9aa4 5&#xff0c;Server \u4e3b\u52a8\u4e0a\u62a5 Battery Energy Status \u7684\u53d8\u5316&#xff0c;\u5176\u4e2d Battery Present \u4f4d\u4e3a No&#xff0c;\u5ba3\u544a\u7535\u6c60\u4e0d\u5728\u4f4d\u3002<\/p>\n<\/li>\n<\/ul>\n<p>&#8211; \u6b65\u9aa4 6&#xff0c;\u672c\u5730\u4e8b\u4ef6&#xff1a;\u4e00\u5757\u65b0\u7684\u7535\u6c60\u63d2\u5165\u3002<\/p>\n<ul>\n<li>\n<p>\u6b65\u9aa4 7\u30018&#xff0c;\u56e0\u4e3a\u6362\u4e86\u7535\u6c60&#xff0c;\u8eab\u4efd\u8bc1\u4fe1\u606f\u5168\u90e8\u7ffb\u65b0&#xff0c;Battery Information \u548c Serial Number String \u5404\u81ea\u4e0a\u62a5\u4e00\u6b21\u53d8\u5316\u3002<\/p>\n<\/li>\n<li>\n<p>\u6b65\u9aa4 9&#xff0c;\u518d\u6b21\u4e0a\u62a5 Battery Energy Status&#xff0c;Battery Present \u4f4d\u53d8\u56de Yes\u3002<\/p>\n<\/li>\n<\/ul>\n<h3 id=\"6.2%20%E5%9C%BA%E6%99%AF%E4%BA%8C%EF%BC%9A%E6%8B%94%E4%B8%8B%E7%9A%84%E6%98%AF%E5%90%8C%E4%B8%80%E5%9D%97%E7%94%B5%E6%B1%A0%EF%BC%8C%E5%8F%88%E6%8F%92%E4%BA%86%E5%9B%9E%E6%9D%A5\">6.2 \u573a\u666f\u4e8c&#xff1a;\u62d4\u4e0b\u7684\u662f\u540c\u4e00\u5757\u7535\u6c60&#xff0c;\u53c8\u63d2\u4e86\u56de\u6765<\/h3>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"511\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101224102-6ae7bffe7e9b9.png\" width=\"866\" \/><\/p>\n<p>\u65f6\u5e8f\u51e0\u4e4e\u4e00\u6837&#xff0c;\u552f\u4e00\u533a\u522b\u5728\u6b65\u9aa4 7\u30018 \u88ab alt \/ optional \u7ec4\u5408\u6846\u5305\u4f4f&#xff1a;\u63d2\u56de\u6765\u7684\u8fd8\u662f\u540c\u4e00\u5757\u7535\u6c60&#xff0c;\u8eab\u4efd\u4fe1\u606f\u6ca1\u53d8&#xff0c;\u5382\u5546\u3001\u578b\u53f7\u3001\u5e8f\u5217\u53f7\u90fd\u4e00\u6837&#xff0c;\u8fd9\u4e24\u6761 indication \u5c31\u53ef\u4ee5\u4e0d\u53d1&#xff1b;\u4f46\u6b65\u9aa4 9 \u4e0d\u80fd\u7701&#xff0c;\u5728\u4f4d\u72b6\u6001\u4ece No \u7ffb\u56de Yes \u5fc5\u987b\u901a\u77e5 Client\u3002<\/p>\n<p>\u8fd9\u4e24\u5f20\u56fe\u653e\u5728\u4e00\u8d77&#xff0c;\u89c4\u8303\u7684\u610f\u56fe\u975e\u5e38\u6e05\u695a&#xff1a;\u4e0a\u62a5\u5185\u5bb9\u6309\u72b6\u6001\u5dee\u5f02\u88c1\u526a&#xff0c;\u8eab\u4efd\u6ca1\u53d8\u5c31\u4e0d\u91cd\u590d\u62a5\u8eab\u4efd\u8bc1&#xff0c;\u5728\u4f4d\u72b6\u6001\u6c38\u8fdc\u7167\u62a5\u3002<\/p>\n<h3 id=\"6.3%20%E4%B8%89%E4%B8%AA%E5%B7%A5%E7%A8%8B%E4%B8%8A%E7%9A%84%E5%9D%91\">6.3 \u4e09\u4e2a\u5de5\u7a0b\u4e0a\u7684\u5751<\/h3>\n<p>\u7b2c\u4e00&#xff0c;indication \u662f\u6709\u786e\u8ba4\u7684&#xff08;Server \u53d1\u5b8c\u8981\u7b49 Client \u7684 Confirmation Handle Value Indication&#xff09;&#xff0c;\u548c\u4e0d\u9700\u8981\u786e\u8ba4\u7684 notification \u4e0d\u540c\u3002\u7535\u6c60\u5728\u4f4d\u72b6\u6001\u5c5e\u4e8e\u5173\u952e\u4e8b\u4ef6&#xff0c;\u7528 indication \u53ef\u4ee5\u4fdd\u8bc1 Client \u4e0d\u4e22\u4e8b\u4ef6&#xff1b;\u4f46\u5982\u679c\u56fa\u4ef6\u91cc\u6ca1\u5904\u7406\u597d\u786e\u8ba4\u8d85\u65f6\u91cd\u4f20&#xff0c;\u8fde\u7eed\u5feb\u901f\u62d4\u63d2\u53ef\u80fd\u628a\u6307\u793a\u961f\u5217\u5835\u6b7b\u3002<\/p>\n<p>\u7b2c\u4e8c&#xff0c;\u70ed\u63d2\u62d4\u671f\u95f4\u4e0d\u8981\u9500\u6bc1\u670d\u52a1\u3001\u4e0d\u8981\u6539\u53e5\u67c4\u3002Client \u4e0d\u9700\u8981\u91cd\u65b0\u505a\u670d\u52a1\u53d1\u73b0&#xff0c;\u7b49\u6307\u793a\u5373\u53ef&#xff1b;\u5982\u679c\u5b9e\u73b0\u6210\u52a8\u6001\u5220\u670d\u52a1&#xff0c;\u4e0d\u4ec5\u8fdd\u80cc\u9644\u5f55\u7684\u793a\u4f8b\u6a21\u578b&#xff0c;\u8fd8\u4f1a\u8ba9\u8ba2\u9605\u8fc7\u7684 CCCD \u5168\u90e8\u5931\u6548\u3002<\/p>\n<p>\u7b2c\u4e09&#xff0c;\u7535\u6c60\u4e0d\u5728\u4f4d\u65f6&#xff0c;\u9664\u5728\u4f4d\u6807\u5fd7\u5916\u7684\u5176\u4ed6\u5b57\u6bb5\u662f\u5426\u53ef\u8bfb\u3001\u8bfb\u51fa\u4ec0\u4e48\u503c&#xff0c;\u8981\u4ee5\u5404\u7279\u5f81\u81ea\u8eab\u884c\u4e3a\u5b9a\u4e49\u4e3a\u51c6&#xff0c;Client \u7aef\u4e0d\u8981\u628a 0 \u7535\u91cf\u76f4\u63a5\u663e\u793a\u6210\u7a7a\u7535\u2014\u2014\u5148\u5224 Battery Present&#xff0c;\u518d\u770b\u6570\u503c&#xff0c;\u5426\u5219\u62d4\u51fa\u7535\u6c60\u7684\u77ac\u95f4 UI \u53ef\u80fd\u95ea\u51fa\u4e00\u683c 0%\u3002<\/p>\n<h2 id=\"%E4%B8%83%E3%80%81%E5%86%99%E5%9C%A8%E6%9C%80%E5%90%8E\">\u4e03\u3001\u5199\u5728\u6700\u540e<\/h2>\n<p>\u7528\u4e00\u6761\u4e3b\u7ebf\u628a\u5168\u6587\u4e32\u8d77\u6765&#xff1a;\u4e00\u5757\u7269\u7406\u7535\u6c60\u5bf9\u5e94\u4e00\u4e2a BAS \u5b9e\u4f8b&#xff08;\u7535\u82af\u4e0d\u5355\u72ec\u5efa\u6a21&#xff09;&#xff0c;\u5b9e\u4f8b\u6302\u5728\u54ea\u4e2a GATT Server \u53d6\u51b3\u4e8e\u8bbe\u5907\u5f62\u6001&#xff0c;\u7535\u6c60\u7269\u7406\u4e0d\u5728\u4f4d\u65f6\u5b9e\u4f8b\u5e38\u9a7b\u3001\u7528\u503c\u8868\u8fbe&#xff0c;\u8eab\u4efd\u53d8\u5316\u624d\u89e6\u53d1\u8eab\u4efd\u7c7b\u7279\u5f81\u4e0a\u62a5\u3002\u518d\u914d\u4e0a\u5c0f\u7aef\u5b57\u8282\u5e8f\u3001RFU\/Prohibited \u7684\u5904\u7406\u7eaa\u5f8b\u548c\u805a\u5408\u7ec4\u7684\u4e24\u6761\u6c42\u548c\/\u53d6\u6700\u5927\u503c\u7b97\u6cd5&#xff0c;\u540e\u9762\u5341\u4e8c\u4e2a\u5177\u4f53\u7279\u5f81\u7684\u884c\u4e3a\u5b9a\u4e49\u8bfb\u8d77\u6765\u5c31\u53ea\u662f\u67e5\u5b57\u5178\u4e86\u3002<\/p>\n<hr \/>\n<h2 id=\"%E5%85%AB%E3%80%81%E6%B5%8B%E9%AA%8C\">\u516b\u3001\u6d4b\u9a8c<\/h2>\n<p>Q1&#xff1a;\u4e00\u53f0 BLE \u8bbe\u5907\u4e0a\u6700\u591a\/\u6700\u5c11\u6709\u51e0\u4e2a Battery Service&#xff1f;TWS \u8033\u673a\u5728\u624b\u673a\u4e0a\u53ef\u80fd\u770b\u5230\u51e0\u4e2a\u7535\u6c60\u670d\u52a1&#xff1f;<\/p>\n<p>\u53c2\u8003\u7b54\u6848&#xff1a;<\/p>\n<p>\u6ca1\u6709\u6570\u91cf\u4e0a\u9650\u7684\u5f3a\u5236\u89c4\u5b9a&#xff0c;\u4e00\u5757\u9700\u8981\u76d1\u63a7\u7684\u7535\u6c60\u5bf9\u5e94\u4e00\u4e2a\u5b9e\u4f8b&#xff0c;\u591a\u7535\u6c60\u5e94\u58f0\u660e\u591a\u4e2a\u5b9e\u4f8b&#xff08;\u89c4\u8303\u7528\u8bcd should&#xff09;&#xff0c;\u5355\u7535\u6c60\u8bbe\u5907\u5c31\u662f\u4e00\u4e2a\u3002TWS \u8033\u673a\u53d6\u51b3\u4e8e\u4ea7\u54c1\u5f62\u6001&#xff1a;\u5982\u679c\u5de6\u53f3\u8033\u5404\u81ea\u662f\u72ec\u7acb GATT Server&#xff08;\u5404\u81ea\u72ec\u7acb\u8fde\u63a5&#xff09;&#xff0c;\u624b\u673a\u901a\u8fc7\u4e24\u6761\u94fe\u8def\u5404\u770b\u5230\u4e00\u4e2a&#xff1b;\u5982\u679c\u53cc\u8033\u5bf9\u5916\u5448\u73b0\u4e3a\u4e00\u4e2a\u5206\u5e03\u5f0f\u8bbe\u5907\u3001\u5171\u4eab\u4e00\u4e2a GATT Server&#xff0c;\u5219\u5728\u4e00\u6761\u94fe\u8def\u7684\u540c\u4e00\u4e2a Server \u4e0b\u53d1\u73b0\u4e24\u4e2a\u5b9e\u4f8b&#xff1b;\u82e5\u5145\u7535\u76d2\u4e5f\u7eb3\u5165\u5e76\u7531\u540c\u4e00 Server \u4ee3\u7ba1&#xff0c;\u8fd8\u53ef\u80fd\u51fa\u73b0\u4e09\u4e2a\u5b9e\u4f8b&#xff08;\u5de6\u3001\u53f3\u3001\u76d2&#xff09;\u3002\u6bcf\u53f0 Server \u5185\u90e8\u6bcf\u79cd\u7279\u5f81\u53ea\u5141\u8bb8\u4e00\u4e2a\u5b9e\u4f8b&#xff0c;\u6269\u5c55\u9760\u591a\u5f00\u670d\u52a1\u800c\u4e0d\u662f\u91cd\u590d\u7279\u5f81\u3002<\/p>\n<p>Q2&#xff1a;\u53ef\u62c6\u5378\u8bbe\u5907\u7684\u7535\u6c60\u88ab\u62d4\u51fa\u65f6&#xff0c;GATT \u6570\u636e\u5e93\u4e2d\u7684 Battery Service \u53ca\u5176\u7279\u5f81\u662f\u5426\u5e94\u5f53\u5220\u9664&#xff1f;Client \u5982\u4f55\u611f\u77e5\u62d4\u63d2&#xff1f;<\/p>\n<p>\u53c2\u8003\u7b54\u6848&#xff1a;<\/p>\n<p>\u4e0d\u5220\u9664\u3002\u670d\u52a1\u548c\u7279\u5f81\u5e38\u9a7b GATT \u6570\u636e\u5e93&#xff0c;\u7531\u7279\u5f81\u503c\u8868\u8fbe\u7535\u6c60\u662f\u5426\u5728\u4f4d\u3002Client \u4e8b\u5148\u901a\u8fc7\u5199 CCCD \u4f7f\u80fd Battery Energy Status \u7b49\u7279\u5f81\u7684 indication&#xff1b;\u7535\u6c60\u62d4\u51fa\u540e Server \u6307\u793a Battery Energy Status \u53d8\u5316&#xff08;Battery Present: No&#xff09;&#xff1b;\u63d2\u5165\u65b0\u7535\u6c60\u65f6\u4f9d\u6b21\u6307\u793a Battery Information\u3001Serial Number String&#xff08;\u8eab\u4efd\u66f4\u65b0&#xff09;\u548c Battery Energy Status&#xff08;Present: Yes&#xff09;&#xff1b;\u5982\u679c\u63d2\u56de\u7684\u662f\u540c\u4e00\u5757\u7535\u6c60&#xff0c;\u524d\u4e24\u6761\u8eab\u4efd\u7c7b\u6307\u793a\u4e3a\u53ef\u9009&#xff0c;\u5728\u4f4d\u72b6\u6001\u6307\u793a\u5fc5\u53d1\u3002Client \u5168\u7a0b\u65e0\u9700\u91cd\u65b0\u53d1\u73b0\u670d\u52a1\u3002<\/p>\n<p>Q3&#xff1a;\u6536\u5230\u5b57\u6bb5\u4e2d RFU \u6bd4\u7279\u4e3a 1\u3001\u6216\u679a\u4e3e\u5b57\u6bb5\u53d6\u5230 Prohibited \u503c&#xff0c;\u5206\u522b\u600e\u4e48\u5904\u7406&#xff1f;BAS \u7279\u5f81\u7684\u591a\u5b57\u8282\u5b57\u6bb5\u6309\u4ec0\u4e48\u5b57\u8282\u5e8f\u4f20\u8f93&#xff1f;<\/p>\n<p>\u53c2\u8003\u7b54\u6848&#xff1a;<\/p>\n<p>RFU \u53d1\u9001\u65b9\u5fc5\u987b\u7f6e 0&#xff1b;\u63a5\u6536\u65b9\u5bf9 RFU \u5b57\u6bb5\u5e94\u5ffd\u7565\u3001\u4e0d\u5f97\u56e0\u6b64\u62d2\u7edd\u7ed3\u6784&#xff0c;\u5bf9 RFU \u6bd4\u7279\u6309 0 \u7ee7\u7eed\u89e3\u6790&#xff1b;\u82e5\u6536\u5230\u7684\u662f\u53d6\u503c\u8303\u56f4\u5185\u88ab\u5212\u4e3a RFU \u7684\u679a\u4e3e\u503c&#xff0c;\u5219\u5e94\u5c06\u8be5\u5bf9\u8c61\u53ca\u6240\u5728\u6570\u636e\u7ed3\u6784\u5224\u9519\u62d2\u7edd&#xff08;\u89c4\u8303\u53e6\u6709\u5ffd\u7565\u89c4\u5b9a\u7684\u9664\u5916&#xff09;\u3002Prohibited \u503c\u4efb\u4f55\u5b9e\u73b0\u4e0d\u5f97\u53d1\u9001&#xff0c;\u6536\u5230\u540e\u6574\u6761\u6d88\u606f\u5ffd\u7565\u3001\u4e0d\u5904\u7406\u3001\u4e0d\u56de\u590d&#xff0c;\u4e14 Prohibited \u65e0\u7f29\u5199\u5f62\u5f0f\u3002BAS \u6240\u6709\u7279\u5f81\u503c\u4e00\u5f8b\u5c0f\u7aef\u4f20\u8f93&#xff08;least significant octet first&#xff09;&#xff0c;\u591a\u5b57\u8282\u5b57\u6bb5\u6309\u5c0f\u7aef\u89e3\u6790\u3002<\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u6f84\u6e05\u4e00\u4e2a\u5bb9\u6613\u6df7\u7684\u70b9&#xff1a;\u8fd9\u91cc\u7684 BAS \u662f Battery Service&#xff08;\u7535\u6c60\u670d\u52a1&#xff09;&#xff0c;\u5c5e\u4e8e GATT \u4f53\u7cfb\u4e0b\u7684\u6807\u51c6\u670d\u52a1\u3002\u5b83\u7684\u670d\u52a1 UUID \u662f\u5927\u5bb6\u719f\u6089\u7684 0x180F&#xff0c;1.1 \u7248\u672c\u5728\u8001\u7248\u672c\u53ea\u6709\u4e00\u4e2a\u7535\u91cf\u767e\u5206\u6bd4\u7279\u5f81\u7684\u57fa\u7840\u4e0a&#xff0c;\u628a\u7535\u6c60\u72b6\u6001\u3001\u80fd\u91cf\u3001\u65f6\u95f4\u3001\u5065\u5eb7\u3001\u8eab\u4efd\u4fe1\u606f\u4e00\u6574\u5957\u7279\u5f81\u8865\u9f50\u4e86\u3002 \u76ee\u5f55<br \/>\n\u4e00\u3001\u5148\u7acb\u9aa8\u67b6&#xff1a;\u4e00\u4e2a\u5b9e\u4f8b\u53ea\u4f3a\u5019\u4e00\u5757\u7269\u7406\u7535\u6c60<br \/>\n\u4e8c\u3001\u516d\u79cd\u90e8\u7f72\u5f62\u6001&#xff1a;\u53d8\u7684\u662f\u7269\u7406\u8fb9\u754c&amp;#x<\/p>\n","protected":false},"author":2,"featured_media":121183,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13863,13861,13862,13327,78],"topic":[],"class_list":["post-121190","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-aiiot","tag-bas","tag-13862","tag-13327","tag-78"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010BAS\u3011\u89c4\u8303\u7cbe\u8bb2[1]: \u4e00\u5757\u7535\u6c60\u4e00\u4e2a\u5b9e\u4f8b\uff1f\u516d\u79cd\u8bbe\u5907\u5f62\u6001\u4e0e\u7535\u6c60\u70ed\u63d2\u62d4\u4e0a\u62a5\u5168\u6d41\u7a0b - \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\/121190.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010BAS\u3011\u89c4\u8303\u7cbe\u8bb2[1]: \u4e00\u5757\u7535\u6c60\u4e00\u4e2a\u5b9e\u4f8b\uff1f\u516d\u79cd\u8bbe\u5907\u5f62\u6001\u4e0e\u7535\u6c60\u70ed\u63d2\u62d4\u4e0a\u62a5\u5168\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5148\u6f84\u6e05\u4e00\u4e2a\u5bb9\u6613\u6df7\u7684\u70b9&#xff1a;\u8fd9\u91cc\u7684 BAS \u662f Battery Service&#xff08;\u7535\u6c60\u670d\u52a1&#xff09;&#xff0c;\u5c5e\u4e8e GATT \u4f53\u7cfb\u4e0b\u7684\u6807\u51c6\u670d\u52a1\u3002\u5b83\u7684\u670d\u52a1 UUID \u662f\u5927\u5bb6\u719f\u6089\u7684 0x180F&#xff0c;1.1 \u7248\u672c\u5728\u8001\u7248\u672c\u53ea\u6709\u4e00\u4e2a\u7535\u91cf\u767e\u5206\u6bd4\u7279\u5f81\u7684\u57fa\u7840\u4e0a&#xff0c;\u628a\u7535\u6c60\u72b6\u6001\u3001\u80fd\u91cf\u3001\u65f6\u95f4\u3001\u5065\u5eb7\u3001\u8eab\u4efd\u4fe1\u606f\u4e00\u6574\u5957\u7279\u5f81\u8865\u9f50\u4e86\u3002 \u76ee\u5f55 \u4e00\u3001\u5148\u7acb\u9aa8\u67b6&#xff1a;\u4e00\u4e2a\u5b9e\u4f8b\u53ea\u4f3a\u5019\u4e00\u5757\u7269\u7406\u7535\u6c60 \u4e8c\u3001\u516d\u79cd\u90e8\u7f72\u5f62\u6001&#xff1a;\u53d8\u7684\u662f\u7269\u7406\u8fb9\u754c&amp;#x\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/121190.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-01T22:41:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101224102-6ae7bffe0d7c8.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\/121190.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/121190.html\",\"name\":\"\u3010BAS\u3011\u89c4\u8303\u7cbe\u8bb2[1]: \u4e00\u5757\u7535\u6c60\u4e00\u4e2a\u5b9e\u4f8b\uff1f\u516d\u79cd\u8bbe\u5907\u5f62\u6001\u4e0e\u7535\u6c60\u70ed\u63d2\u62d4\u4e0a\u62a5\u5168\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-01T22:41:03+00:00\",\"dateModified\":\"2026-11-01T22:41:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/121190.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/121190.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/121190.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010BAS\u3011\u89c4\u8303\u7cbe\u8bb2[1]: \u4e00\u5757\u7535\u6c60\u4e00\u4e2a\u5b9e\u4f8b\uff1f\u516d\u79cd\u8bbe\u5907\u5f62\u6001\u4e0e\u7535\u6c60\u70ed\u63d2\u62d4\u4e0a\u62a5\u5168\u6d41\u7a0b\"}]},{\"@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":"\u3010BAS\u3011\u89c4\u8303\u7cbe\u8bb2[1]: \u4e00\u5757\u7535\u6c60\u4e00\u4e2a\u5b9e\u4f8b\uff1f\u516d\u79cd\u8bbe\u5907\u5f62\u6001\u4e0e\u7535\u6c60\u70ed\u63d2\u62d4\u4e0a\u62a5\u5168\u6d41\u7a0b - \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\/121190.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010BAS\u3011\u89c4\u8303\u7cbe\u8bb2[1]: \u4e00\u5757\u7535\u6c60\u4e00\u4e2a\u5b9e\u4f8b\uff1f\u516d\u79cd\u8bbe\u5907\u5f62\u6001\u4e0e\u7535\u6c60\u70ed\u63d2\u62d4\u4e0a\u62a5\u5168\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5148\u6f84\u6e05\u4e00\u4e2a\u5bb9\u6613\u6df7\u7684\u70b9&#xff1a;\u8fd9\u91cc\u7684 BAS \u662f Battery Service&#xff08;\u7535\u6c60\u670d\u52a1&#xff09;&#xff0c;\u5c5e\u4e8e GATT \u4f53\u7cfb\u4e0b\u7684\u6807\u51c6\u670d\u52a1\u3002\u5b83\u7684\u670d\u52a1 UUID \u662f\u5927\u5bb6\u719f\u6089\u7684 0x180F&#xff0c;1.1 \u7248\u672c\u5728\u8001\u7248\u672c\u53ea\u6709\u4e00\u4e2a\u7535\u91cf\u767e\u5206\u6bd4\u7279\u5f81\u7684\u57fa\u7840\u4e0a&#xff0c;\u628a\u7535\u6c60\u72b6\u6001\u3001\u80fd\u91cf\u3001\u65f6\u95f4\u3001\u5065\u5eb7\u3001\u8eab\u4efd\u4fe1\u606f\u4e00\u6574\u5957\u7279\u5f81\u8865\u9f50\u4e86\u3002 \u76ee\u5f55 \u4e00\u3001\u5148\u7acb\u9aa8\u67b6&#xff1a;\u4e00\u4e2a\u5b9e\u4f8b\u53ea\u4f3a\u5019\u4e00\u5757\u7269\u7406\u7535\u6c60 \u4e8c\u3001\u516d\u79cd\u90e8\u7f72\u5f62\u6001&#xff1a;\u53d8\u7684\u662f\u7269\u7406\u8fb9\u754c&amp;#x","og_url":"https:\/\/www.wsisp.com\/helps\/121190.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-01T22:41:03+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101224102-6ae7bffe0d7c8.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\/121190.html","url":"https:\/\/www.wsisp.com\/helps\/121190.html","name":"\u3010BAS\u3011\u89c4\u8303\u7cbe\u8bb2[1]: \u4e00\u5757\u7535\u6c60\u4e00\u4e2a\u5b9e\u4f8b\uff1f\u516d\u79cd\u8bbe\u5907\u5f62\u6001\u4e0e\u7535\u6c60\u70ed\u63d2\u62d4\u4e0a\u62a5\u5168\u6d41\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-01T22:41:03+00:00","dateModified":"2026-11-01T22:41:03+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/121190.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/121190.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/121190.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010BAS\u3011\u89c4\u8303\u7cbe\u8bb2[1]: \u4e00\u5757\u7535\u6c60\u4e00\u4e2a\u5b9e\u4f8b\uff1f\u516d\u79cd\u8bbe\u5907\u5f62\u6001\u4e0e\u7535\u6c60\u70ed\u63d2\u62d4\u4e0a\u62a5\u5168\u6d41\u7a0b"}]},{"@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\/121190","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=121190"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/121190\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/121183"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=121190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=121190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=121190"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=121190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}