<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[有關TOF 4M經Pa Hub 2.1 連接問題]]></title><description><![CDATA[<p dir="auto">大家好, 我想用M5 StickC Plus 2連接3個4米激光測距儀。</p>
<p dir="auto">連接方式是用M5 Stick C 2 Plus 經I2C連接Pa.Hub V2.1, 然後channel 0, 1, 2各接一個TOF 4M</p>
<p dir="auto">我用排除法驗證了, 當執行以下句子就會出現error:<br />
tof4m_front = TOF4MUnit(PAHUBUnit(i2c=i2c0, channel=0), 0x70)</p>
<p dir="auto">我試過以TOF代替TOF 4M, 執行init TOF 是正常可以執行。</p>
<p dir="auto">因此, 我相信uiFlow 4M的init TOF4M function 應用在Pa.Hub 上句式出錯。請開發者更新uiFlow 2.0 這部分的語句。</p>
<p dir="auto"><img src="/assets/uploads/files/1739956891045-2fa8fc75-68d2-469c-8abf-92e8e4ec653b-image.png" alt="2fa8fc75-68d2-469c-8abf-92e8e4ec653b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">收到這個ERROR:<br />
MicroPython v1.24.0-dirty on 2025-01-18; M5STACK StickC PLUS2 with ESP32(SPIRAM)<br />
Type "help()" for more information.</p>
<blockquote>
<blockquote>
<blockquote>
<p dir="auto">E (43754) i2c: i2c driver install error<br />
E (43771) time: The current date/time in Shanghai is: Wed Feb 19 01:17:10 2025<br />
E (43818) wifi:NAN WiFi stop<br />
E (43820) transport_base: poll_read select error 113, errno = Software caused connection abort, fd = 55<br />
E (43821) mqtt_client: Poll read error: 119, aborting connection<br />
[INFO] Syncing resources...<br />
[INFO] WiFi connected!<br />
[INFO] File apps/Infanity_V3.py already downloaded.<br />
[INFO] MD5 mismatch for file: main_ota_temp.py<br />
[INFO] File <a href="https://m5stack-uiflow2-file.oss-cn-shenzhen.aliyuncs.com/d57339e5cfd1369fbba516206d390db4/main_ota_temp.py" target="_blank" rel="noopener noreferrer nofollow ugc">https://m5stack-uiflow2-file.oss-cn-shenzhen.aliyuncs.com/d57339e5cfd1369fbba516206d390db4/main_ota_temp.py</a> downloaded successfully.<br />
[INFO] Downloaded and verified file: main_ota_temp.py<br />
[INFO] Sync finished.<br />
E (50435) i2c: i2c driver install error<br />
Traceback (most recent call last):<br />
File "<a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a>", line 50, in &lt;module&gt;<br />
File "<a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a>", line 37, in setup<br />
File "driver/vl53l1x.py", line 60, in <strong>init</strong><br />
File "driver/vl53l1x.py", line 176, in get_model_info<br />
File "driver/vl53l1x.py", line 273, in _read_register</p>
</blockquote>
</blockquote>
</blockquote>
<h5>TypeError: ![unexpected keyword argument 'addrsize']</h5>
<p dir="auto">MicroPython v1.24.0-dirty on 2025-01-18; M5STACK StickC PLUS2 with ESP32(SPIRAM)<br />
Type "help()" for more information.</p>
]]></description><link>https://community.m5stack.com/topic/7313/有關tof-4m經pa-hub-2-1-連接問題</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 01:00:32 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7313.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Feb 2025 09:30:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 有關TOF 4M經Pa Hub 2.1 連接問題 on Fri, 21 Feb 2025 02:28:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/matthewchan" aria-label="Profile: matthewchan">@<bdi>matthewchan</bdi></a><br />
这个问题已经修复了，等UiFlow2固件发下一个版本。</p>
]]></description><link>https://community.m5stack.com/post/28287</link><guid isPermaLink="true">https://community.m5stack.com/post/28287</guid><dc:creator><![CDATA[kuriko]]></dc:creator><pubDate>Fri, 21 Feb 2025 02:28:06 GMT</pubDate></item></channel></rss>