<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="atom-style.xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
    <id>https://corion.net/blog/tag/reverse-engineering/</id>
    <title>Corions Musings</title>
    <updated>2026-08-16T00:00:00Z</updated>
    <link href="https://corion.net/blog/tag/reverse-engineering.atom" rel="self" />
    <link href="https://corion.net/blog/tag/reverse-engineering/" rel="alternate" />
    <generator version="0.098">Statocles</generator>

    <entry>
        <id>https://corion.net/blog/2026/08/16/opening-the-frame/</id>
        <title>Opening the frame</title>
        <author><name>Corion</name></author>
        <link href="https://corion.net/blog/2026/08/16/opening-the-frame/" rel="alternate" />
        <content type="html"><![CDATA[
            <h1>A New Toy</h1>

<p>After surprisingly doing my taxes, I spent the money I might get back on a new
toy, a Samsung E-Paper EM32DX. It is an eInk display with an electrophoric
Spectra 6 display. These displays work without backlighting and can look like
a picture or photo frame. I&#39;ve toyed around with using an LCD display, but
they don&#39;t match the room brightness. Having a large (32&quot;, 50cmx70cm ) frame
with a resolution of 2560x1440 pixels is good enough to view
from 1m-2m distance.</p>

<p><img alt="Perl Camel Power Line Art" src="https://corion.net/blog/2026/08/16/opening-the-frame/PXL_20260810_150506588.RAW-01.COVER-small.jpg"></p>

<p>The device can work with a battery, so that I can hang it on a wall without
needing to run cables for the power supply.</p>

<p>I plan to use the display mostly as a picture frame to display a random photo
I&#39;ve taken. Ideally, I can integrate the display into my home network, so that
I can quickly send any image from my desktop PC to the frame.</p>

<p>Power consumption of the frame is an issue. It has Bluetooth LE and Wifi
connectivity, but keeping it connected to the WLAN depletes the battery within
2 days. Depending on how far I get with reverse engineering the software, maybe
I can wake up the display via Bluetooth or have it wake up and connect on a
schedule.</p>

<p><img alt="Blank Frame" src="https://corion.net/blog/2026/08/16/opening-the-frame/PXL_20260810_144830535.RAW-01.COVER-small.jpg"></p>

<p>The display from Samsungs digital signage division is intended as in-store
display for commercial use, but is feels somewhat flimsy with its all-plastic
design. On the other hand, it only weighs 2.5kg, which makes hanging it
fairly easy.
The device runs some version of Samsungs Tizen OS with a special player for
displaying images on the frame. The software to upload new images is either a
mobile app or Samsungs VXT signage solution, but some people already
have reverse engineered parts of the API. I don&#39;t plan on replacing the
built-in Tizen player application with something else.</p>

<h1>The Plan</h1>

<p>My plan for the next weeks is:</p>

<ul>
<li>Investigate the software of the device</li>
<li>Investigate and exercise the functionality of the device without the app</li>
<li>Investigate and exercise the functionality of the device with the app</li>
<li>Set up a segregated IoT network</li>
<li>Reverse engineer the device + API
<ul>
<li>Wakeup via Bluetooth</li>
<li>Provisioning of WLAN connectivity</li>
<li>Automated display of new images</li>
</ul></li>
</ul>

<h1>before initial setup</h1>

<p><img alt="QR code connection information" src="https://corion.net/blog/2026/08/16/opening-the-frame/connect-qr.jpg"></p>

<h2>Connection information via QR code</h2>

<p>When powered on or reset, the device displays a QR code with the BT connection
information. This makes it convenient for the phone app and also allows
me to get the BT MAC for the device:</p>

<pre><code>EPD_PARRING_DATA?pincode=215815?devicemac=xx:xx:xx:xx:xx:xx?devicename=Samsung EMDX 115A
</code></pre>

<blockquote>
  <p><em>Yes, <code>EPD_PARRING_DATA</code> , I&#39;m not sure if this typo is deliberate</em></p>
</blockquote>

<h2>BT LE scan</h2>

<p>A quick scan using <code>btmgmt</code> lets me see the device, after pressing the magic
Bluetooth button on the device:</p>

<pre><code># hcitool lescan
xx:xx:xx:xx:xx:xx Samsung EMDX 115A

# btmgmt
pair xx:xx:xx:xx:xx:xx
</code></pre>

<p>After several attempts from my desktop the device paired. This mirrors the
experience with my phone, where I also needed several attempts before the
device would successfully pair.</p>

<h1>First functionality check with USB stick</h1>

<p><img alt="Image of the Silver Tower in Frankfurt, black/white" src="https://corion.net/blog/2026/08/16/opening-the-frame/PXL_20260810_151125939.RAW-01.COVER-small.jpg"></p>

<p>The display can show images from an USB stick, so that&#39;s what I used to show
the first set of images. The device dithers the image colours where they differ
from the 6 primary colours. This is fairly slow, with the transistion to a new
image starting roughly 20s after starting, and the display transition taking
another 30s of flashing.</p>

<h1>Setup</h1>

<p>Weirdly enough, the EM32DX does not seem to have a large-scale provisioning
mode mentioned in the manuals. All the instructions I&#39;ve found rely on scanning
the QR code on the device with the Samsung E-Paper App.</p>

<p>After some searching, I found a PWA at
<a href="https://preset.samsungedo.com/">Samsung EDO</a>, which generates preset
configurations for various EMDX devices. This also showed that if you put that
file into the <code>preset/</code> folder below the <code>SAMSUNG_E-Paper</code> folder, the decice
will pick up the settings from that XML file and self-configure.</p>

<pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!-- Version: 1.0.6  Built with the Samsung ePaper USB Preset Tool (https://preset.samsungedo.com).
     Delete a whole &lt;ConfigItem&gt; block to skip an optional setting; never leave a value blank. --&gt;
&lt;ConfigurationPreset&gt;
  &lt;!-- Wi-Fi the device joins. EAP=false for a normal password (WPA2-PSK) network; the EAP field is required on FW 1120 even for PSK. --&gt;
  &lt;ConfigItem type=&quot;NetworkSetting&quot; category=&quot;mandatory&quot;&gt;
    &lt;Parameter name=&quot;NetworkType&quot; value=&quot;Wireless&quot;/&gt;
    &lt;Parameter name=&quot;SSID&quot; value=&quot;Name-of-SSID&quot;/&gt;
    &lt;Parameter name=&quot;Password&quot; value=&quot;password&quot;/&gt;
    &lt;Parameter name=&quot;EAP&quot; value=&quot;false&quot;/&gt;
    &lt;Parameter name=&quot;ID&quot; value=&quot;&quot;/&gt;
    &lt;Parameter name=&quot;AnonymousID&quot; value=&quot;&quot;/&gt;
    &lt;Parameter name=&quot;EAPType&quot; value=&quot;PEAP&quot;/&gt;
    &lt;Parameter name=&quot;PHASE2Type&quot; value=&quot;None&quot;/&gt;
    &lt;Parameter name=&quot;CA_Cert&quot; value=&quot;&quot;/&gt;
    &lt;Parameter name=&quot;Client_Cert&quot; value=&quot;&quot;/&gt;
    &lt;Parameter name=&quot;DHCP&quot; value=&quot;true&quot;/&gt;
  &lt;/ConfigItem&gt;
</code></pre>

<h1>First setup, with the app</h1>

<p>Network uses WPA3+WPA2, which the device does speak, but the Samsung
App gets confused and cannot connect to the device via WLAN that way. Using
the mobile hotspot of my phone still allows me to connect the device to the
app and test out the functionality beyond the USB stick with the app.</p>

<h1>Use through the app</h1>

<p>The app can configure the device completely and also send new images from the
photo storage. Connectivity via WLAN is necessary for the data transport.
Basically, I think I can now send fresh image data to the device whenever
I feel like it.</p>

<h1>Colour fidelity</h1>

<p>The display has 6 primary colour pigments, red, green, blue, yellow, black
and white. Other colours are created on-device by dithering the image. The
colours don&#39;t really match up with my desktop monitor, they are somewhat darker
even accounting for the luminescence of the display. Especially green seems
far darker than its RGB counterpart.</p>

<p>Pigment colours, matched by eye:</p>

<p><img alt="Pigment colours" src="https://corion.net/blog/2026/08/16/opening-the-frame/00-color-mapping-visual.png"></p>

<p>Colour comparison with reference card:</p>

<p><img alt="Colour comparison" src="https://corion.net/blog/2026/08/16/opening-the-frame/em32dx-colour-comparison.jpg"></p>

<p><em>(image taken with Google Camera on Pixel 9 Pro XL under indirect daylight)</em></p>

<p>With some googling, I came up with two Imagemagick commands to first dither
an image to the colours of the pigments, and then to convert the pixels to
the RGB pixels that the on-device software expects.</p>

<p>Imagemagick command line to Colour-concert and pre-dither images:</p>

<pre><code># dither with eink colours
magick input.png -dither FloydSteinberg -remap 00-colour-mapping-visual.png &quot;dithered.png&quot;
# map to rgby pixels
magick &quot;dithered.png&quot; -remap 00-colour-mapping-rgb.png +dither final.png
</code></pre>

<h1>Next Steps</h1>

<ul>
<li>Maybe some yaml to create palette profiles, to make tweaking easier?! On the
other hand, simply using Imagemagick works well enough.</li>
<li>Crack up BT setup. The configuration and setup via USB stick works well
enough, but I&#39;d like to also set up the device using Bluetooth
programmatically.</li>
<li>Set up segregated IoT WLAN to keep random devices off my main network. Just
so that the random devices don&#39;t get onto my main network.</li>
</ul>


                <p>Tags:
                    <a href="https://corion.net/blog/tag/gadgets/">Gadgets</a>
                    <a href="https://corion.net/blog/tag/reverse-engineering/">Reverse engineering</a>
                </p>

        ]]></content>
        <updated>2026-08-16T00:00:00Z</updated>
        <category term="Gadgets" />
        <category term="Reverse engineering" />
    </entry>
</feed>

