{"id":50677,"date":"2025-12-11T22:06:15","date_gmt":"2025-12-12T01:06:15","guid":{"rendered":"https:\/\/mastertrend.info\/?p=50677"},"modified":"2026-01-28T01:30:50","modified_gmt":"2026-01-28T04:30:50","slug":"tio","status":"publish","type":"post","link":"https:\/\/mastertrend.info\/zh\/tio\/","title":{"rendered":"tio\uff0c\u638c\u63e1\u5fae\u63a7\u5236\u5668\u7684\u79d8\u8bc0\u5c31\u5728\u8fd9\u91cc\ud83d\udd25"},"content":{"rendered":"<h2>tio\uff0c\u4e00\u5206\u949f\u5185\u8fde\u63a5\u597d\u4f60\u7684\u4e32\u53e3\u8bbe\u5907\uff0c\u800c\u4e14\u4e0d\u4f1a\u51fa\u9519\u26a1<\/h2>\n<p>\u4e32\u884c\u6570\u636e\u8fde\u63a5\u662f\u4e00\u79cd\u7ecf\u5178\u7684\u901a\u4fe1\u65b9\u5f0f\uff0c\u4f46\u4ee4\u4eba\u60ca\u8bb6\u7684\u662f\uff0c\u5b83\u5728\u8bb8\u591a\u73b0\u4ee3\u8bbe\u5907\u4e2d\u4ecd\u7136\u88ab\u5e7f\u6cdb\u4f7f\u7528\u3002\u4ece\u7535\u89c6\u673a\u5230\u4e07\u7528\u8868\u7b49\u6d4b\u8bd5\u8bbe\u5907\uff0c\u751a\u81f3\u5bb6\u5ead\u81ea\u52a8\u5316\u4ea7\u54c1\uff0c\u4e32\u884c\u8fde\u63a5\u4ecd\u7136\u662f\u8bb8\u591a\u7535\u8def\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002<\/p>\n<p>\u5728 Linux \u7cfb\u7edf\u4e2d\uff0c\u8bbf\u95ee\u4e32\u53e3\u8bbe\u5907\u7684\u5e38\u7528\u65b9\u6cd5\u662f\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4 <code>\u5c4f\u5e55<\/code>\u4e0d\u8fc7\uff0cLinux \u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u975e\u5e38\u9ad8\u6548\u7684\u9009\u62e9\u3002\u5c31\u6211\u4e2a\u4eba\u800c\u8a00\uff0c\u6211\u5df2\u7ecf\u4f7f\u7528\u5b83\u5f88\u591a\u5e74\u4e86\u3002 <a href=\"https:\/\/github.com\/tio\/tio\" target=\"_blank\" rel=\"noopener\" data-schema-attribute=\"mentions\"><u>\u90a3<\/u><\/a> \u7531\u4e8e\u5176\u6613\u7528\u6027\u548c\u53ef\u9760\u7684\u8fd0\u884c\u6027\u80fd\uff0c\u5b83\u975e\u5e38\u9002\u5408\u7528\u4e8e\u7ba1\u7406\u5fae\u63a7\u5236\u5668\u3002<\/p>\n<p>\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f Windows 10 \u6216 Windows 11\uff0c\u60a8\u4e5f\u53ef\u4ee5\u5728\u8fd9\u91cc\u627e\u5230\u4e00\u4efd\u6307\u5357\uff0c\u5e2e\u52a9\u60a8\u987a\u5229\u5efa\u7acb\u4e32\u884c\u8fde\u63a5\u3002<\/p>\n<aside><span class=\"bg-secondary-500 text-white text-lg font-bold uppercase py-1 px-2\">\u60a8\u6216\u8bb8\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u611f\u5174\u8da3<\/span><\/aside>\n<figure class=\"van-image-figure inline-layout\"><picture><source type=\"image\/webp\" \/><\/picture> <picture><img decoding=\"async\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/Como-usar-Tio-\u2014-Conectarse-a-dispositivos-seriales-con-Linux.png\" alt=\"Tio \u5728 Linux \u7cfb\u7edf\u4e2d\u7684\u5e94\u7528\u6f14\u793a\u56fe\" title=\"\"><\/picture><\/figure>\n<p>\u6211\u7528\u201c\u53d4\u53d4\u201d\u8fd9\u4e2a\u8bcd\u6765\u63a2\u7d22 <u>iFixit\u4fbf\u643a\u5f0f\u710a\u63a5\u53f0<\/u>\u4ed6\u63d0\u4f9b\u4e86\u4e32\u53e3\u8fde\u63a5\uff0c\u4ee5\u4fbf\u6211\u68c0\u67e5\u667a\u80fd\u710a\u673a\u7684\u5185\u90e8\u5de5\u4f5c\u539f\u7406\u3002<\/p>\n<p>\u672c\u6307\u5357\u5c06\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u6559\u60a8\u5982\u4f55\u4f7f\u7528\u9ed8\u8ba4\u914d\u7f6e\u5b89\u88c5\u548c\u4f7f\u7528 tio\u3002 <u><a class=\"wpil_keyword_link\" href=\"https:\/\/mastertrend.info\/zh\/raspberry-pi-pico-%e4%b8%8e-zero\/\" target=\"_blank\" rel=\"noopener\" title=\"\u6811\u8393\u6d3e Pico \u4e0e Zero\uff1a1 \u5206\u949f\u4e86\u89e3\u4e3b\u8981\u533a\u522b \u23f1\ufe0f\ud83d\udd25\" data-wpil-keyword-link=\"linked\" data-wpil-monitor-id=\"13668\">\u6811\u8393\u6d3e Pico<\/a> 2<\/u> \u5c06\u5176\u4f5c\u4e3a\u4e32\u884c\u8bbe\u5907\u3002\u7136\u540e\u6211\u4eec\u5c06\u4e86\u89e3\u5982\u4f55\u8c03\u6574\u6ce2\u7279\u7387\u7b49\u7279\u5b9a\u53c2\u6570\uff0c\u4ee5\u53ca\u5982\u4f55\u5c06\u6240\u6709\u4e32\u884c\u6570\u636e\u4fdd\u5b58\u5230\u6587\u672c\u6587\u4ef6\u4e2d\u4ee5\u4fbf\u540e\u7eed\u5206\u6790\u3002<\/p>\n<p>\u8981\u9075\u5faa\u672c\u6307\u5357\uff0c\u60a8\u9700\u8981\uff1a<\/p>\n<ul>\n<li>\u4e00\u53f0\u5b89\u88c5\u4e86Ubuntu\u7cfb\u7edf\u7684\u7535\u8111<\/li>\n<li><a title=\"\u65b0\u6b3e\u6811\u8393\u6d3e Pico 2 \u5177\u5907 Wi-Fi \u529f\u80fd\" href=\"https:\/\/mastertrend.info\/zh\/%e6%96%b0%e7%9a%84%e6%a0%91%e8%8e%93%e6%b4%be-pico-2-%e6%9c%89-wi-fi\/\" target=\"_blank\" rel=\"noopener\" data-wpil-monitor-id=\"13640\">\u6811\u8393\u6d3e Pico 2<\/a> \uff08o Pico \/ Pico W\uff09<\/li>\n<li>DHT11\u6e29\u5ea6\u4f20\u611f\u5668<\/li>\n<li>\u4e2d\u578b\u9762\u5305\u677f<\/li>\n<li>3\u6839\u7535\u7f06\u8df3\u7ebf\u7537\u5b50\u6c49\u7537\u5b50\u6c49<\/li>\n<\/ul>\n<h2 id=\"instalacion-tio-gestor-paquetes\">\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5 TIO<\/h2>\n<p>\u6211\u4eec\u5c06\u5728 Ubuntu 24.04 \u7cfb\u7edf\u4e0a\u5b89\u88c5 tio\uff0c\u4f46\u8fd9\u4e9b\u8bf4\u660e\u4e5f\u9002\u7528\u4e8e\u5927\u591a\u6570\u57fa\u4e8e Debian \u7684\u53d1\u884c\u7248\u3002\u5728\u5176\u4ed6 Linux \u7cfb\u7edf\u4e0a\uff0c\u8bf7\u5728\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u4e2d\u641c\u7d22\u5bf9\u5e94\u7684\u8f6f\u4ef6\u5305\u3002<\/p>\n<p>1. <strong>\u6253\u5f00\u7ec8\u7aef\u5e76\u66f4\u65b0\u5b58\u50a8\u5e93\u5217\u8868\uff0c\u7136\u540e\u6267\u884c\u7cfb\u7edf\u66f4\u65b0\u3002<\/strong> \u6b64\u6b65\u9aa4\u53ef\u786e\u4fdd\u60a8\u62e5\u6709\u6700\u65b0\u7684\u8f6f\u4ef6\u5305\u5217\u8868\uff0c\u5e76\u4e14\u6240\u6709\u8f6f\u4ef6\u5747\u4e3a\u6700\u65b0\u7248\u672c\u3002\u5982\u679c\u7cfb\u7edf\u63d0\u793a\u60a8\u786e\u8ba4\u66f4\u65b0\uff0c\u8bf7\u6309[\u6309\u94ae\u540d\u79f0]\u3002 <code>\u548c<\/code>.<\/p>\n<pre><code>sudo apt update sudo apt upgrade\r\n<\/code><\/pre>\n<p>2. <strong>\u5b89\u88c5\u5b83\u3002<\/strong><\/p>\n<pre><code>sudo apt install tio\r\n<\/code><\/pre>\n<h2 id=\"circuito-demo-rapido\">\u5feb\u901f\u6f14\u793a\u7535\u8def<\/h2>\n<p>\u6211\u51c6\u5907\u4e86\u4e00\u4e2a\u6f14\u793a\u7a0b\u5e8f\uff0c\u4f7f\u7528\u6811\u8393\u6d3e Pico 2 \u548c DHT11 \u4f20\u611f\u5668\u3002\u8be5\u4f20\u611f\u5668\u6d4b\u91cf\u6e29\u5ea6\u548c\u6e7f\u5ea6\uff0c\u5e76\u5c06\u6570\u636e\u53d1\u9001\u5230 Python shell\uff0c\u6211\u4eec\u5c06\u901a\u8fc7\u4e32\u53e3\u8fde\u63a5\u8bfb\u53d6\u8fd9\u4e9b\u6570\u636e\u3002\u60a8\u4e0d\u5fc5\u5b8c\u5168\u7167\u642c\u8fd9\u4e2a\u7a0b\u5e8f\uff1b\u60a8\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u4e32\u53e3\u8bbe\u5907\u3002<\/p>\n<p><strong>\u672c\u6b21\u6f14\u793a\u6240\u9700\u6750\u6599\uff1a<\/strong><\/p>\n<ul>\n<li>\u6811\u8393\u6d3e Pico 2 \u6216 Pico<\/li>\n<li>DHT11\u6e29\u6e7f\u5ea6\u4f20\u611f\u5668<\/li>\n<li>\u4e2d\u578b\u9762\u5305\u677f<\/li>\n<li>3\u6839\u7535\u7f06\u8df3\u7ebf\u7537\u5b50\u6c49\u7537\u5b50\u6c49<\/li>\n<\/ul>\n<figure class=\"van-image-figure inline-layout\"><picture><source type=\"image\/webp\" \/><\/picture> <picture><img decoding=\"async\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/Como-usar-Tio-\u2014-Conectarse-a-dispositivos-seriales-con-Linux.jpg\" alt=\"\u4f7f\u7528 Raspberry Pi Pico \u548c DHT11 \u4f20\u611f\u5668\u7684\u793a\u4f8b\u7535\u8def\" title=\"\"><\/picture><\/figure>\n<p>\u8be5\u7535\u8def\u8fde\u63a5 Pico 2 \u548c DHT11 \u4f20\u611f\u5668\u4e4b\u95f4\u7684\u7535\u6e90\u548c\u6570\u636e\u3002Pico \u4e3a\u4f20\u611f\u5668\u4f9b\u7535\uff0c\u5e76\u901a\u8fc7\u6570\u636e\u5f15\u811a\u63a5\u6536\u6e29\u5ea6\u4fe1\u53f7\u3002<\/p>\n<div class=\"slice-container table-wrapper\">\n<div class=\"table__container\">\n<table class=\"table__wrapper table__wrapper--inbodyContent\" tabindex=\"0\">\n<thead>\n<tr>\n<th>\u6811\u8393\u6d3e Pico 2<\/th>\n<th>DHT11<\/th>\n<th>\u529f\u80fd<\/th>\n<th>\u7ebf\u7f06\u989c\u8272<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>3V3 \u8f93\u51fa<\/td>\n<td>\u5f15\u811a 1 (VDD)<\/td>\n<td>3.3V\u7535\u6e90<\/td>\n<td>\u7ea2\u8272\u7684<\/td>\n<\/tr>\n<tr>\n<td>GPIO 17<\/td>\n<td>\u5f15\u811a 2\uff08\u6570\u636e\uff09<\/td>\n<td>\u6570\u636e\u8f93\u51fa<\/td>\n<td>\u6a59\u5b50<\/td>\n<\/tr>\n<tr>\n<td>\u4efb\u610f\u63a5\u5730<\/td>\n<td>\u5f15\u811a 4\uff08\u63a5\u5730\uff09<\/td>\n<td>\u5730\u7403\uff08\u53c2\u8003\uff09<\/td>\n<td>\u9ed1\u4eba<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8bf7\u786e\u4fdd\u60a8\u7684 Raspberry Pi Pico \u5df2\u5b89\u88c5 MicroPython\u3002\u7ee7\u7eed\u6267\u884c\u6b65\u9aa4 4\u3002 <u>\u672c\u6307\u5357<\/u> \u51c6\u5907\u597d MicroPython \u548c Thonny\u3002<\/p>\n<p>1. <strong>\u6253\u5f00 Thonny \u5e76\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u7a7a\u767d\u6587\u4ef6\u3002<\/strong><\/p>\n<p>2. <strong>\u5bfc\u5165\u63a7\u5236 GPIO \u548c DHT11 \u4f20\u611f\u5668\u6240\u9700\u7684\u5e93\u3002<\/strong><\/p>\n<pre>\u4ece\u673a\u5668\u5bfc\u5165 Pin \u5bfc\u5165\u65f6\u95f4\u5bfc\u5165 dht\r\n<\/pre>\n<p>3. <strong>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201c <code>\u4f20\u611f\u5668<\/code> \u5b83\u5c06\u4ee3\u7801\u8fde\u63a5\u5230 GPIO 17 \u4e0a\u7684 DHT11\u3002<\/strong><\/p>\n<pre>sensor = dht.DHT11(Pin(17))\r\n<\/pre>\n<p>4. <strong>\u7f16\u5199\u5faa\u73af\u7a0b\u5e8f <code>\u5f53\u771f\u65f6<\/code> \u91cd\u590d\u8fd0\u884c\u4ee3\u7801\u3002<\/strong><\/p>\n<pre>\u5f53 True \u65f6\uff1a\r\n<\/pre>\n<p>5. <strong>\u7a0d\u7b49\u4e24\u79d2\u949f\uff0c\u7136\u540e\u8fdb\u884c\u6d4b\u91cf\u3002<\/strong><\/p>\n<pre>  time.sleep(2) sensor.measure()\r\n<\/pre>\n<p>6. <strong>\u5c06\u6e29\u5ea6\u5b58\u50a8\u5728\u4e00\u4e2a\u540d\u4e3a `Temperature` \u7684\u53d8\u91cf\u4e2d\u3002 <code>\u6e29\u5ea6<\/code>.<\/strong><\/p>\n<pre>  temp = sensor.temperature()\r\n<\/pre>\n<p>7. <strong>\u4ee5\u5b57\u7b26\u4e32\u683c\u5f0f\u663e\u793a\u5f53\u524d\u6e29\u5ea6\u4fe1\u606f\u3002<\/strong><\/p>\n<pre>  print(\"\u6e29\u5ea6\u68c0\u67e5\u5668\") print('\u6e29\u5ea6\u4e3a\uff1a', \"{:.1f}\u00baC\\n\".format(temp))\r\n<\/pre>\n<p>8. <strong>\u5c06\u6587\u4ef6\u53e6\u5b58\u4e3a <code>main.py<\/code> \u5728 Pico \u4e0a\uff0c\u4f7f\u5176\u5728\u5f00\u673a\u65f6\u81ea\u52a8\u8fd0\u884c\u3002<\/strong><\/p>\n<h2 id=\"codigo-completo\">\u5b8c\u6574\u4ee3\u7801<\/h2>\n<pre>from machine import Pin import time import dht sensor = dht.DHT11(Pin(17)) while True: time.sleep(2) sensor.measure() temp = sensor.temperature() print(\"\u6e29\u5ea6\u68c0\u6d4b\u5668\") print('\u6e29\u5ea6\u4e3a\uff1a', \"{:.1f}\u00baC\\n\".format(temp))\r\n<\/pre>\n<h2 id=\"usando-tio-configuracion-predeterminada\">\u4f7f\u7528\u9ed8\u8ba4\u8bbe\u7f6e<\/h2>\n<p>tio \u7684\u9ed8\u8ba4\u8bbe\u7f6e\u901a\u5e38\u5c31\u8db3\u591f\u4e86\u3002\u4f60\u53ea\u9700\u8981\u8fd0\u884c\u547d\u4ee4\u5373\u53ef\u3002 <code>\u90a3<\/code> \u4ee5\u53ca\u4e32\u53e3\u8bbe\u5907\u7684\u8def\u5f84\u3002\u4f46\u9996\u5148\uff0c\u5982\u4f55\u627e\u5230\u6b63\u786e\u7684\u8bbe\u5907\u5462\uff1f[\u53d4\u53d4] \u4e5f\u7ed9\u51fa\u4e86\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>1. <strong>\u5173\u6389Thonny\u3002<\/strong> \u5176\u4ed6\u5177\u6709\u4e32\u884c\u529f\u80fd\u7684\u7a0b\u5e8f\u53ef\u80fd\u4f1a\u9020\u6210\u5e72\u6270\u3002<\/p>\n<p>2. <strong>\u6253\u5f00\u7ec8\u7aef\u5e76\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5217\u51fa\u53ef\u7528\u7684\u4e32\u53e3\uff1a<\/strong><\/p>\n<pre>tio -l\r\n<\/pre>\n<figure class=\"van-image-figure inline-layout\"><picture><source type=\"image\/webp\" \/><\/picture> <picture><img decoding=\"async\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1749714125_691_Como-usar-Tio-\u2014-Conectarse-a-dispositivos-seriales-con-Linux.png\" alt=\"Linux \u7cfb\u7edf\u4e0a Tio \u4e32\u53e3\u8bbe\u5907\u5217\u8868\" title=\"\"><\/picture><\/figure>\n<p>3. <strong>\u4f7f\u7528\u4ee5\u4e0b\u65b9\u5f0f\u8fde\u63a5\u5230\u60a8\u7684\u4e32\u53e3\u8bbe\u5907\uff08\u4f8b\u5982\uff0cRaspberry Pi Pico\uff09\uff1a<\/strong><\/p>\n<pre>tio \/dev\/ttyACM0\r\n<\/pre>\n<p>4. <strong>\u60a8\u5c06\u5728\u7ec8\u7aef\u4e0a\u770b\u5230\u4e32\u53e3\u8f93\u51fa\u3002<\/strong> \u6e29\u5ea6\u5c06\u6bcf\u79d2\u663e\u793a\u4e00\u6b21\u3002\u8981\u9000\u51fa\uff0c\u8bf7\u6309 <code>Ctrl + C<\/code> \u8fdb\u5165\u4ea4\u4e92\u5f0fPython\u89e3\u91ca\u5668\u3002<\/p>\n<figure class=\"van-image-figure inline-layout\"><picture><source type=\"image\/webp\" \/><\/picture> <picture><img decoding=\"async\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1749714125_472_Como-usar-Tio-\u2014-Conectarse-a-dispositivos-seriales-con-Linux.png\" alt=\"\u5728\u7ec8\u7aef\u4e2d\u4f7f\u7528 Tio \u8fdb\u884c\u4e32\u53e3\u8f93\u51fa\" title=\"\"><\/picture><\/figure>\n<p>5. <strong>\u54e5\u4eec\uff0c\u8981\u5173\u6389\uff0c\u6309 <code>Ctrl + t<\/code> \u7136\u540e\u662f\u5173\u952e <code>\u95ee<\/code>.<\/strong><\/p>\n<p>\u8be5\u547d\u4ee4 <code>tio -l<\/code> \u5217\u51fa\u6240\u6709\u5df2\u8fde\u63a5\u7684\u4e32\u884c\u8bbe\u5907\uff0c\u5141\u8bb8\u60a8\u540c\u65f6\u8fde\u63a5\u5230\u591a\u4e2a\u8bbe\u5907\uff0c\u4f8b\u5982\u540c\u65f6\u8fde\u63a5 Raspberry Pi Pico 2 \u548c Arduino Uno\u3002<\/p>\n<figure class=\"van-image-figure inline-layout\"><picture><source type=\"image\/webp\" \/><\/picture> <picture><img decoding=\"async\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1749714125_119_Como-usar-Tio-\u2014-Conectarse-a-dispositivos-seriales-con-Linux.png\" alt=\"\u5305\u542b\u591a\u4e2a\u4e32\u884c\u8bbe\u5907\u7684\u5217\u8868\" title=\"\"><\/picture><\/figure>\n<h2 id=\"configuracion-parametros-conexion\">\u914d\u7f6e\u8fde\u63a5\u53c2\u6570<\/h2>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0ctio \u4f7f\u7528\u914d\u7f6e 115200 8N1\uff1a<\/p>\n<ul>\n<li><strong>115200:<\/strong> \u4f20\u8f93\u901f\u5ea6\uff08\u6ce2\u7279\u7387\uff09\u3002<\/li>\n<li><strong>8:<\/strong> \u6bcf\u4e2a\u5b57\u7b26\u7684\u6570\u636e\u4f4d\u3002<\/li>\n<li><strong>N\uff1a<\/strong> \u6ca1\u6709\u5947\u5076\u6821\u9a8c\u4f4d\u3002<\/li>\n<li><strong>1:<\/strong> \u505c\u6b62\u4f4d\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u79cd\u901f\u5ea6\u901a\u5e38\u662f\u8bb8\u591a\u5f00\u53d1\u677f\u7684\u6807\u51c6\u901f\u5ea6\uff0c\u5305\u62ec Arduino \u548c Raspberry Pi Pico 2\u3002<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u4fee\u6539\u8fd9\u4e9b\u53c2\u6570\uff0c\u4f7f\u5b83\u4eec\u9002\u5e94\u6211\u4eec\u4e32\u53e3\u8bbe\u5907\u7684\u914d\u7f6e\u3002\u4f8b\u5982\uff0c\u5982\u679c Arduino \u4ee5 9600 \u6ce2\u7279\u7387\u53d1\u9001\u6570\u636e\uff08Serial.begin(9600)\uff09\uff0c\u6211\u4eec\u5fc5\u987b\u544a\u8bc9 tio \u8fd9\u4e00\u70b9\u3002<\/p>\n<figure class=\"van-image-figure inline-layout\" style=\"max-width: 480px;\"><picture><source type=\"image\/webp\" \/><\/picture> <picture><img decoding=\"async\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1749714125_125_Como-usar-Tio-\u2014-Conectarse-a-dispositivos-seriales-con-Linux.png\" alt=\"Arduino \u4e32\u53e3\u914d\u7f6e\u793a\u4f8b\uff08\u5e26 Tio\uff09\" title=\"\"><\/picture><\/figure>\n<p>\u8c03\u6574\u8fde\u63a5\u7684\u6b65\u9aa4\uff1a<\/p>\n<p>1. <strong>\u6253\u5f00\u7ec8\u7aef\u5e76\u8fd0\u884c tio \u547d\u4ee4\uff0c\u53c2\u6570\u8bbe\u7f6e\u4e3a\u6ce2\u7279\u7387 9600\u30018 \u4f4d\u6570\u636e\u4f4d\u3001\u65e0\u6d41\u63a7\u5236\u30011 \u4f4d\u505c\u6b62\u4f4d\u3001\u65e0\u5947\u5076\u6821\u9a8c\uff1a<\/strong><\/p>\n<pre>tio \/dev\/ttyACM0 --baudrate 9600 --databits 8 --flow none --stopbits 1 --parity none\r\n<\/pre>\n<p>2. <strong>\u8bf7\u786e\u8ba4\u8be5\u6d88\u606f\u5728\u7ec8\u7aef\u4e2d\u662f\u5426\u88ab\u6b63\u786e\u5904\u7406\u3002<\/strong><\/p>\n<p>3. <strong>\u8981\u9000\u51fa\uff0c\u8bf7\u6309 <code>Ctrl + t<\/code> \u8fdb\u800c <code>\u95ee<\/code>.<\/strong><\/p>\n<h2 id=\"registrar-datos-en-archivo-log\">\u5c06\u6570\u636e\u8bb0\u5f55\u5230\u65e5\u5fd7\u6587\u4ef6\u4e2d<\/h2>\n<p>\u4e00\u4e2a\u975e\u5e38\u6709\u7528\u7684\u529f\u80fd\u662f\u5c06\u4e32\u53e3\u8f93\u51fa\u7684\u526f\u672c\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\uff0c\u4ee5\u4fbf\u7a0d\u540e\u8fdb\u884c\u5206\u6790\u3002<\/p>\n<p>\u901a\u8fc7\u6e29\u5ea6\u4f20\u611f\u5668\u9879\u76ee\uff0c\u6211\u4eec\u5c06\u628a\u4fe1\u606f\u4fdd\u5b58\u5230\u4e00\u4e2a\u540d\u4e3a\u201c <code>\u6e29\u5ea6\u65e5\u5fd7.txt<\/code>.<\/p>\n<p>1. <strong>\u4ece\u7ec8\u7aef\u8fd0\u884c tio\uff0c\u6307\u5b9a\u6587\u4ef6\u5e76\u542f\u7528\u6ce8\u518c\uff1a<\/strong><\/p>\n<pre>tio \/dev\/ttyACM0 --log-file temperature-log.txt -L\r\n<\/pre>\n<figure class=\"van-image-figure inline-layout\" style=\"max-width: 866px;\"><picture><source type=\"image\/webp\" \/><\/picture> <picture><img decoding=\"async\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1749714126_864_Como-usar-Tio-\u2014-Conectarse-a-dispositivos-seriales-con-Linux.png\" alt=\"\u4f7f\u7528 Tio \u5c06\u4e32\u884c\u8f93\u51fa\u6570\u636e\u8bb0\u5f55\u5230\u6587\u4ef6\" title=\"\"><\/picture><\/figure>\n<p>2. <strong>\u8fd0\u884c\u7a0b\u5e8f\u76f4\u81f3\u6536\u96c6\u5230\u6240\u9700\u6570\u636e\u4e3a\u6b62\u3002<\/strong><\/p>\n<p>3. <strong>\u8981\u9000\u51fa\uff0c\u8bf7\u6309 <code>Ctrl + t<\/code> \u8fdb\u800c <code>\u95ee<\/code>.<\/strong><\/p>\n<p>4. <strong>\u7528\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00\u6587\u4ef6\u67e5\u770b\u65e5\u5fd7\u3002<\/strong><\/p>\n<p>5. <strong>\u8981\u5411\u73b0\u6709\u6587\u4ef6\u6dfb\u52a0\u6570\u636e\u800c\u4e0d\u8986\u76d6\u5b83\uff0c\u8bf7\u4f7f\u7528\uff1a<\/strong><\/p>\n<pre>tio \/dev\/ttyACM0 --log-append --log-file temperature-log.txt -L\r\n<\/pre>\n<figure class=\"van-image-figure inline-layout\" style=\"max-width: 1146px;\"><picture><source type=\"image\/webp\" \/><\/picture> <picture><img decoding=\"async\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1749714126_966_Como-usar-Tio-\u2014-Conectarse-a-dispositivos-seriales-con-Linux.png\" alt=\"\u4f7f\u7528 Tio \u5411\u65e5\u5fd7\u6dfb\u52a0\u6570\u636e\u800c\u4e0d\u8986\u76d6\u73b0\u6709\u6570\u636e\" title=\"\"><\/picture><\/figure>\n<p>6. <strong>\u6253\u5f00\u6587\u4ef6\u4ee5\u9a8c\u8bc1\u6570\u636e\u662f\u5426\u5df2\u6b63\u786e\u6dfb\u52a0\u3002<\/strong><\/p>\n<p>\u5982\u679c\u60a8\u60f3\u4e3a\u6bcf\u4e00\u884c\u6dfb\u52a0\u65f6\u95f4\u6233\u4ee5\u6807\u8bc6\u6bcf\u4e2a\u4e8b\u4ef6\u7684\u786e\u5207\u65f6\u95f4\uff0c\u8bf7\u6dfb\u52a0\u8be5\u6807\u5fd7\u3002 <code>-t<\/code> \u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<p>7. <strong>\u8fd0\u884c\u5e26\u6709\u65f6\u95f4\u6233\u548c\u65e5\u5fd7\u6761\u76ee\u7684 tio\uff1a<\/strong><\/p>\n<pre>tio \/dev\/ttyACM0 --log-append --log-file temperature-log.txt -L -t\r\n<\/pre>\n<figure class=\"van-image-figure inline-layout\" style=\"max-width: 1236px;\"><picture><source type=\"image\/webp\" \/><\/picture> <picture><img decoding=\"async\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1749714126_101_Como-usar-Tio-\u2014-Conectarse-a-dispositivos-seriales-con-Linux.png\" alt=\"\u4f7f\u7528 Tio \u5c06\u5e26\u6709\u65f6\u95f4\u6233\u7684\u4e32\u884c\u6570\u636e\u5199\u5165\u65e5\u5fd7\u6587\u4ef6\" title=\"\"><\/picture><\/figure>\n<p>8. <strong>\u8981\u9000\u51fa\uff0c\u8bf7\u6309 <code>Ctrl + t<\/code> \u5176\u6b21\u662f <code>\u95ee<\/code>.<\/strong><\/p>\n<p>9. <strong>\u6253\u5f00\u6587\u4ef6\u5373\u53ef\u67e5\u770b\u6570\u636e\uff0c\u5176\u4e2d\u5305\u542b\u6bcf\u6761\u8bb0\u5f55\u7684\u786e\u5207\u65f6\u95f4\u3002<\/strong><\/p>\n<figure class=\"van-image-figure inline-layout\" style=\"max-width: 1079px;\"><picture><source type=\"image\/webp\" \/><\/picture> <picture><img decoding=\"async\" src=\"https:\/\/mastertrend.info\/wp-content\/uploads\/2025\/06\/1749714126_986_Como-usar-Tio-\u2014-Conectarse-a-dispositivos-seriales-con-Linux.png\" alt=\"\u5728 Linux \u4e0a\u4f7f\u7528 Tio \u8bb0\u5f55\u5e26\u65f6\u95f4\u6233\u7684\u65e5\u5fd7\u8f93\u51fa\" title=\"\"><\/picture><\/figure>\n<h2 id=\"funciones-avanzadas-tio\">\u53d4\u53d4\u7684\u9ad8\u7ea7\u529f\u80fd<\/h2>\n<p>tio \u5305\u542b\u591a\u4e2a\u5728\u6267\u884c\u8fc7\u7a0b\u4e2d\u53ef\u8bbf\u95ee\u7684\u9644\u52a0\u529f\u80fd\u3002\u4f7f\u7528 <code>Ctrl + t<\/code> \u7136\u540e\u662f\u7528\u4e8e\u6fc0\u6d3b\u4e0d\u540c\u547d\u4ee4\u7684\u6309\u952e\u3002<\/p>\n<pre>CTRL+t ? \u5217\u51fa\u53ef\u7528\u547d\u4ee4 CTRL+tb \u53d1\u9001\u4e2d\u65ad\u4fe1\u53f7 CTRL+tc \u663e\u793a\u5f53\u524d\u914d\u7f6e CTRL+te \u542f\u7528\/\u7981\u7528\u672c\u5730\u56de\u663e\u6a21\u5f0f CTRL+tf \u542f\u7528\/\u7981\u7528\u6587\u4ef6\u65e5\u5fd7\u8bb0\u5f55 CTRL+t F \u6e05\u9664\u6570\u636e\u7f13\u51b2\u533a CTRL+tg \u542f\u7528\/\u7981\u7528\u4e32\u53e3\u7ebf CTRL+ti \u66f4\u6539\u8f93\u5165\u6a21\u5f0f CTRL+tl \u6e05\u9664\u5c4f\u5e55 CTRL+t L \u663e\u793a\u7ebf\u8def\u72b6\u6001 CTRL+tm \u66f4\u6539\u5b57\u7b26\u6620\u5c04 CTRL+to \u542f\u7528\/\u7981\u7528\u8f93\u51fa\u6a21\u5f0f CTRL+tp \u5411\u4e32\u53e3\u7ebf\u53d1\u9001\u8109\u51b2 CTRL+tq \u9000\u51fa tio CTRL+tr \u6267\u884c\u811a\u672c CTRL+t R \u6267\u884c shell \u547d\u4ee4\uff0c\u5c06 I\/O \u91cd\u5b9a\u5411\u5230\u8bbe\u5907 CTRL+ts \u663e\u793a\u7edf\u8ba1\u4fe1\u606f CTRL+tt \u542f\u7528\/\u7981\u7528\u5728\u7ebf\u65f6\u95f4\u6233 CTRL+tv \u663e\u793a\u7248\u672c CTRL+tx \u901a\u8fc7 Xmodem \u53d1\u9001\u6587\u4ef6 CTRL+ty \u901a\u8fc7 Ymodem \u53d1\u9001\u6587\u4ef6 CTRL+t CTRL+t \u53d1\u9001\u5b57\u7b26\r\n<\/pre>\n<p>\ud83d\udd25 \u8bd5\u8bd5\u8fd9\u4e9b\u529f\u80fd\uff0c\u5145\u5206\u5229\u7528\u60a8\u7684\u4e32\u53e3\u8fde\u63a5\uff01\u8bb0\u4f4f\uff0ctio \u8f7b\u91cf\u7ea7\u3001\u901f\u5ea6\u5feb\uff0c\u5bf9\u4e8e\u5f00\u53d1\u4eba\u5458\u548c\u7535\u5b50\u7231\u597d\u8005\u6765\u8bf4\u975e\u5e38\u5b9e\u7528\u3002\ud83d\ude80<\/p>\n<p>\ud83d\udc49<a href=\"https:\/\/github.com\/tio\/tio\/releases\" target=\"_blank\" rel=\"noopener\" data-schema-attribute=\"mentions\"> \u4ece\u8fd9\u91cc\u5f00\u59cb\u5b89\u88c5<\/a> \u5e76\u63a2\u7d22\u5176\u529f\u80fd\uff0c\u4ee5\u5e94\u7528\u4e8e\u60a8\u7684\u5fae\u63a7\u5236\u5668\u9879\u76ee\u3002<\/p>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>tio \u7b80\u5316\u4e86 Linux \u548c Windows \u7cfb\u7edf\u4e2d\u7684\u4e32\u53e3\u8fde\u63a5\uff0c\u8ba9\u60a8\u8f7b\u677e\u5feb\u6377\u5730\u4f7f\u7528\u5fae\u63a7\u5236\u5668\u548c\u4f20\u611f\u5668 \u26a1\ud83d\udd27\ud83d\ude80<\/p>","protected":false},"author":1,"featured_media":89107,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ai_generated_summary":"","iawp_total_views":25,"jnews-multi-image_gallery":[],"jnews_single_post":{"format":"standard","override":[{"template":"1","parallax":"1","fullscreen":"1","layout":"right-sidebar","sidebar":"default-sidebar","second_sidebar":"default-sidebar","sticky_sidebar":"1","share_position":"top","share_float_style":"share-monocrhome","show_share_counter":"1","show_view_counter":"1","show_featured":"1","show_post_meta":"1","show_post_author":"1","show_post_author_image":"1","show_post_date":"1","post_date_format":"default","post_date_format_custom":"Y\/m\/d","show_post_category":"1","show_post_reading_time":"1","post_reading_time_wpm":"300","post_calculate_word_method":"str_word_count","show_zoom_button":"1","zoom_button_out_step":"2","zoom_button_in_step":"3","show_post_tag":"1","show_prev_next_post":"1","show_popup_post":"1","show_comment_section":"1","number_popup_post":"1","show_author_box":"1","show_post_related":"1","show_inline_post_related":"0"}],"image_override":[{"single_post_thumbnail_size":"crop-500","single_post_gallery_size":"crop-500"}],"trending_post_position":"meta","trending_post_label":"Trending","sponsored_post_label":"Sponsored by","disable_ad":"0","subtitle":""},"jnews_primary_category":[],"jnews_social_meta":[],"jnews_review":[],"enable_review":"","type":"percentage","name":"","summary":"","brand":"","sku":"","good":[],"bad":[],"score_override":"","override_value":"","rating":[],"price":[],"jnews_override_counter":{"view_counter_number":"0","share_counter_number":"0","like_counter_number":"0","dislike_counter_number":"0"},"footnotes":""},"categories":[1435],"tags":[1445,1821,1566],"class_list":["post-50677","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutoriales","tag-evergreencontent","tag-linux","tag-raspberrypi"],"_links":{"self":[{"href":"https:\/\/mastertrend.info\/zh\/wp-json\/wp\/v2\/posts\/50677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mastertrend.info\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mastertrend.info\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mastertrend.info\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mastertrend.info\/zh\/wp-json\/wp\/v2\/comments?post=50677"}],"version-history":[{"count":30,"href":"https:\/\/mastertrend.info\/zh\/wp-json\/wp\/v2\/posts\/50677\/revisions"}],"predecessor-version":[{"id":105167,"href":"https:\/\/mastertrend.info\/zh\/wp-json\/wp\/v2\/posts\/50677\/revisions\/105167"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mastertrend.info\/zh\/wp-json\/wp\/v2\/media\/89107"}],"wp:attachment":[{"href":"https:\/\/mastertrend.info\/zh\/wp-json\/wp\/v2\/media?parent=50677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mastertrend.info\/zh\/wp-json\/wp\/v2\/categories?post=50677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mastertrend.info\/zh\/wp-json\/wp\/v2\/tags?post=50677"}],"curies":[{"name":"\u53ef\u6e7f\u6027\u7c89\u5242","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}