<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ben Wu</title>
    <description>The latest articles on DEV Community by Ben Wu (@benny_w).</description>
    <link>https://dev.to/benny_w</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4278220%2F5a70176c-24a3-4d95-a961-ae9e0d489b85.png</url>
      <title>DEV Community: Ben Wu</title>
      <link>https://dev.to/benny_w</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/benny_w"/>
    <language>en</language>
    <item>
      <title>A bench log for a wearable with a removable sensor</title>
      <dc:creator>Ben Wu</dc:creator>
      <pubDate>Fri, 04 Dec 2026 09:35:07 +0000</pubDate>
      <link>https://dev.to/benny_w/a-bench-log-for-a-wearable-with-a-removable-sensor-3ml5</link>
      <guid>https://dev.to/benny_w/a-bench-log-for-a-wearable-with-a-removable-sensor-3ml5</guid>
      <description>&lt;p&gt;A snap-in sensor adds two failure points that look similar from an app. A movement can interrupt optical contact while power stays steady. A dirty charging contact can interrupt power while the carrier still fits. Put both symptoms on a time line before assigning a cause.&lt;/p&gt;

&lt;p&gt;Alloop engineering editorial project. This note was generated with AI. The procedure uses an example enclosure and synthetic observations. It reports no hardware test.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;AI-generated concept illustration of a removable pod. The parts shown are illustrative.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Give each interface its own column
&lt;/h2&gt;

&lt;p&gt;Label the shell, carrier and sensor module separately. An integrated ring gives you a shell and a skin-facing window to inspect. A fixed wrist pod adds a strap interface. A detachable core adds another joint between the module and the carrier. A single column called &lt;code&gt;device_ok&lt;/code&gt; conflates every one of these interfaces.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;What to record&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Fixture and carrier&lt;/td&gt;
&lt;td&gt;Mount ID, seating direction and installed carrier size&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retention&lt;/td&gt;
&lt;td&gt;Force at release in the specified direction, instrument, units and test speed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Optical contact&lt;/td&gt;
&lt;td&gt;Valid frames divided by expected frames for the stated interval&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Charging&lt;/td&gt;
&lt;td&gt;Supply current and the duration of each interruption&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conditions&lt;/td&gt;
&lt;td&gt;Trial number, surface condition, movement schedule and any reseating&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A drop in valid frames is an observation. A loose latch is one explanation to test. Use a repeatable fixture, mark insertion depth and record the initial result before cycling the joint. Keep the movement and sampling settings the same across trials. Use a powered bench fixture for charging checks. Keep the instrumented setup off the body.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make missing frames count
&lt;/h2&gt;

&lt;p&gt;Suppose the logger expects one summary frame per second for 60 seconds. The first run produces 59 distinct frame IDs and the second produces 53. The function below counts each expected ID once. A retransmitted frame cannot hide a missing one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;frame_coverage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected_count&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;received_ids&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;expected_count&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"expected_count must be positive"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;received&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;received_ids&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;expected&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected_count&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;missing&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sorted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;received&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;unexpected&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sorted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;received&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;coverage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected_count&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;missing&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;expected_count&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;coverage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;missing&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;unexpected&lt;/span&gt;

&lt;span class="c1"&gt;# Synthetic 60-second run. Frame 12 arrives twice and frame 31 is absent.&lt;/span&gt;
&lt;span class="n"&gt;frames&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;31&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;coverage&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;missing&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;unexpected&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;frame_coverage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;frames&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{coverage:.1%}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;missing&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;unexpected&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# 98.3% [31] []&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Scope the frame IDs to one run. A device that resets its counter after reconnecting needs a new segment identifier. Store rejected frames and the reason separately if the sensor exposes a quality flag. That lets you tell a transport loss from a frame that arrived and failed a downstream check.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fem79nhisiyvhjcuqper0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fem79nhisiyvhjcuqper0.png" alt="Fixture, optical output, charging path and retest records" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Worksheet illustration based on the article.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Interpret the retest
&lt;/h2&gt;

&lt;p&gt;If optical coverage falls after repeated swaps, reseat the same core in the same fixture and repeat the sequence. If charging alone drops, check the contact path and cable with the optical test unchanged. Change one condition at a time. Preserve inconclusive trials with their conditions.&lt;/p&gt;

&lt;p&gt;A dry fixture run gives you information about that setup. Water ingress, long-term fatigue and skin performance each need their own protocol. Publishing the observation table alongside the test conditions makes the limits clear to the next person who repeats the test.&lt;/p&gt;

</description>
      <category>hardware</category>
      <category>iot</category>
      <category>wearables</category>
    </item>
  </channel>
</rss>
