<?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[Speaker beep and Wait]]></title><description><![CDATA[<p dir="auto">Hi folks</p>
<p dir="auto">If I use a "speaker beep" and "wait" in uiflow, all my m5stack cores hangs up after 3-8 beeps.</p>
<p dir="auto">Is it wrongly implemented in uiflow?</p>
<p dir="auto">best regards<br />
Thomas</p>
]]></description><link>https://community.m5stack.com/topic/1687/speaker-beep-and-wait</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 19:43:36 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1687.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Feb 2020 17:16:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Speaker beep and Wait on Sun, 16 Feb 2020 21:00:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a> said in <a href="/post/7440">Speaker beep and Wait</a>:</p>
<blockquote>
<p dir="auto">If you want additional testing help, you’ll need to post exactly what your entire flow/program looks like, including connections and Units. Obviously there is something unique in your setup that I don’t have, because it’s working for me.</p>
</blockquote>
<p dir="auto">from m5stack import *<br />
from m5ui import *<br />
from uiflow import *</p>
<p dir="auto">@timerSch.event('timer1')<br />
def ttimer1():<br />
speaker.sing(220, 1/16)<br />
pass</p>
<p dir="auto">timerSch.run('timer1', 1000, 0x00)</p>
<p dir="auto">--&gt; It works if I download it to the device<br />
--&gt; It does not work if I run it from UIFlow</p>
]]></description><link>https://community.m5stack.com/post/7441</link><guid isPermaLink="true">https://community.m5stack.com/post/7441</guid><dc:creator><![CDATA[M5StickFreakler]]></dc:creator><pubDate>Sun, 16 Feb 2020 21:00:12 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Sun, 16 Feb 2020 20:47:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stickfreakler" aria-label="Profile: m5stickfreakler">@<bdi>m5stickfreakler</bdi></a> said in <a href="/post/7428">Speaker beep and Wait</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a> said in <a href="/post/7425">Speaker beep and Wait</a>:</p>
<blockquote>
<p dir="auto">I tested this exact flow and let it run for over 20 minutes and I'm still getting beep every 1 second. I have no issues with this flow on the M5Stack Core Grey and M5Stack Fire. I'm using uiFlow 1.4.4 and firmware v1.4.4.</p>
</blockquote>
<p dir="auto">I have the bug on every device here (3 different units), like user "sysdl132". I also use Firmware 1.4.4 (but its buggy in firmware 1.4.3 also)<br />
Simply use the "RUN" button and you will have the same UIFlow bug. Dont upload it into the device.</p>
</blockquote>
<p dir="auto">I tested Run and Download to the device and it made no difference. It still runs longer than 20 mins.</p>
<p dir="auto">Your deleted message said something about connecting a device to see the issue. I have noticed bugs when you have Units defined in uiFlow’s UI simulator but don’t actually connect them to the device.  If you connect to REPL it should tell you what the error is... typically “unit not found” and the device is locked up. However it’s not obvious because they’re is no on screen error, leaving the user stumped on what the issue actually is.</p>
<p dir="auto">If you want additional testing help, you’ll need to post exactly what your entire flow/program looks like, including connections and Units. Obviously there is something unique in your setup that I don’t have, because it’s working for me.</p>
]]></description><link>https://community.m5stack.com/post/7440</link><guid isPermaLink="true">https://community.m5stack.com/post/7440</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Sun, 16 Feb 2020 20:47:21 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Sun, 16 Feb 2020 15:04:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a> said in <a href="/post/7425">Speaker beep and Wait</a>:</p>
<blockquote>
<p dir="auto">I tested this exact flow and let it run for over 20 minutes and I'm still getting beep every 1 second. I have no issues with this flow on the M5Stack Core Grey and M5Stack Fire. I'm using uiFlow 1.4.4 and firmware v1.4.4.</p>
</blockquote>
<p dir="auto">I have the bug on every device here (3 different units), like user "sysdl132". I also use Firmware 1.4.4 (but its buggy in firmware 1.4.3 also)<br />
Simply use the "RUN" button and you will have the same UIFlow bug. Dont upload it into the device.</p>
]]></description><link>https://community.m5stack.com/post/7428</link><guid isPermaLink="true">https://community.m5stack.com/post/7428</guid><dc:creator><![CDATA[M5StickFreakler]]></dc:creator><pubDate>Sun, 16 Feb 2020 15:04:18 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Sun, 16 Feb 2020 18:47:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stickfreakler" aria-label="Profile: m5stickfreakler">@<bdi>m5stickfreakler</bdi></a> said in <a href="/post/7406">Speaker beep and Wait</a>:</p>
<blockquote>
<p dir="auto">Same problem occurs with LED and with 3 different M5Stack units.<br />
Try it out and you will see that after some blinking phase it will stuck up in a permanent light.</p>
<p dir="auto"><img src="/assets/uploads/files/1581765876421-unbenanntes-bild.png" alt="0_1581765871734_Unbenanntes Bild.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I think that is a big problem...</p>
</blockquote>
<p dir="auto">I have no issues with this flow either. It's been running for more than 20 minutes along with the beep flow on my other m5stack.</p>
]]></description><link>https://community.m5stack.com/post/7426</link><guid isPermaLink="true">https://community.m5stack.com/post/7426</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Sun, 16 Feb 2020 18:47:26 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Sun, 16 Feb 2020 14:38:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stickfreakler" aria-label="Profile: m5stickfreakler">@<bdi>m5stickfreakler</bdi></a> said in <a href="/post/7405">Speaker beep and Wait</a>:</p>
<blockquote>
<p dir="auto">:-)</p>
<p dir="auto">Of course it is the same behavior.<br />
Try it out yourself!<br />
Run the program and wait for some beeps and you will hear a continues tone.<br />
Its obviously a bug.</p>
<p dir="auto"><img src="/assets/uploads/files/1581763638195-unbenanntes-bild.png" alt="0_1581763635467_Unbenanntes Bild.png" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">I tested this exact flow and let it run for over 20 minutes and I'm still getting beep every 1 second. I have no issues with this flow on the M5Stack Core Grey and M5Stack Fire. I'm using uiFlow 1.4.4 and firmware v1.4.4.</p>
]]></description><link>https://community.m5stack.com/post/7425</link><guid isPermaLink="true">https://community.m5stack.com/post/7425</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Sun, 16 Feb 2020 14:38:40 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Sun, 16 Feb 2020 14:36:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/world101" aria-label="Profile: world101">@<bdi>world101</bdi></a> said in <a href="/post/7423">Speaker beep and Wait</a>:</p>
<blockquote>
<p dir="auto">This flow has issues because it's trying to fire a timer callback at the same time as the 1 second wait, which causes a blocking function. I do get a continuous beep as you describe, but I don't think it's a bug. I would consider it bad code design because you have two functions at 1 second firing at the same time, which causes blocking. You really only need the timer and not the 1 second wait function to achieve a beep ever 1 second.</p>
</blockquote>
<p dir="auto">As I mentioned earlier, the bug has nothing to do with the "Wait".<br />
You can check it by yourself:</p>
<blockquote>
<p dir="auto">:-)</p>
<p dir="auto">Of course it is the same behavior.<br />
Try it out yourself!<br />
Run the program and wait for some beeps and you will hear a continues tone.<br />
Its obviously a bug.</p>
<p dir="auto"><img src="/assets/uploads/files/1581763638195-unbenanntes-bild.png" alt="0_1581763635467_Unbenanntes Bild.png" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">try it out and you will see what I mean :-)</p>
]]></description><link>https://community.m5stack.com/post/7424</link><guid isPermaLink="true">https://community.m5stack.com/post/7424</guid><dc:creator><![CDATA[M5StickFreakler]]></dc:creator><pubDate>Sun, 16 Feb 2020 14:36:08 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Sun, 16 Feb 2020 14:18:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stickfreakler" aria-label="Profile: m5stickfreakler">@<bdi>m5stickfreakler</bdi></a> said in <a href="/post/7354">Speaker beep and Wait</a>:</p>
<blockquote>
<p dir="auto">This Code generates no sound or an endless sound but not the expected 1/16 beep each second</p>
<p dir="auto"><img src="/assets/uploads/files/1581454696531-unbenanntes-bild.png" alt="0_1581454695356_Unbenanntes Bild.png" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">This flow has issues because it's trying to fire a timer callback at the same time as the 1 second wait, which causes a blocking function. I do get a continuous beep as you describe, but I don't think it's a bug. I would consider it bad code design because you have two functions at 1 second firing at the same time, which causes blocking. You really only need the timer and not the 1 second wait function to achieve a beep ever 1 second.</p>
]]></description><link>https://community.m5stack.com/post/7423</link><guid isPermaLink="true">https://community.m5stack.com/post/7423</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Sun, 16 Feb 2020 14:18:47 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Sat, 15 Feb 2020 11:41:39 GMT]]></title><description><![CDATA[<p dir="auto">thank you sysdl132 for confirmation this bug :-)</p>
]]></description><link>https://community.m5stack.com/post/7410</link><guid isPermaLink="true">https://community.m5stack.com/post/7410</guid><dc:creator><![CDATA[M5StickFreakler]]></dc:creator><pubDate>Sat, 15 Feb 2020 11:41:39 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Sat, 15 Feb 2020 11:37:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stickfreakler" aria-label="Profile: m5stickfreakler">@<bdi>m5stickfreakler</bdi></a> Seems a UIFlow bug.You can contect the m5stack group.(Actually I have the same problem on an old device and a new device.They both has the problem.)</p>
]]></description><link>https://community.m5stack.com/post/7409</link><guid isPermaLink="true">https://community.m5stack.com/post/7409</guid><dc:creator><![CDATA[sysdl132]]></dc:creator><pubDate>Sat, 15 Feb 2020 11:37:48 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Sat, 15 Feb 2020 11:33:13 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for reply<br />
I told you I have uploaded it to 3 different devices. Same behavior.<br />
The timer functionality is implemented buggy. It works only in a normal loop but not with events.</p>
]]></description><link>https://community.m5stack.com/post/7408</link><guid isPermaLink="true">https://community.m5stack.com/post/7408</guid><dc:creator><![CDATA[M5StickFreakler]]></dc:creator><pubDate>Sat, 15 Feb 2020 11:33:13 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Sat, 15 Feb 2020 11:31:06 GMT]]></title><description><![CDATA[<p dir="auto">Hi.That is unusual...Try to upload it on a different device(if you have)and check.</p>
]]></description><link>https://community.m5stack.com/post/7407</link><guid isPermaLink="true">https://community.m5stack.com/post/7407</guid><dc:creator><![CDATA[sysdl132]]></dc:creator><pubDate>Sat, 15 Feb 2020 11:31:06 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Sat, 15 Feb 2020 11:26:36 GMT]]></title><description><![CDATA[<p dir="auto">Same problem occurs with LED and with 3 different M5Stack units.<br />
Try it out and you will see that after some blinking phase it will stuck up in a permanent light.</p>
<p dir="auto"><img src="/assets/uploads/files/1581765876421-unbenanntes-bild.png" alt="0_1581765871734_Unbenanntes Bild.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I think that is a big problem...</p>
]]></description><link>https://community.m5stack.com/post/7406</link><guid isPermaLink="true">https://community.m5stack.com/post/7406</guid><dc:creator><![CDATA[M5StickFreakler]]></dc:creator><pubDate>Sat, 15 Feb 2020 11:26:36 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Sat, 15 Feb 2020 10:49:47 GMT]]></title><description><![CDATA[<p dir="auto">:-)</p>
<p dir="auto">Of course it is the same behavior.<br />
Try it out yourself!<br />
Run the program and wait for some beeps and you will hear a continues tone.<br />
Its obviously a bug.</p>
<p dir="auto"><img src="/assets/uploads/files/1581763638195-unbenanntes-bild.png" alt="0_1581763635467_Unbenanntes Bild.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/7405</link><guid isPermaLink="true">https://community.m5stack.com/post/7405</guid><dc:creator><![CDATA[M5StickFreakler]]></dc:creator><pubDate>Sat, 15 Feb 2020 10:49:47 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Thu, 13 Feb 2020 02:27:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stickfreakler" aria-label="Profile: m5stickfreakler">@<bdi>m5stickfreakler</bdi></a> try to delete the wait block in the callback program.</p>
]]></description><link>https://community.m5stack.com/post/7368</link><guid isPermaLink="true">https://community.m5stack.com/post/7368</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Thu, 13 Feb 2020 02:27:47 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Wed, 12 Feb 2020 16:16:14 GMT]]></title><description><![CDATA[<p dir="auto">Its just an example to demonstrate the bug. The use case is much more complicate.</p>
]]></description><link>https://community.m5stack.com/post/7365</link><guid isPermaLink="true">https://community.m5stack.com/post/7365</guid><dc:creator><![CDATA[M5StickFreakler]]></dc:creator><pubDate>Wed, 12 Feb 2020 16:16:14 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Wed, 12 Feb 2020 03:19:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stickfreakler" aria-label="Profile: m5stickfreakler">@<bdi>m5stickfreakler</bdi></a>   if you just want control it play 1/16 beep each second , why you use interrupt and wait at the same time?  you can just use a loop block. then put the wait and beep program inside.</p>
]]></description><link>https://community.m5stack.com/post/7355</link><guid isPermaLink="true">https://community.m5stack.com/post/7355</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Wed, 12 Feb 2020 03:19:38 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Tue, 11 Feb 2020 20:59:36 GMT]]></title><description><![CDATA[<p dir="auto">This Code generates no sound or an endless sound but not the expected 1/16 beep each second</p>
<p dir="auto"><img src="/assets/uploads/files/1581454696531-unbenanntes-bild.png" alt="0_1581454695356_Unbenanntes Bild.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/7354</link><guid isPermaLink="true">https://community.m5stack.com/post/7354</guid><dc:creator><![CDATA[M5StickFreakler]]></dc:creator><pubDate>Tue, 11 Feb 2020 20:59:36 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Mon, 10 Feb 2020 20:38:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stickfreakler" aria-label="Profile: m5stickfreakler">@<bdi>m5stickfreakler</bdi></a> said in <a href="/post/7331">Speaker beep and Wait</a>:</p>
<blockquote>
<p dir="auto">If I use a "speaker beep" and "wait" in uiflow, all my m5stack cores hangs up after 3-8 beeps.<br />
Is it wrongly implemented in uiflow?<br />
best regards</p>
</blockquote>
<p dir="auto">simple example</p>
<p dir="auto">from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import unit</p>
<p dir="auto">tof0 = unit.get(unit.TOF, unit.PORTA)</p>
<p dir="auto">@timerSch.event('timer1')<br />
def ttimer1():<br />
global unit<br />
wait(1)<br />
speaker.sing(831, 1/16)<br />
pass</p>
<p dir="auto">timerSch.run('timer1', 1000, 0x00)</p>
]]></description><link>https://community.m5stack.com/post/7343</link><guid isPermaLink="true">https://community.m5stack.com/post/7343</guid><dc:creator><![CDATA[M5StickFreakler]]></dc:creator><pubDate>Mon, 10 Feb 2020 20:38:20 GMT</pubDate></item><item><title><![CDATA[Reply to Speaker beep and Wait on Mon, 10 Feb 2020 16:54:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stickfreakler" aria-label="Profile: m5stickfreakler">@<bdi>m5stickfreakler</bdi></a></p>
<p dir="auto">Post your flow or code and someone might be able to help.</p>
]]></description><link>https://community.m5stack.com/post/7341</link><guid isPermaLink="true">https://community.m5stack.com/post/7341</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Mon, 10 Feb 2020 16:54:18 GMT</pubDate></item></channel></rss>