浏览代码

Fix up openpreppad post

Thomas Dy 8 年之前
父节点
当前提交
f8e495c01b
共有 5 个文件被更改,包括 40 次插入41 次删除
  1. 8 9
      content/posts/openpreppad.md
  2. 8 8
      output/index.html
  3. 8 8
      output/posts/openpreppad.html
  4. 8 8
      output/posts/rss.xml
  5. 8 8
      output/rss.xml

+ 8 - 9
content/posts/openpreppad.md

@@ -67,8 +67,8 @@ Once I connected to it, the green light stayed on permanently. Clearly, I was
 making progress. A lot of services were also discovered but I had no idea what
 making progress. A lot of services were also discovered but I had no idea what
 those things were at that point.
 those things were at that point.
 
 
-After a lot of poking around, I could check the general device information.  You
-could get hardware, software and firmware version. There's also the device
+After a lot of poking around, I could check the general device information. You
+could get the hardware, software and firmware version. There's also the device
 serial number which was nowhere on the actual physical device.
 serial number which was nowhere on the actual physical device.
 
 
 ```text
 ```text
@@ -123,7 +123,7 @@ I couldn't read from any of the Accel Coordinates. It kept saying permission
 denied. I could however, notify on them. But that didn't yield anything as well.
 denied. I could however, notify on them. But that didn't yield anything as well.
 What I *could* read was Accel Enable, which was set to 00. I guess that means it
 What I *could* read was Accel Enable, which was set to 00. I guess that means it
 was off. After writing 01 to Accel Enable, I found I could get values out of
 was off. After writing 01 to Accel Enable, I found I could get values out of
-Accel X-Coordinate!
+Accel X-Coordinate! Also, the green LED which was permanently on turned off.
 
 
 ```text
 ```text
 [CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
 [CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
@@ -151,12 +151,12 @@ I tried pressing the scale down a few times, and the values changed accordingly.
 Now, I just had to figure out how to convert the values into grams. It looked
 Now, I just had to figure out how to convert the values into grams. It looked
 like the values were 32-bit integers sent as 4 bytes. In the above example it
 like the values were 32-bit integers sent as 4 bytes. In the above example it
 would be `0x0002a35b`, `0x0002a355`, `0x0002a359` or 172891, 172855, 172899. The
 would be `0x0002a35b`, `0x0002a355`, `0x0002a359` or 172891, 172855, 172899. The
-values also decrease as you exert more effort on the scale. So assuming you have
-take the initial value as *tare*, you simply subtract any succeeding from that
-*tare* and you can have your "weight".
+values also decrease as you exert more effort on the scale. So assuming you take
+the initial value as *tare*, you simply subtract any succeeding value from that
+*tare* and you get the "weight".
 
 
-The values I got didn't seem to be grams though. After weighing some things on
-an actual scale and comparing the values I got, I found I can just divide the
+The values I got didn't seem to be in grams though. After weighing some things
+on an actual scale and comparing the values I got, I found I can just divide the
 values by 14 and get something in grams. That 14 is entirely a magic number
 values by 14 and get something in grams. That 14 is entirely a magic number
 though and I have no idea whether other Prep Pad's would have the same constant.
 though and I have no idea whether other Prep Pad's would have the same constant.
 
 
@@ -179,4 +179,3 @@ are good, I might not even need to finish it.
 [4]: http://www.prnewswire.com/news-releases/perfect-company-acquires-orange-chefs-prep-pad-related-ip-continues-momentum-in-the-connected-kitchen-300383178.html
 [4]: http://www.prnewswire.com/news-releases/perfect-company-acquires-orange-chefs-prep-pad-related-ip-continues-momentum-in-the-connected-kitchen-300383178.html
 [5]: https://github.com/thatsmydoing/openpreppad
 [5]: https://github.com/thatsmydoing/openpreppad
 [6]: https://github.com/sandeepmistry/noble
 [6]: https://github.com/sandeepmistry/noble
-

+ 8 - 8
output/index.html

@@ -102,8 +102,8 @@ Once I connected to it, the green light stayed on permanently. Clearly, I was
 making progress. A lot of services were also discovered but I had no idea what
 making progress. A lot of services were also discovered but I had no idea what
 those things were at that point.</p>
 those things were at that point.</p>
 
 
-<p>After a lot of poking around, I could check the general device information.  You
-could get hardware, software and firmware version. There&rsquo;s also the device
+<p>After a lot of poking around, I could check the general device information. You
+could get the hardware, software and firmware version. There&rsquo;s also the device
 serial number which was nowhere on the actual physical device.</p>
 serial number which was nowhere on the actual physical device.</p>
 <div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span>[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0010/char0017
 <div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span>[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0010/char0017
 [CH BTScale_00:/service0010/char0017]# attribute-info
 [CH BTScale_00:/service0010/char0017]# attribute-info
@@ -154,7 +154,7 @@ Attempting to read /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024/de
 denied. I could however, notify on them. But that didn&rsquo;t yield anything as well.
 denied. I could however, notify on them. But that didn&rsquo;t yield anything as well.
 What I <em>could</em> read was Accel Enable, which was set to 00. I guess that means it
 What I <em>could</em> read was Accel Enable, which was set to 00. I guess that means it
 was off. After writing 01 to Accel Enable, I found I could get values out of
 was off. After writing 01 to Accel Enable, I found I could get values out of
-Accel X-Coordinate!</p>
+Accel X-Coordinate! Also, the green LED which was permanently on turned off.</p>
 <div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span>[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
 <div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span>[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
 [CH BTScale_00:/service0023/char0024]# write 01
 [CH BTScale_00:/service0023/char0024]# write 01
 Attempting to write /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
 Attempting to write /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
@@ -180,12 +180,12 @@ Notify started
 Now, I just had to figure out how to convert the values into grams. It looked
 Now, I just had to figure out how to convert the values into grams. It looked
 like the values were 32-bit integers sent as 4 bytes. In the above example it
 like the values were 32-bit integers sent as 4 bytes. In the above example it
 would be <code>0x0002a35b</code>, <code>0x0002a355</code>, <code>0x0002a359</code> or 172891, 172855, 172899. The
 would be <code>0x0002a35b</code>, <code>0x0002a355</code>, <code>0x0002a359</code> or 172891, 172855, 172899. The
-values also decrease as you exert more effort on the scale. So assuming you have
-take the initial value as <em>tare</em>, you simply subtract any succeeding from that
-<em>tare</em> and you can have your &ldquo;weight&rdquo;.</p>
+values also decrease as you exert more effort on the scale. So assuming you take
+the initial value as <em>tare</em>, you simply subtract any succeeding value from that
+<em>tare</em> and you get the &ldquo;weight&rdquo;.</p>
 
 
-<p>The values I got didn&rsquo;t seem to be grams though. After weighing some things on
-an actual scale and comparing the values I got, I found I can just divide the
+<p>The values I got didn&rsquo;t seem to be in grams though. After weighing some things
+on an actual scale and comparing the values I got, I found I can just divide the
 values by 14 and get something in grams. That 14 is entirely a magic number
 values by 14 and get something in grams. That 14 is entirely a magic number
 though and I have no idea whether other Prep Pad&rsquo;s would have the same constant.</p>
 though and I have no idea whether other Prep Pad&rsquo;s would have the same constant.</p>
 
 

+ 8 - 8
output/posts/openpreppad.html

@@ -110,8 +110,8 @@ Once I connected to it, the green light stayed on permanently. Clearly, I was
 making progress. A lot of services were also discovered but I had no idea what
 making progress. A lot of services were also discovered but I had no idea what
 those things were at that point.</p>
 those things were at that point.</p>
 
 
-<p>After a lot of poking around, I could check the general device information.  You
-could get hardware, software and firmware version. There&rsquo;s also the device
+<p>After a lot of poking around, I could check the general device information. You
+could get the hardware, software and firmware version. There&rsquo;s also the device
 serial number which was nowhere on the actual physical device.</p>
 serial number which was nowhere on the actual physical device.</p>
 <div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span>[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0010/char0017
 <div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span>[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0010/char0017
 [CH BTScale_00:/service0010/char0017]# attribute-info
 [CH BTScale_00:/service0010/char0017]# attribute-info
@@ -162,7 +162,7 @@ Attempting to read /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024/de
 denied. I could however, notify on them. But that didn&rsquo;t yield anything as well.
 denied. I could however, notify on them. But that didn&rsquo;t yield anything as well.
 What I <em>could</em> read was Accel Enable, which was set to 00. I guess that means it
 What I <em>could</em> read was Accel Enable, which was set to 00. I guess that means it
 was off. After writing 01 to Accel Enable, I found I could get values out of
 was off. After writing 01 to Accel Enable, I found I could get values out of
-Accel X-Coordinate!</p>
+Accel X-Coordinate! Also, the green LED which was permanently on turned off.</p>
 <div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span>[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
 <div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span>[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
 [CH BTScale_00:/service0023/char0024]# write 01
 [CH BTScale_00:/service0023/char0024]# write 01
 Attempting to write /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
 Attempting to write /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
@@ -188,12 +188,12 @@ Notify started
 Now, I just had to figure out how to convert the values into grams. It looked
 Now, I just had to figure out how to convert the values into grams. It looked
 like the values were 32-bit integers sent as 4 bytes. In the above example it
 like the values were 32-bit integers sent as 4 bytes. In the above example it
 would be <code>0x0002a35b</code>, <code>0x0002a355</code>, <code>0x0002a359</code> or 172891, 172855, 172899. The
 would be <code>0x0002a35b</code>, <code>0x0002a355</code>, <code>0x0002a359</code> or 172891, 172855, 172899. The
-values also decrease as you exert more effort on the scale. So assuming you have
-take the initial value as <em>tare</em>, you simply subtract any succeeding from that
-<em>tare</em> and you can have your &ldquo;weight&rdquo;.</p>
+values also decrease as you exert more effort on the scale. So assuming you take
+the initial value as <em>tare</em>, you simply subtract any succeeding value from that
+<em>tare</em> and you get the &ldquo;weight&rdquo;.</p>
 
 
-<p>The values I got didn&rsquo;t seem to be grams though. After weighing some things on
-an actual scale and comparing the values I got, I found I can just divide the
+<p>The values I got didn&rsquo;t seem to be in grams though. After weighing some things
+on an actual scale and comparing the values I got, I found I can just divide the
 values by 14 and get something in grams. That 14 is entirely a magic number
 values by 14 and get something in grams. That 14 is entirely a magic number
 though and I have no idea whether other Prep Pad&rsquo;s would have the same constant.</p>
 though and I have no idea whether other Prep Pad&rsquo;s would have the same constant.</p>
 
 

+ 8 - 8
output/posts/rss.xml

@@ -75,8 +75,8 @@ Once I connected to it, the green light stayed on permanently. Clearly, I was
 making progress. A lot of services were also discovered but I had no idea what
 making progress. A lot of services were also discovered but I had no idea what
 those things were at that point.&lt;/p&gt;
 those things were at that point.&lt;/p&gt;
 
 
-&lt;p&gt;After a lot of poking around, I could check the general device information.  You
-could get hardware, software and firmware version. There&amp;rsquo;s also the device
+&lt;p&gt;After a lot of poking around, I could check the general device information. You
+could get the hardware, software and firmware version. There&amp;rsquo;s also the device
 serial number which was nowhere on the actual physical device.&lt;/p&gt;
 serial number which was nowhere on the actual physical device.&lt;/p&gt;
 &lt;div class=&#34;highlight&#34; style=&#34;background: #f8f8f8&#34;&gt;&lt;pre style=&#34;line-height: 125%&#34;&gt;&lt;span&gt;&lt;/span&gt;[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0010/char0017
 &lt;div class=&#34;highlight&#34; style=&#34;background: #f8f8f8&#34;&gt;&lt;pre style=&#34;line-height: 125%&#34;&gt;&lt;span&gt;&lt;/span&gt;[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0010/char0017
 [CH BTScale_00:/service0010/char0017]# attribute-info
 [CH BTScale_00:/service0010/char0017]# attribute-info
@@ -127,7 +127,7 @@ Attempting to read /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024/de
 denied. I could however, notify on them. But that didn&amp;rsquo;t yield anything as well.
 denied. I could however, notify on them. But that didn&amp;rsquo;t yield anything as well.
 What I &lt;em&gt;could&lt;/em&gt; read was Accel Enable, which was set to 00. I guess that means it
 What I &lt;em&gt;could&lt;/em&gt; read was Accel Enable, which was set to 00. I guess that means it
 was off. After writing 01 to Accel Enable, I found I could get values out of
 was off. After writing 01 to Accel Enable, I found I could get values out of
-Accel X-Coordinate!&lt;/p&gt;
+Accel X-Coordinate! Also, the green LED which was permanently on turned off.&lt;/p&gt;
 &lt;div class=&#34;highlight&#34; style=&#34;background: #f8f8f8&#34;&gt;&lt;pre style=&#34;line-height: 125%&#34;&gt;&lt;span&gt;&lt;/span&gt;[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
 &lt;div class=&#34;highlight&#34; style=&#34;background: #f8f8f8&#34;&gt;&lt;pre style=&#34;line-height: 125%&#34;&gt;&lt;span&gt;&lt;/span&gt;[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
 [CH BTScale_00:/service0023/char0024]# write 01
 [CH BTScale_00:/service0023/char0024]# write 01
 Attempting to write /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
 Attempting to write /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
@@ -153,12 +153,12 @@ Notify started
 Now, I just had to figure out how to convert the values into grams. It looked
 Now, I just had to figure out how to convert the values into grams. It looked
 like the values were 32-bit integers sent as 4 bytes. In the above example it
 like the values were 32-bit integers sent as 4 bytes. In the above example it
 would be &lt;code&gt;0x0002a35b&lt;/code&gt;, &lt;code&gt;0x0002a355&lt;/code&gt;, &lt;code&gt;0x0002a359&lt;/code&gt; or 172891, 172855, 172899. The
 would be &lt;code&gt;0x0002a35b&lt;/code&gt;, &lt;code&gt;0x0002a355&lt;/code&gt;, &lt;code&gt;0x0002a359&lt;/code&gt; or 172891, 172855, 172899. The
-values also decrease as you exert more effort on the scale. So assuming you have
-take the initial value as &lt;em&gt;tare&lt;/em&gt;, you simply subtract any succeeding from that
-&lt;em&gt;tare&lt;/em&gt; and you can have your &amp;ldquo;weight&amp;rdquo;.&lt;/p&gt;
+values also decrease as you exert more effort on the scale. So assuming you take
+the initial value as &lt;em&gt;tare&lt;/em&gt;, you simply subtract any succeeding value from that
+&lt;em&gt;tare&lt;/em&gt; and you get the &amp;ldquo;weight&amp;rdquo;.&lt;/p&gt;
 
 
-&lt;p&gt;The values I got didn&amp;rsquo;t seem to be grams though. After weighing some things on
-an actual scale and comparing the values I got, I found I can just divide the
+&lt;p&gt;The values I got didn&amp;rsquo;t seem to be in grams though. After weighing some things
+on an actual scale and comparing the values I got, I found I can just divide the
 values by 14 and get something in grams. That 14 is entirely a magic number
 values by 14 and get something in grams. That 14 is entirely a magic number
 though and I have no idea whether other Prep Pad&amp;rsquo;s would have the same constant.&lt;/p&gt;
 though and I have no idea whether other Prep Pad&amp;rsquo;s would have the same constant.&lt;/p&gt;
 
 

+ 8 - 8
output/rss.xml

@@ -75,8 +75,8 @@ Once I connected to it, the green light stayed on permanently. Clearly, I was
 making progress. A lot of services were also discovered but I had no idea what
 making progress. A lot of services were also discovered but I had no idea what
 those things were at that point.&lt;/p&gt;
 those things were at that point.&lt;/p&gt;
 
 
-&lt;p&gt;After a lot of poking around, I could check the general device information.  You
-could get hardware, software and firmware version. There&amp;rsquo;s also the device
+&lt;p&gt;After a lot of poking around, I could check the general device information. You
+could get the hardware, software and firmware version. There&amp;rsquo;s also the device
 serial number which was nowhere on the actual physical device.&lt;/p&gt;
 serial number which was nowhere on the actual physical device.&lt;/p&gt;
 &lt;div class=&#34;highlight&#34; style=&#34;background: #f8f8f8&#34;&gt;&lt;pre style=&#34;line-height: 125%&#34;&gt;&lt;span&gt;&lt;/span&gt;[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0010/char0017
 &lt;div class=&#34;highlight&#34; style=&#34;background: #f8f8f8&#34;&gt;&lt;pre style=&#34;line-height: 125%&#34;&gt;&lt;span&gt;&lt;/span&gt;[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0010/char0017
 [CH BTScale_00:/service0010/char0017]# attribute-info
 [CH BTScale_00:/service0010/char0017]# attribute-info
@@ -127,7 +127,7 @@ Attempting to read /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024/de
 denied. I could however, notify on them. But that didn&amp;rsquo;t yield anything as well.
 denied. I could however, notify on them. But that didn&amp;rsquo;t yield anything as well.
 What I &lt;em&gt;could&lt;/em&gt; read was Accel Enable, which was set to 00. I guess that means it
 What I &lt;em&gt;could&lt;/em&gt; read was Accel Enable, which was set to 00. I guess that means it
 was off. After writing 01 to Accel Enable, I found I could get values out of
 was off. After writing 01 to Accel Enable, I found I could get values out of
-Accel X-Coordinate!&lt;/p&gt;
+Accel X-Coordinate! Also, the green LED which was permanently on turned off.&lt;/p&gt;
 &lt;div class=&#34;highlight&#34; style=&#34;background: #f8f8f8&#34;&gt;&lt;pre style=&#34;line-height: 125%&#34;&gt;&lt;span&gt;&lt;/span&gt;[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
 &lt;div class=&#34;highlight&#34; style=&#34;background: #f8f8f8&#34;&gt;&lt;pre style=&#34;line-height: 125%&#34;&gt;&lt;span&gt;&lt;/span&gt;[CHSLEEV_00]# select-attribute /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
 [CH BTScale_00:/service0023/char0024]# write 01
 [CH BTScale_00:/service0023/char0024]# write 01
 Attempting to write /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
 Attempting to write /org/bluez/hci0/dev_1C_BA_8C_21_7C_BB/service0023/char0024
@@ -153,12 +153,12 @@ Notify started
 Now, I just had to figure out how to convert the values into grams. It looked
 Now, I just had to figure out how to convert the values into grams. It looked
 like the values were 32-bit integers sent as 4 bytes. In the above example it
 like the values were 32-bit integers sent as 4 bytes. In the above example it
 would be &lt;code&gt;0x0002a35b&lt;/code&gt;, &lt;code&gt;0x0002a355&lt;/code&gt;, &lt;code&gt;0x0002a359&lt;/code&gt; or 172891, 172855, 172899. The
 would be &lt;code&gt;0x0002a35b&lt;/code&gt;, &lt;code&gt;0x0002a355&lt;/code&gt;, &lt;code&gt;0x0002a359&lt;/code&gt; or 172891, 172855, 172899. The
-values also decrease as you exert more effort on the scale. So assuming you have
-take the initial value as &lt;em&gt;tare&lt;/em&gt;, you simply subtract any succeeding from that
-&lt;em&gt;tare&lt;/em&gt; and you can have your &amp;ldquo;weight&amp;rdquo;.&lt;/p&gt;
+values also decrease as you exert more effort on the scale. So assuming you take
+the initial value as &lt;em&gt;tare&lt;/em&gt;, you simply subtract any succeeding value from that
+&lt;em&gt;tare&lt;/em&gt; and you get the &amp;ldquo;weight&amp;rdquo;.&lt;/p&gt;
 
 
-&lt;p&gt;The values I got didn&amp;rsquo;t seem to be grams though. After weighing some things on
-an actual scale and comparing the values I got, I found I can just divide the
+&lt;p&gt;The values I got didn&amp;rsquo;t seem to be in grams though. After weighing some things
+on an actual scale and comparing the values I got, I found I can just divide the
 values by 14 and get something in grams. That 14 is entirely a magic number
 values by 14 and get something in grams. That 14 is entirely a magic number
 though and I have no idea whether other Prep Pad&amp;rsquo;s would have the same constant.&lt;/p&gt;
 though and I have no idea whether other Prep Pad&amp;rsquo;s would have the same constant.&lt;/p&gt;