<?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: Marco</title>
    <description>The latest articles on DEV Community by Marco (@pezzullo).</description>
    <link>https://dev.to/pezzullo</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%2F3920651%2F9ef050df-df52-4756-987e-57e731257437.png</url>
      <title>DEV Community: Marco</title>
      <link>https://dev.to/pezzullo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pezzullo"/>
    <language>en</language>
    <item>
      <title>Reconciling invoices against orders and deliveries with local AI</title>
      <dc:creator>Marco</dc:creator>
      <pubDate>Wed, 25 Nov 2026 13:19:09 +0000</pubDate>
      <link>https://dev.to/pezzullo/reconciling-invoices-against-orders-and-deliveries-with-local-ai-198j</link>
      <guid>https://dev.to/pezzullo/reconciling-invoices-against-orders-and-deliveries-with-local-ai-198j</guid>
      <description>&lt;p&gt;The order was for ten valves. The invoice billed ten. The delivery note recorded eight received. The unit price had moved from €12.00 to €12.50. Those are separate exceptions. A warehouse clerk can check the missing pieces. The buyer can check the price against the terms on the order.&lt;/p&gt;

&lt;p&gt;That synthetic case was used to test DocMatch, a local invoice reconciliation prototype. The interesting part was getting from the scanned page to a decision someone could check later.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8u649o6vfcshyob4ykqc.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8u649o6vfcshyob4ykqc.webp" alt="Invoice, purchase order and delivery quantities side by side in the local review workspace" width="799" height="509"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  A number needs a column and a source
&lt;/h2&gt;

&lt;p&gt;A text PDF can be read directly. On a scan, optical character recognition supplies the text and its position on the page. A language model can suggest where a field belongs. The application keeps the reference to the original text so a reviewer can open the page and check it.&lt;/p&gt;

&lt;p&gt;Finding a number in the source is only one check. One synthetic row listed a quantity of 4, a unit price of 10.00 and a line amount of 40.00. An extraction proposal put the line amount in the unit-price field. All three numbers occurred on the page. The useful check was the position of each number within the table wherever the column layout could be recognised. An unclear field stays open for review.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F865fx1jyc3w82595fi3b.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F865fx1jyc3w82595fi3b.webp" alt="An extracted invoice number and its position highlighted on the original page" width="799" height="509"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the goods received against what has already been invoiced
&lt;/h2&gt;

&lt;p&gt;Matching a supplier’s VAT number and order reference gets you to the order. The next step is to find the item and put both documents in comparable units. Grams convert to kilograms directly. For cartons, the conversion needs the pack size for that particular item.&lt;/p&gt;

&lt;p&gt;Suppose eight pieces have arrived on one purchase order and five have already been confirmed on an earlier invoice. A new invoice for six has to start from the available balance. For one matched item in the same unit, both quantities come from subtracting the pieces already confirmed.&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;from&lt;/span&gt; &lt;span class="n"&gt;decimal&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Decimal&lt;/span&gt;

&lt;span class="n"&gt;ordered&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"10"&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="nc"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"8"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;already_confirmed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"5"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;open_order&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"0"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ordered&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;already_confirmed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# 5&lt;/span&gt;
&lt;span class="n"&gt;available_to_match&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Decimal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"0"&lt;/span&gt;&lt;span class="p"&gt;)&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;already_confirmed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# 3&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Six would exceed the open order by one and the available receipt quantity by three. The prototype reports each exception separately, subject to the tolerances set for that comparison. It also checks unit price and the net amount. Amounts use decimal arithmetic, with each line rounded to cents before summing the invoice.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reviewer’s decision belongs with the documents
&lt;/h2&gt;

&lt;p&gt;The review shows the proposed value, the source and the calculation. A reviewer can correct a field or record a reason for accepting a difference. Confirmation stores the values behind the decision and produces a CSV. Later corrections to delivery records feed into open cases. Confirmed cases use their saved snapshot.&lt;/p&gt;

&lt;p&gt;Two kinds of duplication come up in the same workflow. A file with identical bytes can be recognised immediately. A new scan of the same invoice has different bytes, so it goes through a separate check against the supplier’s VAT number, invoice number and year. That second check flags a possible duplicate for review.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo7t4hcpfj4zetl910ois.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo7t4hcpfj4zetl910ois.webp" alt="Review history showing a field correction and the reason recorded for a price discrepancy" width="799" height="509"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What to try with another supplier
&lt;/h2&gt;

&lt;p&gt;Before choosing a model for a new set of documents, try an ordinary matched invoice, a partial delivery and a layout with an awkward table. Keep a few examples aside for a later check. Count the fields people had to correct and the discrepancies they missed. Time the review as well as the extraction. A fast reading step can still leave a slow review.&lt;/p&gt;

&lt;p&gt;Scan quality, monthly volume, available hardware and data-handling rules all affect that choice. The examples here are synthetic, so the next useful evidence comes from a representative sample of the documents the team actually reviews.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This article was drafted with AI using the prototype and its test cases. &lt;a href="https://www.siliconlogix.it/en/solution/docmatch-ai-for-purchase-invoice-reconciliation" rel="noopener noreferrer"&gt;Project case study on Silicon LogiX&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>Ethernet over two wires: how 10BASE-T1L works and when to use it in industry</title>
      <dc:creator>Marco</dc:creator>
      <pubDate>Wed, 25 Nov 2026 10:30:15 +0000</pubDate>
      <link>https://dev.to/pezzullo/ethernet-over-two-wires-how-10base-t1l-works-and-when-to-use-it-in-industry-3355</link>
      <guid>https://dev.to/pezzullo/ethernet-over-two-wires-how-10base-t1l-works-and-when-to-use-it-in-industry-3355</guid>
      <description>&lt;p&gt;10BASE-T1L brings Ethernet to field devices over a single twisted pair. The point-to-point link carries &lt;strong&gt;10 Mbit/s in each direction&lt;/strong&gt; and can reach &lt;strong&gt;1 km&lt;/strong&gt; over a channel that meets the specification. The same pair can power the field device when the ports at both ends support the selected power profile. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-1" rel="noopener noreferrer"&gt;[1]&lt;/a&gt; &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-3" rel="noopener noreferrer"&gt;[3]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How both ends transmit on the same pair
&lt;/h2&gt;

&lt;p&gt;10BASE-T1L is the long-reach, 10 Mbit/s variant of Single Pair Ethernet (SPE). Clause 146 of IEEE 802.3, introduced by amendment 802.3cg, defines its &lt;strong&gt;physical layer&lt;/strong&gt;, or PHY. Ethernet frames retain their format. The encoding and electrical characteristics of the link change. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-1" rel="noopener noreferrer"&gt;[1]&lt;/a&gt; &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-2" rel="noopener noreferrer"&gt;[2]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4B3T&lt;/strong&gt; encoding represents each group of four bits with three ternary symbols. &lt;strong&gt;PAM-3&lt;/strong&gt; modulation assigns each symbol one of three differential voltage levels, which the receiver reads across the two conductors. This translates to &lt;strong&gt;7.5 million symbols per second&lt;/strong&gt; for a bit rate of 10 Mbit/s. The encoding keeps the signal balanced over time, which allows AC coupling in the data path. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-2" rel="noopener noreferrer"&gt;[2]&lt;/a&gt; &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-3" rel="noopener noreferrer"&gt;[3]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Both transceivers can send at the same time. At either end, the receiver sees the incoming signal combined with the one its own transmitter puts on the wire. The transceiver uses its transmitted symbols to estimate and subtract the local echo. This &lt;strong&gt;echo cancellation&lt;/strong&gt; lets the receiver distinguish the far-end signal even after attenuation over the cable. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-2" rel="noopener noreferrer"&gt;[2]&lt;/a&gt; &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-4" rel="noopener noreferrer"&gt;[4]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;100BASE-TX&lt;/strong&gt;, commonly associated with RJ45 ports, uses two pairs, one for each direction. Its electrical signalling differs from 10BASE-T1L. Joining the segments requires a switch with ports for both physical layers or an active media converter. Topologies also vary within Single Pair Ethernet. &lt;strong&gt;10BASE-T1S&lt;/strong&gt; serves short links and supports a shared bus. Each 10BASE-T1L link connects two ports. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-2" rel="noopener noreferrer"&gt;[2]&lt;/a&gt; &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-5" rel="noopener noreferrer"&gt;[5]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What determines whether a link can reach 1 km
&lt;/h2&gt;

&lt;p&gt;The 1 km reach applies in &lt;strong&gt;2.4 V peak-to-peak&lt;/strong&gt; mode, with a channel that meets the electrical limits. When auto-negotiation is enabled, the PHYs use this level if both advertise support and at least one requests it. The baseline &lt;strong&gt;1.0 V peak-to-peak&lt;/strong&gt; mode has a tighter channel attenuation limit. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-4" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-6" rel="noopener noreferrer"&gt;[6]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Insertion loss&lt;/strong&gt; measures how much signal is lost through the channel and varies with frequency. &lt;strong&gt;Return loss&lt;/strong&gt; describes reflections caused by impedance discontinuities at splices and connectors. A higher return loss in decibels corresponds to a weaker reflection. Pair balance matters too. If the conductors respond differently to common-mode interference, some of it appears at the receiver as a differential signal. To qualify existing cabling, compare the losses of the entire channel, including splices, with the specified curves from 100 kHz to 20 MHz. Return loss is referenced to a differential impedance of 100 Ω. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-6" rel="noopener noreferrer"&gt;[6]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Connecting a field device with an SPI MAC-PHY
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;MAC&lt;/strong&gt; handles Ethernet frames. The &lt;strong&gt;PHY&lt;/strong&gt; converts the data it receives from the MAC into electrical signals on the line. A microcontroller with an Ethernet MAC can connect to a 10BASE-T1L PHY through an interface such as RMII. A &lt;strong&gt;MAC-PHY&lt;/strong&gt; such as the ADIN1110 combines both blocks and exchanges frames and commands with the processor over SPI. This lets microcontrollers without a built-in Ethernet MAC use the link. On the line side, the ADIN1110 uses an external hybrid circuit to couple its separate transmit and receive pins to the same pair. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-4" rel="noopener noreferrer"&gt;[4]&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Microcontroller
⇅ SPI
10BASE-T1L MAC-PHY
⇅
Coupling circuit
⇅
Twisted pair
⇅
10BASE-T1L switch port
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The microcontroller exchanges Ethernet frames over SPI. The coupling circuit transfers the PHY signal to the twisted pair. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-4" rel="noopener noreferrer"&gt;[4]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In firmware, the driver configures the MAC-PHY and moves frames through its transmit and receive queues. The ADIN1110 supports an SPI clock of up to &lt;strong&gt;25 MHz&lt;/strong&gt;. Effective throughput also depends on SPI protocol overhead, buffer sizes and how quickly the microcontroller services interrupts and drains the queues. With Modbus TCP, the microcontroller also runs the TCP/IP stack and the application that makes the data available. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-4" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-8" rel="noopener noreferrer"&gt;[8]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  10BASE-T1L and RS-485 compared
&lt;/h2&gt;

&lt;p&gt;RS-485 specifies the electrical characteristics of transmitters and receivers. On a two-wire bus, nodes take turns transmitting. The trunk has a termination at each end, and the stubs are kept short. In the Modbus serial line specification, “two-wire” refers to the two signal conductors. A third conductor provides a common reference. RTU is the binary message format for the serial line. Modbus TCP carries the Modbus application functions over TCP/IP with a different header. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-7" rel="noopener noreferrer"&gt;[7]&lt;/a&gt; &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-8" rel="noopener noreferrer"&gt;[8]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Interface characteristics for field instruments&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Characteristic&lt;/th&gt;
&lt;th&gt;10BASE-T1L&lt;/th&gt;
&lt;th&gt;Two-wire RS-485&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Topology&lt;/td&gt;
&lt;td&gt;One pair per point-to-point link. Switches aggregate multiple links.&lt;/td&gt;
&lt;td&gt;One signal pair shared by multiple devices on the same bus.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Duplex&lt;/td&gt;
&lt;td&gt;Simultaneous transmission in both directions.&lt;/td&gt;
&lt;td&gt;Nodes take turns transmitting on the shared pair.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data rate and reach&lt;/td&gt;
&lt;td&gt;10 Mbit/s per direction. Up to 1 km at 2.4 V peak-to-peak with a compliant channel. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-6" rel="noopener noreferrer"&gt;[6]&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;Reach depends on data rate and cabling. TI's design guide cites approximately 1,200 m at 100 kbit/s as a reference. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-7" rel="noopener noreferrer"&gt;[7]&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Device firmware&lt;/td&gt;
&lt;td&gt;Ethernet driver, a network stack suited to the chosen protocol, and application logic.&lt;/td&gt;
&lt;td&gt;UART, transceiver direction control, and a serial protocol.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When many instruments exchange only a few values, a Modbus TCP/RTU gateway can bring the serial trunk onto the IP network. The gateway translates requests, and the instruments continue to share the bus polling cycle. 10BASE-T1L is worth considering when individual instruments need to be reachable over Ethernet for readings, configuration or diagnostics. The choice affects the number of active ports, cable routes and device firmware. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-1" rel="noopener noreferrer"&gt;[1]&lt;/a&gt; &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-7" rel="noopener noreferrer"&gt;[7]&lt;/a&gt; &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-8" rel="noopener noreferrer"&gt;[8]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Data and power on the same pair
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;PoDL&lt;/strong&gt; (&lt;em&gt;Power over Data Lines&lt;/em&gt;) defines power delivery over a single pair. Industrial &lt;strong&gt;SPoE&lt;/strong&gt; (&lt;em&gt;Single-Pair Power over Ethernet&lt;/em&gt;) classes 10 through 15 set limits for voltage, current, power and maximum cable resistance. The supplying 10BASE-T1L port acts as the power sourcing equipment (&lt;strong&gt;PSE&lt;/strong&gt;). The field instrument is the powered device (&lt;strong&gt;PD&lt;/strong&gt;). The two ports need compatible power classes. Inductors in the power path pass direct current while impeding the data signal. The PHY receives the signal through an AC-coupled path. At the field device, the PD controller manages startup and the DC/DC converter supplies the electronics. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-3" rel="noopener noreferrer"&gt;[3]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Data reach depends on channel loss at the signalling frequencies. Power delivery depends on cable resistance and the load. The voltage drop along the cable is the current multiplied by the &lt;strong&gt;loop resistance&lt;/strong&gt;, the combined resistance of the outgoing and return conductors. Cable power losses rise with the square of the current. Choosing a power class means accounting for the minimum supply voltage, conductor temperature, DC/DC efficiency and startup current. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-3" rel="noopener noreferrer"&gt;[3]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When the field electronics require &lt;strong&gt;galvanic isolation&lt;/strong&gt; from the line, the isolation barrier must account for both paths. Analog Devices' CN0575 reference design uses a transformer for the data path and an isolated DC/DC converter for power. The choice and sizing of the coupling components also affect signal integrity. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-3" rel="noopener noreferrer"&gt;[3]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What Ethernet-APL adds
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Ethernet-APL&lt;/strong&gt; uses 10BASE-T1L and defines port profiles for process automation, including intrinsically safe installations. In a topology with field switches, the trunk can reach 1,000 m and the spur to an instrument can reach 200 m, depending on the port profile and cabling. APL profiles define signal and power compatibility between ports. Intrinsically safe profiles also set limits for interconnecting ports in hazardous areas. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-6" rel="noopener noreferrer"&gt;[6]&lt;/a&gt; &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-9" rel="noopener noreferrer"&gt;[9]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Assessing timing and link stability
&lt;/h2&gt;

&lt;p&gt;The 10 Mbit/s figure is the line rate. Headers and interframe gaps also affect application throughput. Time from acquisition to an updated value at the PLC includes transmission and propagation along the cable, forwarding through switches, microcontroller queues and the polling cycle. For a control function, specify two deadlines. One is the maximum time for a new reading to reach the PLC. The other is how soon the PLC must mark a reading as stale after communication is lost. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-1" rel="noopener noreferrer"&gt;[1]&lt;/a&gt; &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-6" rel="noopener noreferrer"&gt;[6]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;During system qualification, signal-quality indicators help track link performance under electrical interference. Reflectometry available on devices such as the ADIN1110 helps locate possible cable discontinuities. For a powered link, verify the minimum voltage at startup as well. After a link interruption, application-level recovery is complete when the PLC receives a fresh, valid sample. &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-3" rel="noopener noreferrer"&gt;[3]&lt;/a&gt; &lt;a href="https://www.siliconlogix.it/en/article/10base-t1l-single-pair-ethernet-for-industrial-networks#fonte-10" rel="noopener noreferrer"&gt;[10]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;IEEE, &lt;a href="https://standards.ieee.org/ieee/802.3cg/7308/" rel="noopener noreferrer"&gt;amendment 802.3cg&lt;/a&gt; and &lt;a href="https://standards.ieee.org/ieee/802.3/10422/" rel="noopener noreferrer"&gt;IEEE 802.3 standard&lt;/a&gt;, Clause 146.&lt;/li&gt;
&lt;li&gt;IEEE 802.3cg Task Force, &lt;a href="https://www.ieee802.org/3/cg/public/Jan2019/Tutorial_cg_0119_final.pdf" rel="noopener noreferrer"&gt;tutorial on 10 Mbit/s Single Pair Ethernet&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Analog Devices, &lt;a href="https://www.analog.com/en/resources/reference-designs/circuits-from-the-lab/cn0575.html" rel="noopener noreferrer"&gt;CN0575 reference design&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Analog Devices, &lt;a href="https://www.analog.com/media/en/technical-documentation/data-sheets/adin1110.pdf" rel="noopener noreferrer"&gt;ADIN1110 data sheet&lt;/a&gt; and &lt;a href="https://www.analog.com/en/resources/technical-articles/2021/04/14/17/36/how-a-10base-t1l-mac-phy-simplifies-lo-pwr-processor-ethernet-connectivity.html" rel="noopener noreferrer"&gt;technical article on connecting a MAC-PHY over SPI&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Cisco, &lt;a href="https://www.cisco.com/c/en/us/support/docs/routers/10000-series-routers/46792-ethbase.html" rel="noopener noreferrer"&gt;100BASE-TX cabling specifications&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Analog Devices, &lt;a href="https://www.analog.com/en/resources/analog-dialogue/raqs/raq-issue-231.html" rel="noopener noreferrer"&gt;10BASE-T1L reach and channel requirements&lt;/a&gt;. Texas Instruments, &lt;a href="https://www.ti.com/lit/an/sluaaa9a/sluaaa9a.pdf" rel="noopener noreferrer"&gt;10BASE-T1L channel design note&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Texas Instruments, &lt;a href="https://www.ti.com/lit/an/slla272d/slla272d.pdf" rel="noopener noreferrer"&gt;&lt;em&gt;The RS-485 Design Guide&lt;/em&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Modbus Organization, &lt;a href="https://www.modbus.org/file/secure/modbusoverserial.pdf" rel="noopener noreferrer"&gt;Modbus over serial line specification&lt;/a&gt; and &lt;a href="https://www.modbus.org/file/secure/messagingimplementationguide.pdf" rel="noopener noreferrer"&gt;Modbus TCP/IP messaging guide&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;IEC, &lt;a href="https://webstore.iec.ch/en/publication/101814" rel="noopener noreferrer"&gt;IEC TS 63444 specification for Ethernet-APL and Ethernet-SPE profiles&lt;/a&gt;. Ethernet-APL, &lt;a href="https://www.ethernet-apl.org/faq/" rel="noopener noreferrer"&gt;FAQ on trunks and spurs&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Analog Devices, &lt;a href="https://www.analog.com/en/resources/app-notes/an-2553.html" rel="noopener noreferrer"&gt;AN-2553 on link and cable diagnostics&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>abotwrotethis</category>
      <category>networking</category>
      <category>embedded</category>
      <category>hardware</category>
    </item>
    <item>
      <title>Tracking event equipment by serial number in RentalStage</title>
      <dc:creator>Marco</dc:creator>
      <pubDate>Tue, 24 Nov 2026 10:05:14 +0000</pubDate>
      <link>https://dev.to/pezzullo/tracking-event-equipment-by-serial-number-in-rentalstage-1ed</link>
      <guid>https://dev.to/pezzullo/tracking-event-equipment-by-serial-number-in-rentalstage-1ed</guid>
      <description>&lt;p&gt;The cases are due out at 4 p.m. For the crew packing them, the hour that matters is 3 p.m. By then the Live kit needs four wireless mics, a mixer and four lights. In the RentalStage example, only two of the mics can come off the shelf.&lt;/p&gt;

&lt;p&gt;RentalStage is a reference prototype for a custom rental application. The kits, rates and warehouse checks in this walkthrough are examples. For a commissioned implementation, the rental team would set those rules and specify which scanners and management software to connect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the stock check returns two serial numbers
&lt;/h2&gt;

&lt;p&gt;The Forum has booked the first six mics. MIC009 and MIC010 are in repair. That leaves &lt;code&gt;MIC007&lt;/code&gt; and &lt;code&gt;MIC008&lt;/code&gt; for the Lumen job. The warehouse catalogue still has ten entries.&lt;/p&gt;

&lt;p&gt;The planned return for the Forum is noon on 13 November, so those six mics stay booked through the inspection hour. If a later job starts packing at exactly 1 p.m., the two buffered windows touch. The overlap check uses &lt;code&gt;requestedStart &amp;lt; occupiedEnd &amp;amp;&amp;amp; occupiedStart &amp;lt; requestedEnd&lt;/code&gt; on the buffered times. A serial is also filtered out if it appears on the maintenance list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fduii2plpicowturolomn.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fduii2plpicowturolomn.webp" alt="Planning view with four microphones requested and two available" width="800" height="556"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The rate only matters if the stock is ready in time
&lt;/h2&gt;

&lt;p&gt;Sound Depot has enough mics at €20 a day each. They are ready at 6 p.m. Stage Partner has two ready at noon, before packing, at €25 per mic per day. The two mics add €100 to the job’s costs because the demo bills the booking as two days.&lt;/p&gt;

&lt;p&gt;The right-hand panel shows €834 in expected revenue, €420 in direct costs and €414 left as direct contribution. Amounts in the calculation use integer cents. Accepting the sample quote copies those figures into its history. An edit later on gives the team a fresh draft to compare with the version already accepted.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2id4mhfw9hbkcfvgr77t.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2id4mhfw9hbkcfvgr77t.webp" alt="Kit and quote view with supplier options and the direct cost summary" width="800" height="556"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Assign the serials in the same request that checks them
&lt;/h2&gt;

&lt;p&gt;A booking can sit in draft while the warehouse stock is still available for other jobs. Confirmation checks that the browser sent the current revision, runs the availability rules again and saves the assigned serial numbers. PHP does that work in a SQLite &lt;code&gt;BEGIN IMMEDIATE&lt;/code&gt; transaction. If an older tab sends a stale revision, it gets HTTP 409 and the reservation stays as it was. The prototype stores its state per demo session.&lt;/p&gt;

&lt;p&gt;At the packing bench, the two subrental mics are labelled &lt;code&gt;EXT-MIC-1&lt;/code&gt; and &lt;code&gt;EXT-MIC-2&lt;/code&gt; in the manifest. A repeat scan of either label keeps the counter where it was. A serial from another list is rejected too. Once the count reaches nine out of nine, dispatch can be recorded.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F60y4ec5jid80gezfhjyw.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F60y4ec5jid80gezfhjyw.webp" alt="Warehouse manifest with nine checked serial numbers, including two subrental units" width="800" height="556"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Follow MIC007 after dispatch
&lt;/h2&gt;

&lt;p&gt;The first return is at 8 p.m. and contains just MIC007. The warehouse records the time and a fault against that serial. The manifest still shows eight items out. As they arrive, each receives its own return time, which is where the inspection hour starts.&lt;/p&gt;

&lt;p&gt;MIC007 also goes onto the maintenance list. To clear the case, the prototype requires a confirmed functional test and a written result. The test suite covers a partial return followed by the rest of the kit, including an attempt to return the same serial twice.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb9zl321wlzq98504vx9v.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb9zl321wlzq98504vx9v.webp" alt="Partial return view with MIC007 returned for maintenance and eight items still out" width="800" height="556"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  See the three outcomes online
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://www.siliconlogix.it/lab-tools/slxw-rentalstage/" rel="noopener noreferrer"&gt;online walkthrough&lt;/a&gt; has three precomputed examples. It starts with the shortage, then lets you inspect a subrental and a damaged return. The separate read-only PHP build was checked for 192 combinations of dates, quantities, supplier choices, return conditions and discounts. All names and prices are sample data.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://www.siliconlogix.it/en/solution/rentalstage-event-equipment-rental" rel="noopener noreferrer"&gt;RentalStage project article&lt;/a&gt; follows the same job from the warehouse team’s side. The screenshots show the Italian interface.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This article was generated with AI using the project source and verification results.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>php</category>
      <category>sqlite</category>
      <category>webdev</category>
      <category>showdev</category>
    </item>
    <item>
      <title>SLX SeaBalance · Ship Roll and Stabilization Simulator</title>
      <dc:creator>Marco</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:57:14 +0000</pubDate>
      <link>https://dev.to/pezzullo/slx-seabalance-ship-roll-and-stabilization-simulator-48k2</link>
      <guid>https://dev.to/pezzullo/slx-seabalance-ship-roll-and-stabilization-simulator-48k2</guid>
      <description>&lt;p&gt;A wave on the beam can heel a vessel. Buoyancy tends to bring it upright, while subsequent waves, weight distribution and speed shape its response. On a workboat, rolling can make it harder to work on deck and operate equipment. &lt;strong&gt;SLX SeaBalance&lt;/strong&gt; simulates this motion and shows how a pair of stabilizer fins works underway. Control engineers and system integrators can compare controller settings, see how the actuators respond and explore more demanding sea states and loading conditions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same vessel with and without stabilization
&lt;/h2&gt;

&lt;p&gt;The 3D view shows the hull's heel angle and the movement of the fins. You can watch the vessel with the controller switched off, with a PID controller or with the SLX control strategy. Wave height, period and direction define the sea state. For irregular seas, the simulator combines wave components at different frequencies and phases to produce a repeatable wave sequence. Reusing that sequence makes it easier to see how a change in the controller or in the operating conditions affects roll.&lt;/p&gt;

&lt;p&gt;The controller can run on the PC or on an STM32MP135 board connected over Ethernet. With the board connected, the simulator generates inertial sensor samples. The board estimates the vessel's motion and returns commands that the simulator applies to the virtual fins. The resulting hull motion provides the next sensor sample, closing the loop.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F434nj8n09gjdsk2qe1nm.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F434nj8n09gjdsk2qe1nm.webp" alt="Synchronized 3D views of the vessel with stabilization switched off and with SLX stabilization active, shown with a roll plot." width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The synchronized views show how the vessel is heeling at the same point on both roll traces.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What drives ship roll
&lt;/h2&gt;

&lt;p&gt;The model tracks rotation about the vessel's longitudinal axis. Waves and any shift in the load can exert moments that increase heel. Buoyancy can produce a righting moment, damping dissipates some of the motion's energy, and the fins apply a corrective moment. For a given net moment, inertia determines how quickly the roll rate changes. Speed and heading also affect how often the vessel encounters wave crests. As the encounter period approaches the vessel's natural roll period, the oscillations can grow. &lt;a href="https://www.ittc.info/media/11942/75-02-07-045.pdf" rel="noopener noreferrer"&gt;ITTC, roll dynamics and damping&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the fins counteract roll
&lt;/h2&gt;

&lt;p&gt;The fins sit on opposite sides of the hull. When deflected, they generate opposing forces that produce a moment about the roll axis. If the port side rises, its fin can push down while the starboard fin pushes up. Lift depends on the fin's angle of attack, its submerged area and the dynamic pressure of the water, which increases with the square of the relative flow speed. The same fin angle can therefore produce a very different corrective moment as vessel speed changes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8bm40lcogirjhwp49vy9.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8bm40lcogirjhwp49vy9.webp" alt="Stern view showing the fins applying a downward force on the port side and an upward force on the starboard side." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The magnitude of each force and its distance from the longitudinal axis determine the corrective moment.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In the simulator, the fins take time to reach their commanded position and have limits on travel and rotation rate. A plot shows the commanded and actual angles separately. This makes it possible to see when the controller asks for more correction than the fins can deliver. A fin can also lose effectiveness if it partially leaves the water or stalls and loses lift.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stability reserve at large heel angles
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;GZ&lt;/strong&gt; curve plots the righting arm against heel angle. Multiplying the arm by the vessel's weight gives the righting moment. Near upright, the initial slope of the curve, with heel measured in radians, equals the metacentric height &lt;strong&gt;GM&lt;/strong&gt;. At larger angles, the shape of the curve and the remaining positive righting range matter. The Stability view relates the current point on the curve to the vessel's roll energy and the remaining work available to bring it upright.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7ia13siqaw80dt6rrm7n.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7ia13siqaw80dt6rrm7n.webp" alt="Example GZ curve. The righting arm rises, falls to zero and turns negative at larger heel angles." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The example workboat's GZ curve shows how the righting arm changes with heel. The point where the curve crosses zero marks the end of the positive range.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A higher center of gravity or a free liquid surface in a tank reduces the stability reserve. If an opening dips below the local water surface, the model estimates the inflow and updates the mass distribution. Replay can trace the progression from immersion of an opening to loss of righting moment and capsize if these events occur. Users can import a GZ curve for a different loading condition. &lt;a href="https://www.imo.org/en/mediacentre/meetingsummaries/pages/sdc-7.aspx" rel="noopener noreferrer"&gt;IMO, dynamic stability of ships in waves&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading the effects of a maneuver or fault
&lt;/h2&gt;

&lt;p&gt;During a session, users can change the sea state or loading condition, adjust the actuator delay or introduce a fault such as a jammed fin or loss of the inertial sensor signal. Replay shows each intervention on the same timeline as roll angle, controller estimate, fin commands, fin positions and alarms. If the vessel keeps rolling, users can find where the response departed from expectations and see whether the limiting factor was the sensor data, the actuator response or the available corrective moment.&lt;/p&gt;




&lt;p&gt;This English article was drafted and translated with AI from Silicon LogiX project material and editorial direction.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.siliconlogix.it/en/solution/slx-seabalance-ship-roll-and-stabilization-simulator" rel="noopener noreferrer"&gt;Canonical article on Silicon LogiX&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>simulation</category>
      <category>cpp</category>
      <category>opengl</category>
      <category>engineering</category>
    </item>
    <item>
      <title>SLX SeaBalance · STM32MP135 Roll Stabilization Controller</title>
      <dc:creator>Marco</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:56:31 +0000</pubDate>
      <link>https://dev.to/pezzullo/slx-seabalance-stm32mp135-roll-stabilization-controller-3395</link>
      <guid>https://dev.to/pezzullo/slx-seabalance-stm32mp135-roll-stabilization-controller-3395</guid>
      <description>&lt;p&gt;Roll is the side-to-side rotation of a vessel about its longitudinal axis. Even on a steady heading, the deck can tilt with each passing wave. On a workboat, reducing this motion helps steady operations on deck and limits the accelerations experienced by crew and cargo. SLX SeaBalance uses two active fins, one on each side of the hull. The controller estimates the vessel’s motion and adjusts the fins to oppose it.&lt;/p&gt;

&lt;h2&gt;
  
  
  From vessel motion to fin commands
&lt;/h2&gt;

&lt;p&gt;The controller runs on an STM32MP135F-DK board. A PC simulates the workboat’s motion, inertial measurements, and actuators. It sends accelerations, angular rates, vessel speed, and virtual fin positions to the board over Ethernet. The board returns its roll estimate, the angle requested for each fin, and the control status. The simulator applies those commands to calculate the vessel’s next movement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvb9b5chehncmcgdhrors.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvb9b5chehncmcgdhrors.webp" alt="Ethernet link between the simulator and the STM32MP135F-DK controller, carrying measurements to the board and fin commands back to the simulator." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The PC calculates the motion of the vessel and its virtual fins. The controller uses the measurements it receives to set the fin commands for the next step.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The two devices exchange SLXB messages over UDP. The PC sends a sample and the board returns a response at each 20 ms step of simulated time. A session identifier and sequence number match each command to the sample that produced it. A C++ service on the board runs the controller and supplies measurements and operating states to the touchscreen. The service and operator interface both run on OpenSTLinux. &lt;a href="https://www.st.com/en/evaluation-tools/stm32mp135f-dk.html" rel="noopener noreferrer"&gt;STM32MP135F-DK, STMicroelectronics&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Estimating roll while the vessel is moving
&lt;/h2&gt;

&lt;p&gt;The controller combines readings from the gyroscope and accelerometer in the inertial measurement unit. Integrating the gyroscope’s angular rate gives the change in roll angle, although even a small bias accumulates over time. The accelerometer can provide a gravity reference when the vessel is moving gently. During a turn or an oscillation, its readings also include acceleration from the vessel’s motion.&lt;/p&gt;

&lt;p&gt;A complementary filter combines the two signals. The gyroscope tracks rapid changes, while the accelerometer gradually corrects drift. The filter reduces or skips that correction when the reading is inconsistent with gravity or with the predicted tilt. The control loop uses both the estimated roll angle and the rate at which it is changing.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the controller damps roll
&lt;/h2&gt;

&lt;p&gt;The fins turn in opposite directions and generate opposing vertical forces on either side of the hull. Acting at a distance from the longitudinal axis, those forces produce a roll moment. The controller uses both angle and angular rate, so it can respond when the vessel passes through upright while still rotating quickly.&lt;/p&gt;

&lt;p&gt;In PID mode, the proportional term responds to tilt, the derivative term opposes the motion, and the integral term corrects sustained deviations. The controller limits integral buildup when the fin command reaches its travel limit and limits the rate of change of the command to smooth transitions. SLX mode uses the same measurement and command interface. At lower vessel speeds, the flow over the fins provides less corrective force. SeaBalance suspends automatic control below the configured speed threshold.&lt;/p&gt;

&lt;h2&gt;
  
  
  Touchscreen controls and operating status
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;Assetto&lt;/strong&gt; screen shows estimated tilt and fin positions. From &lt;strong&gt;Bilancio&lt;/strong&gt;, the operator can take control from the PC, enable or disable automatic stabilization, or set fin angles manually. &lt;strong&gt;Manovra&lt;/strong&gt; sets speed and heading references for the simulated vessel. &lt;strong&gt;Allarmi&lt;/strong&gt; shows conditions that prevent automatic operation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv9y26fzb56q9w52jr6jk.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv9y26fzb56q9w52jr6jk.webp" alt="SeaBalance touchscreen showing stabilization settings, with Off, Manual, PID, and SLX options and a button to return control to the PC." width="480" height="272"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The stabilization screen lets the operator choose a control mode and keep command authority on the touchscreen or return it to the simulator.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The controller checks whether measurements are current and compares requested fin angles with reported positions. If the inertial signal drops out or a fin fails to track its command for a sustained period, the controller gradually returns the requested angles to neutral. The touchscreen shows the selected mode alongside the mode in effect so the operator can see when stabilization is suspended. Before automatic control is available again, the controller needs valid measurements, fins close to neutral, and an acknowledged alarm.&lt;/p&gt;




&lt;p&gt;This English article was drafted and translated with AI from Silicon LogiX project material and editorial direction.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.siliconlogix.it/en/solution/slx-seabalance-stm32mp135-roll-stabilization-controller" rel="noopener noreferrer"&gt;Canonical article on Silicon LogiX&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>embedded</category>
      <category>stm32</category>
      <category>linux</category>
      <category>engineering</category>
    </item>
    <item>
      <title>Designing a business NAS around access, backups and recovery</title>
      <dc:creator>Marco</dc:creator>
      <pubDate>Sat, 21 Nov 2026 14:19:00 +0000</pubDate>
      <link>https://dev.to/pezzullo/designing-a-business-nas-around-access-backups-and-recovery-473i</link>
      <guid>https://dev.to/pezzullo/designing-a-business-nas-around-access-backups-and-recovery-473i</guid>
      <description>&lt;p&gt;An engineering firm keeps active CAD jobs on a NAS. A supplier puts a drawing into an upload area, designers work on it and reviewers read the approved copy. The firm also needs to recover a drawing after an accidental overwrite and reopen active jobs if the NAS goes down.&lt;/p&gt;

&lt;p&gt;Those requirements drive the storage and software choices. An off-the-shelf NAS with directory groups and working file versions may already cover much of the job. A supplier upload area and independent recovery storage can be added around those services. Capacity, compatibility and the time available for recovery determine how far the system needs to change.&lt;/p&gt;

&lt;h2&gt;
  
  
  File shares and the management plane
&lt;/h2&gt;

&lt;p&gt;The SLX NAS software base runs on Debian. Samba exposes SMB3 shares and POSIX ACLs define permissions on directories and new files. The design group can write to the working area. Reviewers can read it. If a company uses Active Directory, Samba can integrate with company groups so an identity change is made in the directory the IT team already manages.&lt;/p&gt;

&lt;p&gt;The management console uses React and TypeScript. A Go API with limited privileges handles requests. A separate local agent carries out authorised operations on volumes, shares and services. SQLite stores configuration and the activity record. Caddy handles HTTPS and systemd schedules service operations.&lt;/p&gt;

&lt;p&gt;The reference Samba configuration requires SMB3 encryption. Management and backup accounts have separate roles. The console supports TOTP and the design can add WebAuthn hardware keys. For incident response, an administrator can request suspension of managed shares, the document portal and backup jobs. The hold persists across a restart, and the person handling the incident checks the service status before reopening access.&lt;/p&gt;

&lt;h2&gt;
  
  
  A supplier upload and a previous drawing revision
&lt;/h2&gt;

&lt;p&gt;An expiring Nextcloud link with upload-only access gives the supplier a place to deliver the drawing. The project lead reviews the upload before moving it into the working area. If the browser portal and SMB clients need access to the same archive, decide where writes happen and how the portal will see changes made outside it.&lt;/p&gt;

&lt;p&gt;With a snapshot-capable file system and the matching Samba configuration, Windows users can open &lt;a href="https://www.samba.org/samba/docs/current/man-html/vfs_shadow_copy2.8.html" rel="noopener noreferrer"&gt;Previous Versions&lt;/a&gt; on the share. Snapshot intervals determine the versions they can see. Retention affects space usage as older snapshots hold blocks from modified or deleted files. An OpenZFS dataset quota can include snapshots, while a referenced quota can cap the live dataset’s referenced space.&lt;/p&gt;

&lt;h2&gt;
  
  
  A recovery path that can run on another server
&lt;/h2&gt;

&lt;p&gt;Restic keeps encrypted, versioned backups on an independent destination. The recovery material includes the shares, directory and access information, service configuration and application state. A Nextcloud restore also needs data and database records from the same recovery point. A directory tree alone leaves out settings, accounts and shares that the database and configuration hold.&lt;/p&gt;

&lt;p&gt;There are two separate storage decisions. The first is how long to keep recovery points. The second is which destination and credentials will be available if the NAS is inaccessible. A second server over SFTP or S3-compatible storage can provide an independent location. If the design uses object retention, verify that repository maintenance and restore procedures work with the retention policy.&lt;/p&gt;

&lt;p&gt;A recovery point objective sets the tolerable amount of lost work, measured in time. A recovery time objective sets the target for service to come back. At an effective 100 MB/s, moving 4 TB alone takes just over 11 hours. Restoring permissions and applications takes additional time. Prioritising active CAD jobs before historical data gives the restore a sequence that follows the work.&lt;/p&gt;

&lt;p&gt;The full walkthrough, including a table for assessing an existing NAS and notes on replication and UPS shutdown, is available here. &lt;a href="https://www.siliconlogix.it/en/solution/custom-nas-software-for-businesses" rel="noopener noreferrer"&gt;Custom NAS software for businesses&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;AI assisted the drafting and English editing of this article. The technical details draw on the SLX NAS project documentation and the linked software documentation.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>storage</category>
      <category>security</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>When event-based vision makes sense on the factory floor</title>
      <dc:creator>Marco</dc:creator>
      <pubDate>Thu, 19 Nov 2026 11:15:31 +0000</pubDate>
      <link>https://dev.to/pezzullo/when-event-based-vision-makes-sense-on-the-factory-floor-5aak</link>
      <guid>https://dev.to/pezzullo/when-event-based-vision-makes-sense-on-the-factory-floor-5aak</guid>
      <description>&lt;p&gt;&lt;em&gt;On the cover, a conceptual rendering of a drone in an event stream alongside the edge of an industrial component.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;On 15 June 2026, Prophesee launched &lt;strong&gt;Mantara&lt;/strong&gt;, a system that uses event-based vision and onboard artificial intelligence to detect and track drones. The processing runs on the Hearth software platform. &lt;a href="https://www.prophesee.ai/2026/06/15/prophesee-launches-mantara-event-based-drone-detection/" rel="noopener noreferrer"&gt;[1]&lt;/a&gt; At &lt;strong&gt;VISION 2026&lt;/strong&gt; in Stuttgart (6–8 October), IDS Imaging Development Systems demonstrated the same principle by tracking an air hockey puck with an event camera. IDS and Prophesee had announced the demonstration on 1 October. &lt;a href="https://www.prophesee.ai/2026/10/01/prophesee-ids-interactive-event-based-vision-demo-vision-2026/" rel="noopener noreferrer"&gt;[2]&lt;/a&gt; &lt;a href="https://en.ids-imaging.com/visionchannel-media-details/items/ids-at-vision-2026-trends-innovations-future.html" rel="noopener noreferrer"&gt;[3]&lt;/a&gt; On a production line, this type of imaging can capture rapid motion such as a vibrating component or individual droplets ejected at high speed. &lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;[4]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Measuring the frequency of a vibration
&lt;/h2&gt;

&lt;p&gt;In an example documented by Sony Semiconductor Solutions, a model car vibrates on a platform. Its moving edges produce changes in brightness, which the software uses to estimate and map vibration frequencies. The figure shows the principle using a flexible strip. For a regular oscillation, the interval between two successive peaks in the tip’s position gives the period. Frequency is the reciprocal of that period. &lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuekm7m9rc5pfor5ols92.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuekm7m9rc5pfor5ols92.webp" alt="The free tip of the strip moves up and down. In the plot of position over time, a coral bracket links two successive peaks." width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The vertical arrow shows how the tip moves. The illustrative curve shows its estimated position over time. The coral bracket between successive peaks marks one oscillation period. &lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The estimate relies on an edge with sufficient contrast. Reporting the vibration amplitude in millimetres requires the image scale, the viewing geometry and an assessment of camera movement relative to the part. Comparing the result with a reference instrument under operating conditions helps establish the measurement error. &lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What an event sensor records
&lt;/h2&gt;

&lt;p&gt;A frame camera records light levels across the entire pixel array in each image. An event sensor produces an asynchronous sequence of changes reported by individual pixels. As a bright tile moves to the right over a dark background under steady lighting, pixels reached by the leading edge get brighter. Pixels left behind by the trailing edge get darker. Stationary parts of the scene are still visible in the frames and contribute little to the event stream under these conditions. &lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt; &lt;a href="https://docs.prophesee.ai/stable/concepts.html" rel="noopener noreferrer"&gt;[6]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3gg1vpdieh4ut4j03xdy.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3gg1vpdieh4ut4j03xdy.webp" alt="Three aligned views show a plate before and after it moves right, with coral OFF points on the left and cyan ON points on the right." width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As the plate moves right, its trailing edge reveals the dark background and produces OFF events. Its leading edge covers the background and produces ON events. The bottom row collects events between the two frames. &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt; &lt;a href="https://docs.prophesee.ai/stable/concepts.html" rel="noopener noreferrer"&gt;[6]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the model described by Sony Semiconductor Solutions and Prophesee, a photoreceptor converts incident light to an electrical signal with a logarithmic response. The pixel circuit compares the signal with a reference set at its previous activation. When the accumulated change reaches the threshold in either direction, the pixel emits an event and updates its reference. Increases and decreases can have different thresholds. A slow change can produce an event if it reaches the required contrast, while a smaller change stays below the threshold. &lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt; &lt;a href="https://docs.prophesee.ai/stable/concepts.html" rel="noopener noreferrer"&gt;[6]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx1chatsn6mewlmysa7gx.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx1chatsn6mewlmysa7gx.webp" alt="The white curve meets the dashed positive threshold +C. The cyan dot at the crossing marks the ON event." width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The white curve shows the pixel’s change in log brightness (ΔL) relative to its reference over time. The cyan dot marks when ΔL reaches the positive threshold +C and the pixel emits an ON event. &lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt; &lt;a href="https://docs.prophesee.ai/stable/concepts.html" rel="noopener noreferrer"&gt;[6]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Metavision documentation represents an event as &lt;code&gt;(X, Y, P, T)&lt;/code&gt;. &lt;code&gt;X&lt;/code&gt; and &lt;code&gt;Y&lt;/code&gt; are pixel coordinates, &lt;code&gt;P&lt;/code&gt; is polarity and &lt;code&gt;T&lt;/code&gt; is the timestamp, expressed in microseconds in that format. Prophesee encodes ON as &lt;code&gt;1&lt;/code&gt; and OFF as &lt;code&gt;0&lt;/code&gt;. Each event thus identifies a local change. Determining whether it belongs to a droplet edge, a vibrating part or a change in lighting requires further observations and an algorithm. &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt; &lt;a href="https://docs.prophesee.ai/stable/concepts.html" rel="noopener noreferrer"&gt;[6]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Timing, latency and data volume
&lt;/h2&gt;

&lt;p&gt;Timestamp resolution is the granularity with which time is represented. To determine when a system can deliver a result, the pixel response, readout, transfer and processing also have to be considered. &lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt; &lt;a href="https://docs.prophesee.ai/stable/concepts.html" rel="noopener noreferrer"&gt;[6]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Three quantities to distinguish&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Quantity&lt;/th&gt;
&lt;th&gt;What it measures&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Timestamp resolution&lt;/td&gt;
&lt;td&gt;The increments used to express an event’s time.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Acquisition and transfer time&lt;/td&gt;
&lt;td&gt;The interval between the light change and the event becoming available to software.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Application latency&lt;/td&gt;
&lt;td&gt;The time from a scene change to a usable result, including any wait for processing.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;When several pixels fire together, the readout circuitry has to determine the order in which their events leave the sensor. The photoreceptor also has a finite response. Gallego and colleagues describe a test in which a light-emitting diode (LED) with modulated intensity stimulated a single pixel in a DVS128 sensor. The pixel responded over a narrower frequency range when the background light was reduced. That measurement concerns the pixel under the test conditions. The latency of the complete system also depends on the interface and downstream computation. &lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To display the stream, software accumulates events on a grid. The length of the window determines how much history the image shows. The refresh rate determines how often the software rebuilds it. If the algorithm waits for the window to close before calculating a result, that wait contributes to latency. &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt; &lt;a href="https://docs.prophesee.ai/stable/concepts.html" rel="noopener noreferrer"&gt;[6]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In a stable scene, activity may be concentrated around a few edges. Widespread motion, reflections or illumination changes across many pixels can rapidly increase the flow. The bandwidth required depends on the number of events per unit of time, their encoding and the interface that carries them. Downstream memory use also depends on how many events the algorithm keeps and on the representation it builds. Comparisons with frame cameras therefore need to account for peaks as well as averages, using the same scene and task. &lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Tracking moving droplets
&lt;/h2&gt;

&lt;p&gt;In another application, Sony tracks droplets ejected at high speed. Motion streaks overlap in the frame image in the comparison, while event processing separates the trajectories and assigns each droplet an identifier, position, apparent width and estimated speed. Separation depends on visible edges and on the algorithm’s ability to associate successive observations. Reflections, nearby droplets and overlapping projections make that association more ambiguous. Width in the image plane is distinct from physical diameter and needs calibration before it can be converted to a dimensional measurement. &lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  From the event stream to an onboard result
&lt;/h2&gt;

&lt;p&gt;In an industrial pipeline, the receiver decodes the stream and preserves coordinates, polarity and time information. A filter can suppress isolated events that have little support from nearby pixels or limit contributions from regions outside the measurement area. The algorithm can then work on small groups of events or on a grid that records the time of the most recent activation at each pixel. This representation, called a time surface, shows the recent history of edges and discards earlier activations at the same location. &lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt; &lt;a href="https://docs.prophesee.ai/stable/concepts.html" rel="noopener noreferrer"&gt;[6]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Position estimation, association and classification use these representations in different ways. A longer window can give an estimator more evidence, with the tradeoff that it can mix different phases of motion and delay the response. Grids make it easier to reuse algorithms designed for dense data, while direct processing can take advantage of sparse event distributions. The balance between accuracy, latency, memory and computation depends on how the result will be used. &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Operating conditions and limits
&lt;/h2&gt;

&lt;p&gt;The stream responds to any change in the intensity reaching a pixel. A pulsing light source can activate large areas even if a part stays still. If the camera vibrates, fixed edges on the machine also move across the array. An edge with little contrast may produce few events even when it moves. Photoreceptor noise and differences in pixel thresholds affect the output, particularly at higher sensitivity. Filtering can reduce some of that noise and can also remove weak signals that matter to the measurement. &lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;[4]&lt;/a&gt; &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Combining frames with event-based sensing is one of the directions IDS and Prophesee set out in their letter of intent, signed on 11 March at Embedded World in Nuremberg. It builds on their work on uEye EVS industrial cameras, where EVS stands for event-based vision sensor. &lt;a href="https://en.ids-imaging.com/press-releases-article/items/technology-agenda-sealed-by-letter-of-intent.html" rel="noopener noreferrer"&gt;[7]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When a line needs to read a code or inspect a stationary defect, a frame preserves appearance details that can give the event map context. When the task is to distinguish closely spaced passages or estimate the period of a moving edge, the timing of the changes becomes especially valuable. Combining the two signals for mixed applications requires aligning images and events to the same scene and time base. &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt; &lt;a href="https://en.ids-imaging.com/press-releases-article/items/technology-agenda-sealed-by-letter-of-intent.html" rel="noopener noreferrer"&gt;[7]&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A comparison on the factory floor needs to use the same measurement task under the line’s lighting and motion conditions. The deciding factors are error against a reference instrument, time from motion to a usable result and data volume at peak activity. &lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;[5]&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources and further reading
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;a href="https://www.prophesee.ai/2026/06/15/prophesee-launches-mantara-event-based-drone-detection/" rel="noopener noreferrer"&gt;Prophesee, Mantara launch announcement (15 June 2026)&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.prophesee.ai/2026/10/01/prophesee-ids-interactive-event-based-vision-demo-vision-2026/" rel="noopener noreferrer"&gt;Prophesee and IDS, VISION 2026 demonstration announcement (1 October 2026)&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://en.ids-imaging.com/visionchannel-media-details/items/ids-at-vision-2026-trends-innovations-future.html" rel="noopener noreferrer"&gt;IDS, video of the VISION 2026 demonstration (from 0:43)&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.sony-semicon.com/en/technology/industry/evs.html" rel="noopener noreferrer"&gt;Sony Semiconductor Solutions, Event-based Vision Sensor Technology&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://arxiv.org/html/1904.08405v3" rel="noopener noreferrer"&gt;G. Gallego et al., Event-based Vision: A Survey (full text)&lt;/a&gt;, IEEE Transactions on Pattern Analysis and Machine Intelligence. DOI &lt;a href="https://doi.org/10.1109/TPAMI.2020.3008413" rel="noopener noreferrer"&gt;10.1109/TPAMI.2020.3008413&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.prophesee.ai/stable/concepts.html" rel="noopener noreferrer"&gt;Prophesee, Event-Based Concepts&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://en.ids-imaging.com/press-releases-article/items/technology-agenda-sealed-by-letter-of-intent.html" rel="noopener noreferrer"&gt;IDS, letter of intent and collaboration with Prophesee (11 March 2026)&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;Originally published on &lt;a href="https://www.siliconlogix.it/en/article/event-cameras-prophesee-mantara-industrial-machine-vision" rel="noopener noreferrer"&gt;SiliconLogix&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>computervision</category>
      <category>dataacquisition</category>
      <category>industrialautomation</category>
      <category>embedded</category>
    </item>
    <item>
      <title>SLX LoRaSense: LoRa measurements and environmental sensing</title>
      <dc:creator>Marco</dc:creator>
      <pubDate>Tue, 17 Nov 2026 14:13:26 +0000</pubDate>
      <link>https://dev.to/pezzullo/slx-lorasense-lora-measurements-and-environmental-sensing-20mn</link>
      <guid>https://dev.to/pezzullo/slx-lorasense-lora-measurements-and-environmental-sensing-20mn</guid>
      <description>&lt;h2&gt;
  
  
  The project
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;SLX LoRaSense measures and analyses a LoRa link using two STM32WL nodes and a C++20 desktop application.&lt;/strong&gt; One node sends a packet every five seconds; the other receives it and forwards the radio measurements and communication status to the computer.&lt;/p&gt;

&lt;p&gt;The software tracks the signal, compares it with a reference and identifies changes that persist over time. Its main measurements are Packet RSSI, which indicates the received level, and SNR, the signal-to-noise ratio. Diagnostic counters help distinguish radio behaviour from transport problems between the receiver and the PC.&lt;/p&gt;

&lt;p&gt;The project can support wireless device development, installation diagnostics and studies of radio channel variations. Adding physical sensors extends the same architecture to environmental monitoring.&lt;/p&gt;

&lt;h2&gt;
  
  
  LoRa and link parameters
&lt;/h2&gt;

&lt;p&gt;LoRa uses &lt;em&gt;chirp spread spectrum&lt;/em&gt; modulation: symbols are represented by signals whose frequency changes over time. It suits short messages, with parameters that allow a trade-off between data rate, receiver sensitivity and channel occupancy. &lt;a href="https://www.semtech.com/lora/what-is-lora" rel="noopener noreferrer"&gt;Semtech describes the LoRa physical layer&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;LoRaWAN defines the network built on top of the radio link.&lt;/strong&gt; It introduces devices, gateways, servers and communication procedures. LoRaSense uses direct communication between its two nodes, an SLX application protocol and a receiver connected to the PC. It does not require a gateway or cloud service. Integration with LoRaWAN would add the protocol stack and management of the credentials required by the network. &lt;a href="https://lora-alliance.org/about-lorawan/" rel="noopener noreferrer"&gt;The LoRa Alliance describes that architecture&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;At a fixed bandwidth, spreading factor determines symbol duration. Increasing it can improve sensitivity, but also increases the time needed to transmit a message. Narrowing the bandwidth changes the sensitivity–data rate trade-off as well. Coding rate controls the redundancy added for error correction. These parameters must be compatible between transmitter and receiver. &lt;a href="https://www.semtech.com/uploads/technology/LoRa/lora-and-lorawan.pdf" rel="noopener noreferrer"&gt;Semtech application note AN1200.86 discusses the modulation characteristics&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The SLX firmware uses the following radio profile:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Radio parameter&lt;/th&gt;
&lt;th&gt;Configuration&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Centre frequency&lt;/td&gt;
&lt;td&gt;868.300 MHz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bandwidth / spreading factor&lt;/td&gt;
&lt;td&gt;250 kHz / SF7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Coding rate / preamble&lt;/td&gt;
&lt;td&gt;4/5 / 8 symbols&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Header / radio CRC&lt;/td&gt;
&lt;td&gt;Explicit / enabled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Payload / nominal interval&lt;/td&gt;
&lt;td&gt;32 bytes / 5,000 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Configured transmit power&lt;/td&gt;
&lt;td&gt;10 dBm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Calculated time on air&lt;/td&gt;
&lt;td&gt;35.968 ms per packet&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;With SF7 and a 250 kHz bandwidth, symbol duration is &lt;code&gt;Tsymbol = 2^SF / BW = 0.512 ms&lt;/code&gt;. The 32-byte payload, with the settings above, has a calculated time on air of &lt;strong&gt;35.968 ms&lt;/strong&gt;. This is approximately 0.719% of the five-second interval.&lt;/p&gt;

&lt;p&gt;Time on air helps size the traffic load, particularly when several nodes share a channel. Link design also needs to account for antennas, orientation, attenuation and interference. Configured power, sensitivity and range describe different properties: usable distance depends on the installation and available link margin. Band, power and antenna must be selected for the applicable operating conditions.&lt;/p&gt;

&lt;h2&gt;
  
  
  STM32WL nodes and desktop software
&lt;/h2&gt;

&lt;p&gt;The transmitter, or &lt;strong&gt;beacon&lt;/strong&gt;, prepares packets and sends them at regular intervals. The receiver checks each message, reads Packet RSSI and SNR from the radio, then adds timestamps and counters. The board UART, accessible through its USB-to-serial converter, transfers the records to the PC at 115,200 baud, 8N1.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsa3fvh14szip8wcxcok1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsa3fvh14szip8wcxcok1.webp" alt="Connection between the LoRaSense beacon, receiver and desktop software" width="799" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The beacon transmits; the receiver associates RSSI, SNR and counters with each packet. The software processes the measurements and updates link status.&lt;br&gt;
The nodes use the &lt;strong&gt;Wio-E5-LE-HF module with STM32WLE5JC&lt;/strong&gt;. The LE variant is single core, and its datasheet specifies a maximum module output power of 14 dBm in the 868/915 MHz bands. The firmware configures the RF path and clock reference for this variant. Moving to another module requires checking these details, together with pin availability and interfaces. &lt;a href="https://files.seeedstudio.com/products/114993120/Wio-E5-LE%20module%20datasheet_v1.0.pdf" rel="noopener noreferrer"&gt;Seeed documents the device characteristics&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The application uses &lt;strong&gt;C++20, Dear ImGui, GLFW and OpenGL&lt;/strong&gt;. Reception and analysis run separately from rendering: the graph refresh rate does not set the packet rate. The interface presents the latest available data, reference status and link diagnostics.&lt;/p&gt;

&lt;p&gt;The analysis core is distributed as a separate binary library, accessed through an SDK with a version 1 C ABI. This separation allows the interface and integrations to evolve against a defined contract with the algorithms. Windows and Linux builds are available.&lt;/p&gt;
&lt;h2&gt;
  
  
  Firmware and message protocol
&lt;/h2&gt;

&lt;p&gt;SLX firmware 0.1.3 has two roles: beacon and receiver. The boards are programmed through ST-LINK; the Wio USB connection exposes serial communication for reading data and sending local commands.&lt;/p&gt;

&lt;p&gt;The radio message occupies &lt;strong&gt;32 bytes&lt;/strong&gt;. It includes format identification, version, node, boot, transmission attempt sequence, transmit counters, radio profile and an application CRC. Node and boot identifiers distinguish the source and its restarts. A change of identity or profile starts a new analysis segment.&lt;/p&gt;

&lt;p&gt;The sequence advances when an attempt is prepared. The &lt;code&gt;TxDone&lt;/code&gt; counter advances when the radio confirms completion of a transmission. The payload carries the completions preceding the current attempt, so calculating delivery rate requires comparing consistent counters within the same segment. The link does not use acknowledgements or retransmissions.&lt;/p&gt;

&lt;p&gt;Communication between receiver and PC uses &lt;strong&gt;NDJSON&lt;/strong&gt;, with one JSON object per line. Records distinguish samples, device information, command responses and errors. The parser retains partial lines until the delimiter, enforces length limits and handles discontinuities. Duplicates, out-of-order messages and overflows are not treated as new valid measurements.&lt;/p&gt;

&lt;p&gt;The CRC detects accidental corruption of a message. An application that needs to identify an authorised sender also requires authentication, key management and protection against replayed packets. These requirements affect protocol format, memory usage and time on air.&lt;/p&gt;
&lt;h2&gt;
  
  
  RSSI, SNR and variation analysis
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Packet RSSI&lt;/strong&gt; is the received power indicator associated with a packet, expressed in dBm. A less negative value indicates a higher level. &lt;strong&gt;SNR&lt;/strong&gt; is the signal-to-noise ratio, expressed in dB. The software displays them separately because they describe different aspects of reception.&lt;/p&gt;

&lt;p&gt;Indoors, the signal reaches the antenna along direct and reflected paths. People, doors and objects can change their contributions. A variation can therefore appear as either an increase or a decrease in level, even while transmitter and receiver remain in the same positions.&lt;/p&gt;

&lt;p&gt;To compare the signal over time, the software builds a reference from at least &lt;strong&gt;120 seconds&lt;/strong&gt; of observation and a sufficient number of samples. It uses the median RSSI and the median absolute deviation, or MAD. The reference remains fixed until recalibration or a change that invalidates it.&lt;/p&gt;

&lt;p&gt;The filtered signal is the median of the last five accepted samples. Its departure from the reference is scaled by the reference dispersion:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;m     = median(reference RSSI)
MAD   = median(|RSSI − m|)
sigma = max(1.4826 × MAD, 0.5 dB)
delta = filtered RSSI − m
variation index = |delta| / sigma
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The index expresses how far the level has moved from its initial behaviour. The factor 1.4826 gives MAD a robust scale; it does not establish a Gaussian distribution. The 0.5 dB lower bound avoids division by zero when the initial values are constant.&lt;/p&gt;

&lt;p&gt;Entering the variation state requires an entry threshold, while returning to the stable state uses a lower threshold. Temporal persistence prevents a single sample from causing a transition. Window duration, coverage and sample count determine whether enough data is available to apply the criterion.&lt;/p&gt;

&lt;p&gt;With a packet every five seconds, the nominal sampling frequency is &lt;strong&gt;0.2 Hz&lt;/strong&gt;. An event shorter than the interval can escape sampling. The period must therefore suit the speed of the phenomenon being monitored, as well as power consumption and radio traffic.&lt;/p&gt;

&lt;p&gt;A missing packet remains missing data: replacing it with zero would distort the signal. The software distinguishes signal variation from insufficient data and loss of the link. Statistics based only on received packets also need care, since they may exclude the poorest reception conditions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Environmental monitoring
&lt;/h2&gt;

&lt;p&gt;LoRaSense can be extended by connecting &lt;strong&gt;temperature, humidity, CO₂, level or soil moisture sensors&lt;/strong&gt; to the nodes. The sensor measures the physical quantity and the node transmits its value. RSSI and SNR continue to describe the radio link and can help diagnose communication. &lt;a href="https://www.semtech.com/lora/lora-applicationss/smart-environment" rel="noopener noreferrer"&gt;Semtech presents several uses of LoRa in environmental monitoring&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Integration requires selecting the sensor, implementing its driver and defining a payload that carries value, unit and sample status. Power supply, environmental protection and calibration depend on the application. A greenhouse node has different requirements from a device used in a plant room or on industrial equipment.&lt;/p&gt;

&lt;p&gt;A second application is &lt;strong&gt;analysing radio channel disturbances&lt;/strong&gt;. With antennas and profile fixed, it is possible to study how the link changes between environmental states, such as an open or closed door. Associating a variation with an event requires a specific criterion, because different movements and objects can produce similar responses.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F52hlhcennrutqhvwc307.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F52hlhcennrutqhvwc307.webp" alt="Environmental sensor measurements and analysis of changes in the radio link" width="799" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Monitoring can use sensors of physical quantities or analysis of radio channel variations, with different interpretation criteria.&lt;br&gt;
Research into LoRa sensing includes systems such as &lt;a href="https://eprints.whiterose.ac.uk/id/eprint/149652/" rel="noopener noreferrer"&gt;WideSee, by Chen and colleagues&lt;/a&gt;, which addresses detection and localisation with dedicated hardware and processing. LoRaSense works with the indicators available for each Wio packet. Developing a recognition function requires selecting signals, geometry and criteria suited to the target event.&lt;/p&gt;

&lt;p&gt;Multiple links can provide information about different radio paths. Such a network requires transmission planning, collision management and comparable measurements. Estimating distance from RSSI is a separate problem: it needs a model calibrated for the environment and an assessment of its error.&lt;/p&gt;

&lt;h2&gt;
  
  
  Possible applications
&lt;/h2&gt;

&lt;p&gt;Applications depend on the sensors connected to the nodes and the information required. Some concern communication quality; others use LoRa to collect distributed physical measurements.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario&lt;/th&gt;
&lt;th&gt;Useful information&lt;/th&gt;
&lt;th&gt;Development and verification required&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Plant rooms and warehouses&lt;/td&gt;
&lt;td&gt;Radio quality trends after changes to shelving, obstacles or installation&lt;/td&gt;
&lt;td&gt;Before-and-after measurements, fixed antennas, multiple locations and interference diagnostics&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Greenhouses and cultivation&lt;/td&gt;
&lt;td&gt;Temperature, air humidity and soil moisture&lt;/td&gt;
&lt;td&gt;Dedicated sensors, environmental protection, calibration and power assessment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Buildings and conservation&lt;/td&gt;
&lt;td&gt;Microclimate or air quality, together with link status&lt;/td&gt;
&lt;td&gt;Appropriate sensors, comparison with reference instruments and application-specific thresholds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Doors, panels and fixed settings&lt;/td&gt;
&lt;td&gt;Radio differences between repeatable states&lt;/td&gt;
&lt;td&gt;Independent state reference, blind evaluation and control of unrelated movements&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Embedded development and production&lt;/td&gt;
&lt;td&gt;Traceability of firmware, profile, errors and response over time&lt;/td&gt;
&lt;td&gt;Defined fixtures and conditions, RF instruments for quantitative measurements and acceptance criteria&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Area disturbances across multiple links&lt;/td&gt;
&lt;td&gt;Comparison of variations along different radio paths&lt;/td&gt;
&lt;td&gt;More nodes, traffic planning, labelled datasets and validation in separate environments&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For battery-powered devices, the transmission interval must be selected together with the acquisition cycle. Slowly changing quantities may only need less frequent transmissions or a message triggered by crossing a threshold. Consumption includes the sensor, processing, radio and idle periods: the module’s sleep current alone does not describe the autonomy of the complete board.&lt;/p&gt;

&lt;p&gt;Recognising an environmental change involves detection performance, false alarms and response time. Thresholds must be assessed under conditions different from those used to tune them, including interference and changes unrelated to the phenomenon of interest.&lt;/p&gt;

&lt;h2&gt;
  
  
  Development and integration
&lt;/h2&gt;

&lt;p&gt;Separating firmware, protocol and application allows the system to be adapted to the installation. Sensors can be added, the acquisition period changed, data collected from multiple receivers, or the software connected to existing company systems.&lt;/p&gt;

&lt;p&gt;Moving to a LoRaWAN network requires integration with gateways and servers. A local application can retain the USB receiver and use the PC for analysis and supervision. The choice depends on node count, coverage, available power and infrastructure management.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Silicon LogiX develops custom embedded firmware, protocols and technical applications.&lt;/strong&gt; Measurement hardware and software are designed around the required quantities, installation conditions and system response times.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.siliconlogix.it/en/contact?area=software" rel="noopener noreferrer"&gt;Talk to us about your monitoring system&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Technical references
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.semtech.com/lora/what-is-lora" rel="noopener noreferrer"&gt;Semtech: What Is LoRa?&lt;/a&gt;, physical layer and its role in a network.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.semtech.com/uploads/technology/LoRa/lora-and-lorawan.pdf" rel="noopener noreferrer"&gt;Semtech: AN1200.86, LoRa and LoRaWAN, March 2024&lt;/a&gt;, modulation parameters and radio trade-offs.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://lora-alliance.org/about-lorawan/" rel="noopener noreferrer"&gt;LoRa Alliance: About LoRaWAN&lt;/a&gt;, network architecture.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://files.seeedstudio.com/products/114993120/Wio-E5-LE%20module%20datasheet_v1.0.pdf" rel="noopener noreferrer"&gt;Seeed Studio: Wio-E5-LE, datasheet V1.1&lt;/a&gt;, module identification, pins and RF path.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.st.com/en/microcontrollers-microprocessors/stm32wl-series.html" rel="noopener noreferrer"&gt;STMicroelectronics: STM32WL family&lt;/a&gt;, microcontroller and radio platform.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://eprints.whiterose.ac.uk/id/eprint/149652/" rel="noopener noreferrer"&gt;Chen et al.: WideSee: Towards Wide-Area Contactless Wireless Sensing, ACM SenSys 2019&lt;/a&gt;, DOI 10.1145/3356250.3360031; a research system with a different architecture from SLX LoRaSense.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.semtech.com/lora/lora-applicationss/smart-environment" rel="noopener noreferrer"&gt;Semtech: Smart Environment&lt;/a&gt;, environmental telemetry applications using measurement devices.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>lora</category>
      <category>embedded</category>
      <category>iot</category>
      <category>cpp</category>
    </item>
    <item>
      <title>SLX SteerDrive: 3D EPS simulator and verification bench</title>
      <dc:creator>Marco</dc:creator>
      <pubDate>Mon, 16 Nov 2026 12:41:50 +0000</pubDate>
      <link>https://dev.to/pezzullo/slx-steerdrive-3d-eps-simulator-and-verification-bench-1mdm</link>
      <guid>https://dev.to/pezzullo/slx-steerdrive-3d-eps-simulator-and-verification-bench-1mdm</guid>
      <description>&lt;h2&gt;
  
  
  A virtual plant for the controller
&lt;/h2&gt;

&lt;p&gt;Controller development needs controllable conditions: repeating a manoeuvre, changing a load, interrupting data and observing why assistance rises or becomes disabled. A steering animation shows movement; a software bench must also explain the relationship between input, measurement, firmware decision and plant response.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SLX SteerDrive&lt;/strong&gt; is the Windows environment developed by Silicon LogiX to simulate electrically assisted steering and verify its control. It integrates an electromechanical model, 3D scene, repeatable scenarios, telemetry and recordings. It can use the software controller or the &lt;a href="https://www.siliconlogix.it/en/solution/slx-steerdrive-stm32-firmware-eps-controller" rel="noopener noreferrer"&gt;STM32H750B-DK controller&lt;/a&gt;, which actually computes assistance while exchanging data over Ethernet or CAN FD. &lt;strong&gt;The STM32 is the control hardware; motor, steering mechanism and load remain entirely simulated on the PC.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The simulator addresses practical questions: how much assistance does a given steering-wheel torque produce? How does it change with speed? What happens near an end stop or when a sample is missing? The simulated plant makes these conditions available without rebuilding a complete mechanical test rig for each experiment.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fukmh74mezjwxejux003z.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fukmh74mezjwxejux003z.webp" alt="SteerDrive Windows application with a 3D steering bench, test controls and readings for torque, assistance, rack position and current" width="799" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Frame from the recorded version 0.4.2 session in STM32 / PC model mode. The 3D view, torque, rack position and current describe the simulated plant connected to the controller. Application labels are in Italian.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  From effort to motion
&lt;/h2&gt;

&lt;p&gt;The model has two inertias, steering wheel and pinion, coupled through an elastic, damped torsion bar. Driver effort acts on the steering wheel; electric assistance is referred to the pinion. The sensor returns the elastic component of torsion, so during transients and reversals its reading can differ from driver-applied torque.&lt;/p&gt;

&lt;p&gt;This avoids basing control on a measurement that simply copies the input command. The controller must use the sensor signal and system response. The rack converts pinion rotation into displacement; the geometric solver derives tie-rod, wheel and universal-joint poses from the same model state.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fngud9djc82j9dqaqf8mp.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fngud9djc82j9dqaqf8mp.webp" alt="Steering model with steering-wheel inertia, torsion bar and sensor, pinion inertia, equivalent motor, rack and resistant load" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The sensor measures torsion between the two inertias. The model separates controller-requested torque from the resulting electrical and mechanical response.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The load includes a speed-dependent restoring force, regularised friction and configurable resistance. End stops become progressive beyond 40 mm; the geometric domain ends at ±45 mm. These elements support analysis of assistance and reversals using estimated demonstrator parameters.&lt;/p&gt;

&lt;p&gt;Virtual speed changes the assistance map and restoring load. The model does not simulate complete lateral vehicle dynamics: tyres, variable grip, slip and yaw require a further model and calibration. The project concerns EPS, electric power steering, and does not implement ESP stability control.&lt;/p&gt;

&lt;h2&gt;
  
  
  Motor, current and limits
&lt;/h2&gt;

&lt;p&gt;The actuator is represented by an equivalent DC machine model with resistance, inductance, back EMF and current regulation. A transmission ratio refers speed and torque to the pinion, preserving power consistency between the shafts. The model exposes voltage, current and delivered assistance, separating the controller request from what the equivalent actuator can supply.&lt;/p&gt;

&lt;p&gt;In the demonstration profile, simulated supply voltage is 24 V and nominal current limit is ±25 A. Electrical saturation and current response time influence model motion. The firmware receives simulated current and can reduce its command when it is high; fault scenarios also exercise supervision paths.&lt;/p&gt;

&lt;p&gt;The model does not represent a three-phase inverter or FOC control. Current and torque cutoff at disarm is idealised; switching and magnetic-energy dissipation require a power-stage model. These boundaries define the results as control-bench tests, without suggesting validation on a real motor or vehicle.&lt;/p&gt;

&lt;h2&gt;
  
  
  Model, communication and graphics
&lt;/h2&gt;

&lt;p&gt;The software separates model advancement, controller communication and rendering. Mechanics uses a fixed &lt;strong&gt;1 ms&lt;/strong&gt; step with implicit backward Euler integration; the PC worker advances ten steps per 10 ms update. The controller updates assistance at 100 Hz. Graphics frame rate does not determine the physics step.&lt;/p&gt;

&lt;p&gt;The renderer reads a state snapshot and updates the scene and instruments. Communication checks that each command belongs to a recent sample and the current session. The model does not keep accepting the last command indefinitely when updates stop.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh7kr65dcle8j9jhs14bg.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh7kr65dcle8j9jhs14bg.webp" alt="Software architecture with a fixed-step model, protocol adapter towards the controller, graphics and telemetry snapshots, and recordings for analysis" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The model retains its numerical step. The MCU executes control and graphics presents state; Windows and networking remain part of the bench conditions.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A deterministic numerical step and real-time execution are different properties. Windows does not guarantee deterministic scheduling, so response times and cycles must be measured in the actual environment. SteerDrive is a bench with a hardware controller in the loop and a software plant, useful for functional verification and integration; it is not presented as a qualified hard real-time HIL system.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reading the steering mechanism in 3D
&lt;/h2&gt;

&lt;p&gt;The glTF/GLB scene makes the steering wheel, column, sensor, transmission, rack and wheels recognisable. Orbit, zoom and inspection follow the mechanical path. Live poses are calculated from model state; the renderer starts from neutral geometry to prevent accumulated transforms.&lt;/p&gt;

&lt;p&gt;Tie-rod closure and universal-joint ratio belong to the verified kinematics. The view does not add decorative suspension deformation to suggest physics that is absent. Force and torque indicators relate movement to charted quantities.&lt;/p&gt;

&lt;p&gt;Presentation mode includes six asset clips for exploring the project. Clips are separate from simulation and are not control evidence. This distinction keeps both bench architecture and live-session results readable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scenarios and manual commands
&lt;/h2&gt;

&lt;p&gt;Eleven deterministic scenarios exercise the system with repeatable inputs. Operators can choose a test, set speed and load, compare Reference and Comfort regulation and observe changes and reversals. Repeating the same input helps relate a response difference to a regulation change.&lt;/p&gt;

&lt;p&gt;Manual control includes torque, steering-wheel position and an axis reference. In Steering wheel mode a virtual driver follows the requested angle with limited torque. In Axis mode the controller regulates rack position while driver torque is zero. The model maintains one physical relationship between action and movement, without imposing both position and torque as independent mechanical constraints.&lt;/p&gt;

&lt;p&gt;Fault scenarios introduce bench-declared conditions such as sensor anomalies or loss of the equivalent actuator. They exercise state, alarms, shutdown and reset. They do not constitute validated diagnostics for a physical sensor; real-device coverage depends on its interfaces and analysed failure modes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connecting firmware to the model
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;SLX FD 1&lt;/strong&gt; protocol defines session identity, sequence, sample, transaction and values with explicit units. REQUEST → SENSOR → COMMAND relates the controller reference to the measurement and resulting command. HELLO/READY establishes peer availability; ARM and ACK confirm start, stop and reset actions.&lt;/p&gt;

&lt;p&gt;On CAN FD, the payload is 64 bytes, with 11-bit identifiers and BRS at 500 kbit/s nominal and 2 Mbit/s data. The WinUSB/gs_usb backend handles the SH-C31G adapter; USB transmit-echo metadata is consumed locally rather than being interpreted as data received from the controller. PEAK PCAN is available as an alternative backend.&lt;/p&gt;

&lt;p&gt;On Ethernet, the same application frame is encapsulated in an 80-byte UDP datagram. The decoder applies CRC, bounds, freshness and correlation checks on both paths. The firmware article describes &lt;a href="https://www.siliconlogix.it/en/solution/slx-steerdrive-stm32-firmware-eps-controller#protocollo" rel="noopener noreferrer"&gt;frame format and IDs&lt;/a&gt;. CAN FD is a standard bus; SLX IDs and quantities are defined for this bench and are not automatically compatible with vehicle messages.&lt;/p&gt;

&lt;p&gt;Ending a CAN session also requires closing the dialogue: the PC sends DETACH, waits for controller confirmation and releases the adapter. A subsequent connection creates a new session. Restored communication alone does not re-enable assistance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Telemetry and diagnostics
&lt;/h2&gt;

&lt;p&gt;Charts show driver torque, torsion sensor and assistance on a common time axis, alongside rack position, current and virtual speed. This helps identify saturated assistance, a reversal, an end stop or a request that does not produce the expected motion.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkucmhlee2zfqomwhg1xq.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkucmhlee2zfqomwhg1xq.webp" alt="SteerDrive telemetry with separate torque, rack-travel, motor-current and virtual-speed charts" width="800" height="442"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Actual application capture in software mode. Signals belong to the same simulated state; current retains the sign defined by the model's transmission ratio.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The Controller page distinguishes link availability from control enablement. Session, state, responses and counters help localise a problem: a detected USB adapter, an initialised CAN controller and valid application exchange are successive conditions to observe separately.&lt;/p&gt;

&lt;p&gt;When a recent command is missing, the bench zeroes assistance and latches the fault. A new connection or duplicate packet does not erase the event. Explicit reset returns to the disarmed condition, from which the operator can choose to start again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recordings, comparison and replay
&lt;/h2&gt;

&lt;p&gt;A session can be saved as a structured JSON recording, CSV time series, JSON report and HTML report with charts. Profile version, configuration and core identification accompany the results, so a reviewer can identify the conditions and version that produced the samples.&lt;/p&gt;

&lt;p&gt;Replay displays recorded samples without rerunning the controller or enabling assistance. It supports reviewing a transient or discussing a fault. Exact sample reproduction is verified separately from running a new simulation.&lt;/p&gt;

&lt;p&gt;Comparison applies the same inputs to the selected regulation profiles. Deterministic local comparison evaluates their responses; extending a conclusion to the physical controller requires the corresponding configuration and transport test, including timing.&lt;/p&gt;

&lt;p&gt;One example is the &lt;strong&gt;Slow manoeuvre&lt;/strong&gt; scenario, run for 10 s with version 0.4.2: the same input and model, with 10,000 steps per regulation profile. The following comparison is &lt;strong&gt;entirely software-based&lt;/strong&gt;; currents, torques and displacements are model results with estimated parameters.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Simulated quantity&lt;/th&gt;
&lt;th&gt;Reference&lt;/th&gt;
&lt;th&gt;Comfort&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Peak assistance&lt;/td&gt;
&lt;td&gt;8.15 Nm&lt;/td&gt;
&lt;td&gt;3.83 Nm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Equivalent motor peak current&lt;/td&gt;
&lt;td&gt;4.94 A&lt;/td&gt;
&lt;td&gt;2.32 A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RMS current over 10 s&lt;/td&gt;
&lt;td&gt;3.48 A&lt;/td&gt;
&lt;td&gt;1.63 A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Peak rack displacement&lt;/td&gt;
&lt;td&gt;34.34 mm&lt;/td&gt;
&lt;td&gt;18.38 mm&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Comfort produces less assistance for the same driver input. Lower current accompanies different rack displacement; the quantities must be read together to assess the profile's behaviour. These are two responses to the same input, without treating an isolated current value as a measure of efficiency or overall quality.&lt;/p&gt;

&lt;p&gt;The report associates results with each controller's configuration and the model version. A comparison can be reproduced after a change, separating a regulation change from a change in the simulated plant.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs8uxk7ik89dtepsko8zc.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs8uxk7ik89dtepsko8zc.webp" alt="SteerDrive Recordings and replay page with recorded signals and controls for saving a session or opening a replay" width="800" height="442"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Recordings preserve test evidence. Viewing a recording remains separate from commanding the plant.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How the software is verified
&lt;/h2&gt;

&lt;p&gt;Verification covers contracts, numerics and operator workflows. Seven CTest groups check ABI, limits, transmission power, scenarios, command freshness, faults and replay. GUI checks cover nine pages, six clips and four About sections at three window sizes, plus actual pointer actions for start, pause, mode selection and recovery.&lt;/p&gt;

&lt;p&gt;Kinematics was compared against an independent reference over &lt;strong&gt;1,001 poses&lt;/strong&gt;. For dynamics, two passive tests compare the implicit step with independent integration of the continuous equations: maximum rack deviation is below &lt;strong&gt;0.004 mm&lt;/strong&gt;. These are numerical-consistency checks, not accuracy measurements against a real steering mechanism.&lt;/p&gt;

&lt;p&gt;Version 0.4.2 STM32–simulator verification recorded 5,959 valid COMMAND messages over CAN FD in 60 s, with a maximum observed response of 22.672 ms; Ethernet recorded 5,970 messages and 21.905 ms. On both links, an intentional 100 ms data interruption verified shutdown and subsequent explicit recovery. &lt;strong&gt;These measurements concern data exchange with the PC model, with motor and mechanics simulated.&lt;/strong&gt; They describe the sessions performed and do not guarantee limits for every PC or network.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tools for automotive and automation
&lt;/h2&gt;

&lt;p&gt;The software uses a C++20 architecture with a version 1 C ABI SDK. Proprietary model and solver are encapsulated in the core, separate from interface, contracts and integration tools. This allows a demonstrator to be distributed without exposing model sources or STM32 firmware, while keeping versions and responsibilities identifiable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Silicon LogiX develops simulators, test tools and technical applications around the client's device.&lt;/strong&gt; SteerDrive's approach applies to ECU benches, axis controllers, electromechanical actuators and automation systems: define a repeatable plant, connect firmware, make signals observable and preserve test outcomes.&lt;/p&gt;

&lt;p&gt;In automotive projects this can support embedded-function prototyping, integration and verification. Matching a vehicle requires manufacturer data, identified parameters and a measurement campaign. The demonstrator uses estimated parameters and does not claim ISO 26262/ASIL qualifications or AUTOSAR compliance. Its value lies in discussing behaviour using evidence and preparing product-specific verification.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.siliconlogix.it/en/contact?area=software" rel="noopener noreferrer"&gt;Discuss your simulator or test tool&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Technical references
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.mathworks.com/help/simscape-electrical/ug/electric-power-assisted-steering.html" rel="noopener noreferrer"&gt;MathWorks: Electric Power Assisted Steering example&lt;/a&gt;, a reference for the general topology. The SteerDrive model and parameters belong to the SLX project.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.khronos.org/gltf/" rel="noopener noreferrer"&gt;Khronos: glTF format&lt;/a&gt;; &lt;a href="https://www.khronos.org/opengl/" rel="noopener noreferrer"&gt;OpenGL&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/ocornut/imgui" rel="noopener noreferrer"&gt;Dear ImGui&lt;/a&gt;; &lt;a href="https://github.com/epezent/implot" rel="noopener noreferrer"&gt;ImPlot&lt;/a&gt;; &lt;a href="https://www.glfw.org/" rel="noopener noreferrer"&gt;GLFW&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.bosch-semiconductors.com/products/ip-modules/can-protocols/" rel="noopener noreferrer"&gt;Bosch: CAN FD&lt;/a&gt;; &lt;a href="https://www.rfc-editor.org/info/rfc768/" rel="noopener noreferrer"&gt;IETF: UDP, RFC 768&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.siliconlogix.it/en/solution/slx-steerdrive-stm32-firmware-eps-controller" rel="noopener noreferrer"&gt;SLX SteerDrive: STM32 firmware, HMI and EPS controller protocols&lt;/a&gt;, including verification of the board–simulator link.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Functions and results refer to SteerDrive 0.4.2 and verification performed on 12 November 2026.&lt;/p&gt;




&lt;p&gt;Originally published on &lt;a href="https://www.siliconlogix.it/en/solution/slx-steerdrive-3d-eps-simulator-verification-bench" rel="noopener noreferrer"&gt;Silicon LogiX&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>simulation</category>
      <category>opengl</category>
      <category>showdev</category>
    </item>
    <item>
      <title>SLX SteerDrive: STM32 firmware for an EPS controller</title>
      <dc:creator>Marco</dc:creator>
      <pubDate>Mon, 16 Nov 2026 12:41:48 +0000</pubDate>
      <link>https://dev.to/pezzullo/slx-steerdrive-stm32-firmware-for-an-eps-controller-3i52</link>
      <guid>https://dev.to/pezzullo/slx-steerdrive-stm32-firmware-for-an-eps-controller-3i52</guid>
      <description>&lt;h2&gt;
  
  
  The STM32 at the centre of the bench
&lt;/h2&gt;

&lt;p&gt;A controller demonstrates its value when it receives measurements, decides which command to apply and handles inconsistent data or a lost connection. The display helps the operator observe and manage that work; the firmware remains responsible for control.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SLX SteerDrive&lt;/strong&gt; is an electric power steering controller development bench built by Silicon LogiX. The &lt;strong&gt;STM32H750B-DK&lt;/strong&gt; runs EPS control and manual commands, provides the touch interface and communicates with the simulator over CAN FD or Ethernet. &lt;strong&gt;The motor, steering mechanism and load are simulated on the PC; no physical motor is connected to the board.&lt;/strong&gt; The simulator returns the signals required to close the loop.&lt;/p&gt;

&lt;p&gt;The path is explicit: the operator sets a reference on the Discovery, the firmware receives a model sample, calculates assistance and sends a command. The simulator updates the motion and produces measurements for the next cycle. &lt;a href="https://www.siliconlogix.it/en/solution/slx-steerdrive-3d-eps-simulator-verification-bench" rel="noopener noreferrer"&gt;The software article&lt;/a&gt; examines the model, 3D scene and analysis tools.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9f46mw6wk2ow7ftxuxy3.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9f46mw6wk2ow7ftxuxy3.webp" alt="STM32H750B-DK running the SteerDrive EPS HMI, with the DSD TECH SH-C31G USB CAN FD adapter and bus wiring visible" width="800" height="652"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Frame from the recorded demonstration: the Discovery runs the EPS controller and displays CAN FD communication with PC-provided sensors. The SH-C31G adapter and bus wiring are visible above the display. Motor, mechanics and current are simulated on the PC.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1bbf1hxcu6d38f6rnjdk.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1bbf1hxcu6d38f6rnjdk.webp" alt="Closed loop with the STM32 controller: simulated measurements from the PC, EPS control on the board and an assistance command back to the model" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Controller computation and communication links are real. The steering mechanism, load and motor run as PC models; this defines the scope of the tests.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What an EPS controller does
&lt;/h2&gt;

&lt;p&gt;EPS stands for &lt;em&gt;Electric Power Steering&lt;/em&gt;: an electric motor adds assistance to the driver's effort. Steering-column torque and vehicle speed help determine the requested assistance. On the SteerDrive bench, a virtual torsion bar connects the steering wheel and pinion; its deformation produces the sensor signal. Driver torque, measured torque and assistance are separate quantities that can also be observed during a reversal.&lt;/p&gt;

&lt;p&gt;The firmware filters the measurement, applies a dead zone and uses a speed-dependent assistance map. Torque and slew-rate limits control transitions between requests. Near an end stop, assistance is reduced in the direction that pushes towards the limit while allowing the mechanism to return. Current received from the model contributes to assistance derating and sustained-overcurrent handling.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EPS and ESP serve different functions.&lt;/strong&gt; ESP, electronic stability control, compares vehicle motion with the requested direction and can act on braking and powertrain torque. SteerDrive develops steering assistance control; it does not implement ABS, yaw control or selective braking. Bosch's descriptions of &lt;a href="https://www.bosch-mobility.com/en/solutions/steering-systems/electric-power-steering-with-single-pinion-servo-unit/" rel="noopener noreferrer"&gt;electric power steering&lt;/a&gt; and &lt;a href="https://www.bosch-mobility.com/en/solutions/braking-systems/electronic-stability-program/" rel="noopener noreferrer"&gt;vehicle stability&lt;/a&gt; cover the two areas.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hardware and firmware boot
&lt;/h2&gt;

&lt;p&gt;The Discovery integrates the Cortex-M7 microcontroller, kit display, touch input, external memory, Ethernet and CAN FD interface. The firmware uses FDCAN1 and the board's transceiver: the digital controller prepares frames, while the transceiver transfers them to the differential CAN_H/CAN_L pair. The hardware reference is &lt;a href="https://www.st.com/resource/en/user_manual/um2488-discovery-kits-with-stm32h745xi-and-stm32h750xb-microcontrollers-stmicroelectronics.pdf" rel="noopener noreferrer"&gt;ST user manual UM2488&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The HMI application exceeds the STM32H750's 128 KiB of internal Flash. A small internal bootstrap therefore starts the application in &lt;strong&gt;QSPI memory using execute-in-place, XIP&lt;/strong&gt;, mapped at &lt;code&gt;0x90000000&lt;/code&gt;. Application and bootstrap are separate images; after programming, QSPI readback was compared with the expected binary.&lt;/p&gt;

&lt;p&gt;This includes integrating peripherals and their constraints: clocks, interrupts, shared memory and display updates must coexist with control. The Discovery is the development platform. A product board requires its own electrical integration, power supply and application-specific environmental verification.&lt;/p&gt;

&lt;h2&gt;
  
  
  The control cycle
&lt;/h2&gt;

&lt;p&gt;The control task has higher priority than communication and graphics and runs every &lt;strong&gt;10 ms&lt;/strong&gt;. Networking handles message exchange and validation; the HMI receives coherent state snapshots and submits operator requests. Bounded queues and snapshots separate the paths so that drawing a page does not add a wait to assistance computation. This follows the principles of &lt;a href="https://www.freertos.org/Documentation/02-Kernel/02-Kernel-features/01-Tasks-and-co-routines/04-Task-scheduling" rel="noopener noreferrer"&gt;FreeRTOS priority-based scheduling&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;At each update, the firmware checks session, sample, transaction and data age, evaluates bench state and calculates the permitted command. The response retains its correlation with the sample used. The PC can identify which measurement produced an assistance request even when newer packets have already arrived.&lt;/p&gt;

&lt;p&gt;Control period, execution time on the MCU and end-to-end communication response time are different measurements. In the tests below, the maximum observed controller computation time was &lt;strong&gt;260 µs&lt;/strong&gt;, or &lt;strong&gt;2.6% of the 10 ms period&lt;/strong&gt;. This ratio describes computation duration relative to its time window; graphics, networking, interrupts and other tasks contribute separately to total MCU load. Link response time also includes scheduling, transport and PC-side work. The observed maximum is not a formal worst-case execution-time proof.&lt;/p&gt;

&lt;p&gt;The 100 Hz cycle covers assistance, position and bench supervision. Current returned by the simulator describes the actuator model; this firmware does not perform three-phase motor commutation or run an FOC loop. Separating control levels makes the controller's timing and responsibilities clear.&lt;/p&gt;

&lt;h2&gt;
  
  
  Manual commands and HMI
&lt;/h2&gt;

&lt;p&gt;The LVGL HMI operates within the display's 480 × 272 pixels. The top bar shows EPS state and transport; Bench, Commands, Signals and System keep start, stop and reset recognisable. System pages expose connections, alarms, information and parameters. Charts distinguish torque, rack position and current.&lt;/p&gt;

&lt;p&gt;The controller can use the &lt;strong&gt;PC Profile&lt;/strong&gt; or receive a manual reference from the touch display. &lt;strong&gt;Torque&lt;/strong&gt; sets virtual driver effort, limited to ±8 Nm. &lt;strong&gt;Steering wheel&lt;/strong&gt; uses a virtual driver to follow an angular reference with limited torque. In &lt;strong&gt;Axis&lt;/strong&gt; mode, the position controller runs on the STM32 and uses rack feedback within the ±45 mm domain.&lt;/p&gt;

&lt;p&gt;Axis mode also demonstrates a control function relevant to automation: the controller generates the action needed to follow a position, while the PC supplies a plant with inertia, friction and load. The reference is ramped at 25 mm/s; requested assistance is limited to ±32 Nm with a maximum slew rate of 80 Nm/s. Virtual driver torque is zero in this mode.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsjoqpnakrl2foisfp2x0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsjoqpnakrl2foisfp2x0.webp" alt="SteerDrive HMI: framebuffer read from the physical display during CAN FD communication, native manual-command and signal-chart previews" width="800" height="615"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Top left: framebuffer read from the Discovery during CAN FD testing. The other panels show Commands and Signals from the same HMI in the test environment, plus operator functions. Actual application labels remain in Italian.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Ethernet/CAN FD selection is available while the bench is stopped. The highlighted button and top-bar label reflect the same choice. Tapping the already-selected transport preserves the session; changing transport requires the peer to become available again and an explicit start.&lt;/p&gt;

&lt;h2&gt;
  
  
  CAN FD: bus and bit timing
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.bosch-semiconductors.com/products/ip-modules/can-protocols/" rel="noopener noreferrer"&gt;CAN FD&lt;/a&gt; extends the Classical CAN data field to 64 bytes and, with BRS, allows a higher data-phase bit rate. Arbitration retains the nominal bit rate; the data phase can use different timing. SteerDrive uses &lt;strong&gt;500 kbit/s nominal and 2 Mbit/s data&lt;/strong&gt;, standard 11-bit identifiers and a 64-byte payload.&lt;/p&gt;

&lt;p&gt;On this bench, CAN_H connects to CN11 pin 1 and CAN_L to CN11 pin 2; a third wire connects the ground references. Both ends have 120 Ω termination: JP7 on the Discovery and termination on the isolated DSD TECH SH-C31G adapter. The link was verified with wires shorter than 30 cm. Pin assignments and jumpers must be checked against the actual board revision and its schematic.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frkv8ua37oddzphbznew2.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frkv8ua37oddzphbznew2.webp" alt="CAN FD connection between Discovery and SH-C31G showing transceivers, CAN_H, CAN_L, ground reference and 120-ohm termination at both ends" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The transceiver connects the controller's digital signals to the differential line. The diagram represents the tested bench connection; the PC reaches the bus through the isolated USB adapter.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Timing was also verified against internal clocks. The 200 MHz PLL1Q source is divided by two in the CCU, giving a &lt;strong&gt;100 MHz CAN clock&lt;/strong&gt; within the project's APB1 clock limit. A prescaler of 5 and 40 time quanta per bit produce 500 kbit/s; the same prescaler with 10 quanta produces 2 Mbit/s. Nominal segments are 34/5 and data segments 7/2, in addition to the synchronisation quantum. Transmitter delay compensation, TDC, is disabled in the tested profile. Other wiring or bit rates require their own verification.&lt;/p&gt;

&lt;p&gt;A compatible adapter requires both a PC driver and firmware that advertises and supports CAN FD and its timing limits. Discovery–PC communication was verified using &lt;strong&gt;WinUSB/gs_usb&lt;/strong&gt; and an SH-C31G with official DSD TECH v1.5 firmware, while the electromechanical model remained in the simulator. PEAK PCAN is a separate software backend.&lt;/p&gt;

&lt;h2&gt;
  
  
  The SLX FD 1 protocol
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The bus is standard; identifiers and signal meanings belong to the application.&lt;/strong&gt; A CAN ID is not a universal code for a car's steering controller. SteerDrive uses the SLX FD 1 contract, with a DBC describing fields and units. Integration with a manufacturer's ECU or vehicle network requires that vehicle's contract. OBD, UDS, J1939 and CANopen are separate application protocols and are not implemented by this bench.&lt;/p&gt;

&lt;p&gt;HELLO and READY open the session. The controller emits REQUEST with mode and reference; the PC returns SENSOR, and the STM32 replies with COMMAND. ARM handles start, stop and reset; CONFIG selects the regulation while inactive; STATUS and ACK expose state and confirmations. ARM and ACK use different IDs in the two directions, keeping one producer per arbitration ID.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Service&lt;/th&gt;
&lt;th&gt;Hexadecimal ID&lt;/th&gt;
&lt;th&gt;Direction and purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;HELLO / READY&lt;/td&gt;
&lt;td&gt;0x501 / 0x502&lt;/td&gt;
&lt;td&gt;PC → ECU / ECU → PC: opening and capabilities&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;REQUEST&lt;/td&gt;
&lt;td&gt;0x503&lt;/td&gt;
&lt;td&gt;ECU → PC: reference and requested conditions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SENSOR&lt;/td&gt;
&lt;td&gt;0x504&lt;/td&gt;
&lt;td&gt;PC → ECU: torque, speed, position, current&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;COMMAND&lt;/td&gt;
&lt;td&gt;0x505&lt;/td&gt;
&lt;td&gt;ECU → PC: assistance, state and diagnostics&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ARM&lt;/td&gt;
&lt;td&gt;0x506 / 0x516&lt;/td&gt;
&lt;td&gt;ECU → PC / PC → ECU: operator request and command&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;STATUS / CONFIG&lt;/td&gt;
&lt;td&gt;0x507 / 0x508&lt;/td&gt;
&lt;td&gt;ECU → PC: state / PC → ECU: configuration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ACK&lt;/td&gt;
&lt;td&gt;0x509 / 0x519&lt;/td&gt;
&lt;td&gt;ECU → PC / PC → ECU: transaction confirmation&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fec0wfigcdnbpchjaltty.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fec0wfigcdnbpchjaltty.webp" alt="The 64-byte SLX FD 1 payload: session identity, correlation, local timestamp, four values and application CRC" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The application contract is shared by both transports. Its CRC and identity checks complement the link's own checks.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Encoding is little-endian. Version, type and flags occupy the first four bytes, followed by session, run, sequence, transaction, sample, boot identity and source age. The 64-bit local timestamp is diagnostic. Four signed 32-bit integers carry service-specific values, followed by detail and an IEEE CRC-32 over the first 60 bytes. Quantities use explicit integer scales such as mNm, µm and mA.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same contract over Ethernet
&lt;/h2&gt;

&lt;p&gt;The Ethernet path encapsulates the same application frame in an &lt;strong&gt;80-byte UDP datagram&lt;/strong&gt;: a 16-byte header with SLXD magic, version, flags, length and ID, followed by the 64-byte SLX FD 1 payload. The PC uses port 48050 and the controller port 48051. Bench networking uses DHCP with an AutoIP fallback.&lt;/p&gt;

&lt;p&gt;UDP preserves message boundaries but does not guarantee delivery or ordering; application behaviour must account for this, as described by &lt;a href="https://www.rfc-editor.org/info/rfc768/" rel="noopener noreferrer"&gt;RFC 768&lt;/a&gt;. SteerDrive therefore checks freshness, sequence and session membership over both transports. Reusing the contract allows links to be compared without changing the meaning of measurements.&lt;/p&gt;

&lt;p&gt;This path carries control data over conventional Ethernet. It does not implement DoIP, TSN or an Automotive Ethernet stack, and does not reproduce electrical CAN arbitration on the Ethernet cable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Faults, shutdown and reconnection
&lt;/h2&gt;

&lt;p&gt;A valid but old command is unusable. The controller checks declared age and locally measured transaction duration: a 30 ms request deadline, 40 ms maximum data age and 60 ms receive timeout. The PC imposes a 50 ms command-freshness limit relative to its own sample. It does not subtract timestamps from different clocks; duplicates and packets from an old session do not renew the deadline.&lt;/p&gt;

&lt;p&gt;Missing data, inconsistent sessions, CAN I/O errors, bus-off or sustained overcurrent place the bench in its defined fault state and zero the assistance request. The fault remains latched: reset is explicit and is separate from start. In the model, cutting current and torque is idealised; a real power stage requires its own shutdown chain and energy-dissipation path.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcbs8flae7p6gfc2kzij2.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcbs8flae7p6gfc2kzij2.webp" alt="Controller INIT, READY, ACTIVE and FAULT states with explicit start, stop, latched faults and disarmed recovery" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Link availability and assistance enablement are separate decisions. Restored communication does not restart the bench.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Orderly CAN closure has its own transaction. The PC requests stop with the DETACH flag, waits for the correlated ACK and then closes the USB adapter. The controller zeroes assistance and stops the session's periodic traffic. Reconnection requires a fresh opening exchange and a new start, so the node does not continue transmitting to a peer that has already disconnected.&lt;/p&gt;

&lt;p&gt;The CRC and identifiers protect data consistency within the bench, without providing cryptographic authentication. This version operates on a trusted laboratory network; a connected product requires dedicated cybersecurity and update-protection requirements.&lt;/p&gt;

&lt;h2&gt;
  
  
  STM32–simulator verification
&lt;/h2&gt;

&lt;p&gt;Firmware &lt;strong&gt;0.4.2&lt;/strong&gt; was programmed and verified in QSPI. LCD, touch and transport selection were checked on the board, including consistent button and top-bar updates. &lt;strong&gt;The measurements from 12 November 2026 concern data exchange between the Discovery and PC software, with the motor, steering mechanism and load simulated.&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Link verification&lt;/th&gt;
&lt;th&gt;Board–PC CAN FD&lt;/th&gt;
&lt;th&gt;Ethernet / UDP&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Session duration&lt;/td&gt;
&lt;td&gt;60 s&lt;/td&gt;
&lt;td&gt;60 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Valid COMMAND messages&lt;/td&gt;
&lt;td&gt;5,959&lt;/td&gt;
&lt;td&gt;5,970&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Maximum observed link response&lt;/td&gt;
&lt;td&gt;22.672 ms&lt;/td&gt;
&lt;td&gt;21.905 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;100 ms data interruption&lt;/td&gt;
&lt;td&gt;Shutdown and explicit recovery passed&lt;/td&gt;
&lt;td&gt;Shutdown and explicit recovery passed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Missed MCU cycles&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For the final CAN profile, hardware counters reported zero lost RX frames, rejected TX frames, bus-off events and HAL errors. Orderly closure and a new connection without restarting the Discovery passed. The sessions include intentional data loss; message counts do not represent maximum throughput or a latency guarantee under every condition.&lt;/p&gt;

&lt;p&gt;The message count documents exchange over the session. State transitions complete the interpretation: a restored link must leave the controller in a recognisable condition and let the operator decide when to start.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Exercised condition&lt;/th&gt;
&lt;th&gt;Verified behaviour&lt;/th&gt;
&lt;th&gt;Integration significance&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;100 ms data interruption&lt;/td&gt;
&lt;td&gt;Assistance disabled and fault latched&lt;/td&gt;
&lt;td&gt;The model stops using an expired command&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Explicit reset&lt;/td&gt;
&lt;td&gt;Return to the disarmed state&lt;/td&gt;
&lt;td&gt;Link recovery remains separate from start&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CAN session closure&lt;/td&gt;
&lt;td&gt;Stop, correlated ACK and adapter release&lt;/td&gt;
&lt;td&gt;The controller completes the exchange before USB closure&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New CAN connection&lt;/td&gt;
&lt;td&gt;Session reopened without restarting the Discovery&lt;/td&gt;
&lt;td&gt;The connection cycle can be repeated while the board remains operational&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The 100 ms interruption is the stimulus applied to communication; the results describe observed states and recovery. Response measurements always concern STM32 and simulator, with motor and mechanics modelled on the PC.&lt;/p&gt;

&lt;h2&gt;
  
  
  Firmware for automotive and automation
&lt;/h2&gt;

&lt;p&gt;SteerDrive documents skills applicable to device development: STM32 porting, external-memory boot, RTOS tasks, torque and position control, touch HMI, CAN FD, Ethernet and diagnostics. The board has a verifiable role in the control loop, with observable responsibilities and data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Silicon LogiX can support automation companies and automotive teams with firmware, service interfaces and verification benches.&lt;/strong&gt; From an axis controller to an ECU verification tool, development starts with signals, actuators, response times, protocols and required fault behaviour. The simulator exercises these decisions before integration with the plant.&lt;/p&gt;

&lt;p&gt;An automotive product requires project-specific OEM requirements, suitable hardware, calibration, electromagnetic compatibility, functional safety and validation processes. SteerDrive does not claim &lt;a href="https://www.iso.org/publication/PUB200262.html" rel="noopener noreferrer"&gt;ISO 26262&lt;/a&gt; compliance, an ASIL rating or an &lt;a href="https://www.autosar.org/standards/classic-platform" rel="noopener noreferrer"&gt;AUTOSAR&lt;/a&gt; implementation. The tests presented make the completed work and its extension towards a client's product assessable.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.siliconlogix.it/en/contact?area=embedded" rel="noopener noreferrer"&gt;Discuss your firmware and verification bench&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Technical references
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.st.com/en/evaluation-tools/stm32h750b-dk.html" rel="noopener noreferrer"&gt;STMicroelectronics: STM32H750B-DK&lt;/a&gt; and &lt;a href="https://www.st.com/resource/en/user_manual/um2488-discovery-kits-with-stm32h745xi-and-stm32h750xb-microcontrollers-stmicroelectronics.pdf" rel="noopener noreferrer"&gt;UM2488 user manual&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.bosch-semiconductors.com/products/ip-modules/can-protocols/" rel="noopener noreferrer"&gt;Bosch: CAN and CAN FD protocols&lt;/a&gt;; &lt;a href="https://www.bosch-semiconductors.com/media/ip_modules/pdf_2/m_can/mcan_users_manual_v331.pdf" rel="noopener noreferrer"&gt;M_CAN User's Manual&lt;/a&gt; for bit timing and BRS.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.freertos.org/Documentation/02-Kernel/02-Kernel-features/01-Tasks-and-co-routines/04-Task-scheduling" rel="noopener noreferrer"&gt;FreeRTOS: task scheduling&lt;/a&gt;; &lt;a href="https://docs.lvgl.io/9.3/" rel="noopener noreferrer"&gt;LVGL 9.3&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.rfc-editor.org/info/rfc768/" rel="noopener noreferrer"&gt;IETF: RFC 768, User Datagram Protocol&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.bosch-mobility.com/en/solutions/steering-systems/electric-power-steering-with-single-pinion-servo-unit/" rel="noopener noreferrer"&gt;Bosch Mobility: EPS&lt;/a&gt; and &lt;a href="https://www.bosch-mobility.com/en/solutions/braking-systems/electronic-stability-program/" rel="noopener noreferrer"&gt;ESP&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.iso.org/publication/PUB200262.html" rel="noopener noreferrer"&gt;ISO: road vehicle functional safety, series 26262&lt;/a&gt;; &lt;a href="https://www.autosar.org/standards/classic-platform" rel="noopener noreferrer"&gt;AUTOSAR Classic Platform&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;SteerDrive specifications and results refer to version 0.4.2. The cover shows the native HMI in the test environment; the HMI figure distinguishes the board framebuffer from previews.&lt;/p&gt;




&lt;p&gt;Originally published on &lt;a href="https://www.siliconlogix.it/en/solution/slx-steerdrive-stm32-firmware-eps-controller" rel="noopener noreferrer"&gt;Silicon LogiX&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>embedded</category>
      <category>stm32</category>
      <category>canbus</category>
      <category>showdev</category>
    </item>
    <item>
      <title>STM32H7P: motor control and artificial intelligence on one microcontroller</title>
      <dc:creator>Marco</dc:creator>
      <pubDate>Mon, 16 Nov 2026 09:48:16 +0000</pubDate>
      <link>https://dev.to/pezzullo/stm32h7p-motor-control-and-artificial-intelligence-on-one-microcontroller-46fg</link>
      <guid>https://dev.to/pezzullo/stm32h7p-motor-control-and-artificial-intelligence-on-one-microcontroller-46fg</guid>
      <description>&lt;p&gt;A motor drive must regulate torque and speed and respond to changing loads. On the same device, its manufacturer would like to recognise unusual vibration or an electrical current pattern that changes over time. These requirements increasingly coexist: &lt;strong&gt;control the machine and understand how it is operating&lt;/strong&gt;, while keeping firmware timing predictable.&lt;/p&gt;

&lt;p&gt;With the new &lt;strong&gt;STM32H7P&lt;/strong&gt; family, announced on &lt;strong&gt;4 November 2026&lt;/strong&gt;, STMicroelectronics combines a processor with two accelerators for signals and artificial intelligence. For industrial electronics developers, the question is how to use them while keeping control timing predictable: which tasks to assign to each block, what data to collect and what timing to check on a prototype.&lt;/p&gt;

&lt;h2&gt;
  
  
  STM32H7P: what changes in the architecture
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://newsroom.st.com/media-center/press-item.html/stmicroelectronics-stm32h7p-mcus-embed-digital-signal-processing-edge-ai-and-real-time-control-for-demanding-industrial-applications-n4798.html" rel="noopener noreferrer"&gt;ST announcement&lt;/a&gt; introduces a family targeting motor control, power conversion and machine condition monitoring. The &lt;a href="https://www.st.com/en/microcontrollers-microprocessors/stm32h7p4-p5.html" rel="noopener noreferrer"&gt;STM32H7P4/P5 page&lt;/a&gt; summarises its main blocks. Frequencies, capacities and performance figures in the table are manufacturer claims.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Main blocks and their role in the design&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Resource&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;th&gt;What the project must verify&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cortex-M7 up to 520 MHz&lt;/td&gt;
&lt;td&gt;Executes firmware&lt;/td&gt;
&lt;td&gt;Deadlines, priorities and remaining CPU load.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HSP&lt;/td&gt;
&lt;td&gt;Accelerates mathematics and signal processing&lt;/td&gt;
&lt;td&gt;Available functions and transfer overhead.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Neural-ART NPU up to 85 GOPS&lt;/td&gt;
&lt;td&gt;Accelerates AI inference&lt;/td&gt;
&lt;td&gt;Model compatibility, memory and latency.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Flash up to 2 MB&lt;/td&gt;
&lt;td&gt;Stores code and non-volatile data&lt;/td&gt;
&lt;td&gt;Space for firmware, model and updates.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;HSP&lt;/strong&gt; means &lt;em&gt;Hardware Signal Processor&lt;/em&gt;; &lt;strong&gt;NPU&lt;/strong&gt; means &lt;em&gt;Neural Processing Unit&lt;/em&gt;. The first resource concerns signal processing, the second neural network calculations. &lt;strong&gt;85 GOPS equals 0.085 TOPS&lt;/strong&gt;, or billions of operations per second. That figure does not tell us how many milliseconds a particular product’s model will take: supported operations, numerical formats, memory and work remaining on the CPU all matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Motor control: timing comes first
&lt;/h2&gt;

&lt;p&gt;In a motor drive, firmware acquires measurements, updates the controller and commands the power stage. One example is &lt;strong&gt;FOC&lt;/strong&gt;, &lt;em&gt;Field Oriented Control&lt;/em&gt;, included in &lt;a href="https://www.st.com/en/embedded-software/x-cube-mcsdk.html" rel="noopener noreferrer"&gt;ST’s motor control ecosystem&lt;/a&gt;. Current measurements and rotor position information allow quantities associated with flux and torque to be regulated.&lt;/p&gt;

&lt;p&gt;The decisive constraint is the time available between a measurement and a command update. &lt;strong&gt;Take a 20 kHz loop as an example: its period would be 50 microseconds.&lt;/strong&gt; That is the time available to finish the work scheduled for that cycle. Vibration analysis that considers tens or hundreds of milliseconds of signal follows a very different rhythm.&lt;/p&gt;

&lt;p&gt;Inference should therefore not automatically enter the path that determines the motor command. An initial design can keep diagnostics as an observer: it receives valid data, produces an indicator and informs supervision. Any intervention on the machine needs defined logic, consistent with protection functions and safety requirements.&lt;/p&gt;

&lt;h2&gt;
  
  
  HSP: preparing the signal before looking for anomalies
&lt;/h2&gt;

&lt;p&gt;A sensor produces a sequence of numbers; a model needs data that preserve useful information. &lt;strong&gt;DSP&lt;/strong&gt;, &lt;em&gt;Digital Signal Processing&lt;/em&gt;, covers the work between the two: filtering, offset removal, normalisation, frequency analysis and feature extraction.&lt;/p&gt;

&lt;p&gt;For a motor, possible observations include vibration RMS amplitude, energy within selected bands or changes in spectral components. The &lt;strong&gt;FFT&lt;/strong&gt;, &lt;em&gt;Fast Fourier Transform&lt;/em&gt;, is an algorithm for computing the discrete Fourier transform and examining frequency content. It does not explain a peak’s cause on its own: that content must be related to speed, load and mechanical characteristics.&lt;/p&gt;

&lt;p&gt;The HSP’s potential benefit is moving suitable operations from software execution to a dedicated resource. The benefit needs measurement including data preparation, setup, transfers and result retrieval. For a small operation, management overhead may be as significant as computation. The choice of functions to accelerate depends on the libraries and tool versions actually supported on the device.&lt;/p&gt;

&lt;h2&gt;
  
  
  NPU: what the model can tell us
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Inference&lt;/strong&gt; applies an already trained model to new data. A classifier might distinguish known conditions; an anomaly detector might indicate departure from learned behaviour. Here, &lt;strong&gt;Edge AI&lt;/strong&gt; means performing that computation on the device, near the source of the data.&lt;/p&gt;

&lt;p&gt;The NPU can accelerate compatible parts of the network. The complete path still includes acquisition, preparation, any CPU operations and interpretation of the output. A very fast model can be of little use if it receives incomplete windows or data unlike those used during development.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A change in vibration deserves attention, but it does not explain the cause on its own.&lt;/strong&gt; It could come from a new load, structural resonance or a remounted sensor. Identifying a fault, and especially estimating how long remains before it occurs, requires specific data and validation. The indicator therefore needs to retain the context in which it was produced.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkg9o0hzbo5sut7n6fda9.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkg9o0hzbo5sut7n6fda9.webp" alt="Conceptual task allocation within one MCU: CPU for motor control, HSP for signals and NPU for inference, with separate control and diagnostic paths" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One possible division of tasks: the CPU handles control, the HSP processes signals and the NPU runs the model. The figure summarises the role of the three blocks.&lt;/p&gt;

&lt;h2&gt;
  
  
  An example: vibration in a motor drive
&lt;/h2&gt;

&lt;p&gt;Imagine adding a vibration sensor to a motor drive. Firmware would need to collect samples, retain their sequence and operating conditions, prepare model input and make the result available to supervision. A few calculations can help show what this would involve before building a prototype.&lt;/p&gt;

&lt;p&gt;Suppose acquisition runs at &lt;strong&gt;6,400 samples/s per axis&lt;/strong&gt; and analysis uses &lt;strong&gt;1,024-sample&lt;/strong&gt; windows. Each window lasts &lt;code&gt;1,024 / 6,400 = 0.16 s&lt;/code&gt;, or &lt;strong&gt;160 ms&lt;/strong&gt;. A decision based on a complete window already depends on this observation interval, before computation is added.&lt;/p&gt;

&lt;p&gt;For an FFT of that length, spectrum points are spaced by &lt;code&gt;6,400 / 1,024 = 6.25 Hz&lt;/code&gt;. This is frequency bin spacing, rather than a guarantee of separating any two phenomena 6.25 Hz apart: windowing, noise and signal stability affect interpretation. A longer window changes the tradeoff between frequency observation, delay and memory.&lt;/p&gt;

&lt;p&gt;To update the indicator more frequently, windows could advance by &lt;strong&gt;256 samples&lt;/strong&gt;: a new input every &lt;strong&gt;40 ms&lt;/strong&gt;, with 75% overlap and 25 evaluations per second. Each window still covers 160 ms. A higher update rate does not automatically shorten the analysed signal interval, and it increases the workload that must be processed.&lt;/p&gt;

&lt;p&gt;The result should carry at least the window timestamp, data quality and operating state. A measurement during a speed ramp can mean something different from the same measurement at steady speed. Sensor type, useful bandwidth and mounting also need to match the phenomenon: collecting more samples cannot recover information the sensor did not acquire properly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F35hkgrczdmhm7muaidty.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F35hkgrczdmhm7muaidty.webp" alt="Illustrated diagnostic path: sensor mounted on a motor, sample windows, signal features, inference and an anomaly indicator" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The example’s data path: collect the signal, split it into windows, extract features and pass them to the model. Any resulting alert would then need to be assessed alongside the machine’s operating state.&lt;/p&gt;

&lt;h2&gt;
  
  
  Memory and buffers: the model is only part of the budget
&lt;/h2&gt;

&lt;p&gt;Continuing the example, three axes with samples stored at 16 bits need &lt;code&gt;3 × 1,024 × 2 = 6,144 bytes&lt;/code&gt;, or &lt;strong&gt;6 KiB&lt;/strong&gt;, for a raw window. Two buffers of that size need 12 KiB. The sample storage format would need to be chosen to suit the sensor and the planned processing.&lt;/p&gt;

&lt;p&gt;Additional requirements include DSP buffers, model weights and activations, task stacks, communications and firmware diagnostics. The network file size is not the total memory needed during inference. Likewise, Flash does not replace the working memory required by the application.&lt;/p&gt;

&lt;p&gt;Buffer management needs to define who may write and who may read. One possible arrangement alternates a buffer being filled and one being processed, but overlapping windows and a delayed consumer need a consistent policy. If analysis falls behind, the system must know whether to discard stale windows, reduce updates or report unavailable diagnostics. A growing queue produces increasingly old results.&lt;/p&gt;

&lt;h2&gt;
  
  
  Latency and jitter: what to measure
&lt;/h2&gt;

&lt;p&gt;The diagnostic budget includes more than the neural network. An initial model is &lt;code&gt;T_decision = T_observation + T_preparation + T_inference + T_alarm_rule&lt;/code&gt;. Waiting, transfers and result delivery must also be considered. If a rule requires several consecutive windows, the time to report an event changes again.&lt;/p&gt;

&lt;p&gt;With a new input every 40 ms, the system must sustainably process that rate or apply an explicit load reduction strategy. For control, the primary concern is whether the extra activity causes a deadline violation. &lt;strong&gt;Latency&lt;/strong&gt; is the delay along a path; &lt;strong&gt;jitter&lt;/strong&gt; is its timing variation. Measuring only average inference time does not answer this question.&lt;/p&gt;

&lt;p&gt;To check this, I would compare the same control with diagnostics off and on, adding communication traffic, interface requests and loads similar to those of the machine. I would measure the delay between acquisition and command, critical path duration and any missed deadlines. Pulses on a debug output or tracing tools would help observe these timings, while accounting for the disturbance introduced by measurement.&lt;/p&gt;

&lt;p&gt;Appropriate priorities and accelerators help organise work, but shared resources, drivers and non-preemptible sections still need examination. Validation must also include timeouts, full buffers and late AI results. Acceptable behaviour should be decided before testing, rather than inferred after a favourable plot appears.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fublphc1j9ep0n9wvw2p2.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fublphc1j9ep0n9wvw2p2.webp" alt="Conceptual validation bench with two tracks: periodic control pulses and longer diagnostic intervals, beside an oscilloscope and motor" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two rhythms to accommodate: the periodic control cycle and the longer diagnostic operations. The prototype would need to show that diagnostics leave control enough time to finish its work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Representative data, false alarms and unseen conditions
&lt;/h2&gt;

&lt;p&gt;For a manufacturer, collecting the right data may be one of the hardest parts. Acquisitions should cover different machines, speeds and loads, including temperature changes, disturbances and mounting differences. Data from one machine during one shift can produce a model that recognises that session well and behaves differently in the field.&lt;/p&gt;

&lt;p&gt;Training and validation should also be separated by machine or session when appropriate. Randomly splitting nearly identical windows, especially overlapping ones, risks placing very similar information in both sets and making evaluation too optimistic.&lt;/p&gt;

&lt;p&gt;Machine users need to know how many false alarms to expect per shift, which anomalies might be missed and how long detection would take. A single accuracy percentage does a poor job of describing these questions. Thresholds and confirmation over multiple windows may reduce occasional alerts while adding delay or missing brief events.&lt;/p&gt;

&lt;p&gt;Conditions outside validation coverage also need consideration: a disconnected sensor, saturated signal, new operating regime or mechanical modification. Firmware should distinguish unusable data from a valid diagnostic result. &lt;strong&gt;A missing result must not automatically become “everything is normal”.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Software tools, integration and updates
&lt;/h2&gt;

&lt;p&gt;Before choosing tools, check their support for the exact microcontroller part number and the software versions the project will use. The &lt;a href="https://www.st.com/en/development-tools/edge-ai-software-libraries.html" rel="noopener noreferrer"&gt;official ST Edge AI tools overview&lt;/a&gt; presents tools for preparing and assessing models. The project would need to check supported operators and numerical formats, along with which parts of the network would run on the NPU or CPU.&lt;/p&gt;

&lt;p&gt;Before connecting the model to control, compare identical inputs on the development reference and the embedded executable, checking numerical differences, memory use and timing. Quantisation, where the selected workflow uses it, should also be assessed against output quality. Successful conversion is one step, rather than validation of the whole application.&lt;/p&gt;

&lt;p&gt;Firmware, model and signal preparation need to be versioned together. Changing sensor scaling, channel order or extracted features can make otherwise loadable weights inconsistent. Updates should check compatibility and integrity and provide recovery after interruption. Machine protection and functional safety require dedicated analysis.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I would start an industrial product evaluation
&lt;/h2&gt;

&lt;p&gt;I would start with measurements of the existing system and a precise diagnostic goal: which behaviour to recognise, with what maximum delay and acceptable false alarm rate. Then I would set a few verifiable prototype outcomes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Reliable acquisition:&lt;/strong&gt; representative data, traceable sequences and handling of incomplete windows.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sustainable processing:&lt;/strong&gt; measured memory use, a compatible model and a manageable window rate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Control validated under load:&lt;/strong&gt; timing headroom and documented behaviour when processing is late or fails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Useful diagnostics:&lt;/strong&gt; comparison against separate data and criteria understandable to the people using the alerts.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These findings allow STM32H7P to be compared with the current architecture. Combining functions on one MCU can be attractive, but removing an external component or reducing total cost depends on electronics, power, development and product validation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Availability and where to start
&lt;/h2&gt;

&lt;p&gt;As of &lt;strong&gt;16 November 2026&lt;/strong&gt;, ST reports sampling at OEMs and production planned for &lt;strong&gt;January 2027&lt;/strong&gt;. NUCLEO-H7P5II and the STM32H7P5I-DK Discovery kit are announced for the same month. For a new project, board availability and lead times would therefore be among the first details to discuss with ST.&lt;/p&gt;

&lt;p&gt;At Silicon LogiX, I work on &lt;a href="https://www.siliconlogix.it/en/embedded?topic=firmware-mcu" rel="noopener noreferrer"&gt;microcontroller firmware&lt;/a&gt;, &lt;a href="https://www.siliconlogix.it/en/embedded?topic=rtos" rel="noopener noreferrer"&gt;real-time architectures&lt;/a&gt; and &lt;a href="https://www.siliconlogix.it/en/ai?topic=edge-tinyml" rel="noopener noreferrer"&gt;on-device AI&lt;/a&gt;. To evaluate control and diagnostics on the same electronics, &lt;a href="https://www.siliconlogix.it/en/contact?area=embedded" rel="noopener noreferrer"&gt;we can start with available signals, deadlines and the tests the prototype must pass&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;Originally published on &lt;a href="https://www.siliconlogix.it/en/article/stm32h7p-motor-control-and-artificial-intelligence-on-one-microcontroller" rel="noopener noreferrer"&gt;Silicon LogiX&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>embedded</category>
      <category>stm32</category>
      <category>firmware</category>
      <category>ai</category>
    </item>
    <item>
      <title>SLX StagePilot: DMX software and 3D simulation for live shows</title>
      <dc:creator>Marco</dc:creator>
      <pubDate>Wed, 11 Nov 2026 20:20:12 +0000</pubDate>
      <link>https://dev.to/pezzullo/slx-stagepilot-dmx-software-and-3d-simulation-for-live-shows-3b5j</link>
      <guid>https://dev.to/pezzullo/slx-stagepilot-dmx-software-and-3d-simulation-for-live-shows-3b5j</guid>
      <description>&lt;h2&gt;
  
  
  Software for live shows
&lt;/h2&gt;

&lt;p&gt;Before connecting a complete rig, it helps to see what happens between a command and its result: which channels change, which personality interprets them, and how a value becomes intensity, colour or movement. Dedicated software makes those steps visible and repeatable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SLX StagePilot&lt;/strong&gt; is a Windows application developed by Silicon LogiX to receive DMX data over Ethernet and apply it to a virtual 3D stage. Scene programming, visualisation and stream diagnostics let the operator follow the path from channel values to fixture behaviour.&lt;/p&gt;

&lt;p&gt;Its counterpart is an &lt;a href="https://www.siliconlogix.it/en/solution/slx-stagepilot-custom-embedded-app-dmx-control" rel="noopener noreferrer"&gt;embedded Linux console with a touch interface&lt;/a&gt;. Connecting the two applications makes it possible to verify a system with separate responsibilities and a shared protocol.&lt;/p&gt;

&lt;h2&gt;
  
  
  From fixture to 3D stage
&lt;/h2&gt;

&lt;p&gt;The stage contains 44 virtual devices across 15 types, including Spot, Wash, PAR, LED bars, strobes, blinders, house lights, followspots and lasers. Their profiles occupy 500 of the 512 channels in universe U1.&lt;/p&gt;

&lt;p&gt;Selecting a fixture in the list highlights it in the 3D view, even at zero intensity. Ctrl builds a multiple selection; framing brings the selected detail into view. Clicking empty space clears the selection. The stage, truss, instruments and seating remain scenery, providing spatial context and occluding clicks where appropriate.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd6xyamwmupv1nyd8gz96.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd6xyamwmupv1nyd8gz96.webp" alt="StagePilot simulator with 3D stage, DMX fixture list and Programmer" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The simulator displays levels and selection in the same scene. Selecting a fixture does not change its DMX values. Capture of the original application interface.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Movement, emissive materials, beams and procedural effects represent the received parameters. The DMX coverage view distinguishes visual responses from values retained as data only. The Spot optical inspection, for example, exposes gobo and prism mechanisms, while the rendering remains simplified. The application supports integration work and does not replace calibrated photometric calculations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Receiver, model and renderer
&lt;/h2&gt;

&lt;p&gt;The pipeline separates network reception, application state and rendering. A datagram is validated, matched to the selected universe and converted into levels that the model interprets through the patch. The interface presents the resulting attributes; the renderer updates the affected transforms, colours and geometry.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdtloefefrgeeel6jxv7h.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdtloefefrgeeel6jxv7h.webp" alt="From Ethernet source to stage: packet checks, channel mapping, fixture attributes and 3D visualisation" width="800" height="773"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The same stream can feed a 512-channel monitor and a 3D view. The patch connects bytes to fixture parameters.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This separation lets an observed stage behaviour be compared with the received value and its interpretation. A channel can be correct while the assigned personality is wrong; a fixture can receive valid levels with its shutter closed. Viewing the stage and inspecting the data answer different parts of the same question.&lt;/p&gt;

&lt;p&gt;The simulator runs independently and receives Art-Net and sACN. Physical output belongs to the controller or gateway specified for the installation. An API separate from the renderer defines the data contract, allowing different interfaces and tools to use the same fixture model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inside an Art-Net packet
&lt;/h2&gt;

&lt;p&gt;Art-Net carries control data over UDP. An ArtDmx packet identifies the protocol, message type, sequence, Port-Address and data length, followed by the levels. It uses &lt;strong&gt;UDP port 6454&lt;/strong&gt;; in StagePilot, U1 maps to Port-Address 0.&lt;/p&gt;

&lt;p&gt;This example shows an ArtDmx header for 512 levels, following the format used to verify the project’s receiver:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;41 72 74 2D 4E 65 74 00
00 50 | ArtDmx
00 0E | Version
01 00 | Seq. / Physical
00 00 | Port-Address
02 00 | 512 data bytes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first eight bytes contain the &lt;code&gt;Art-Net&lt;/code&gt; identifier terminated by a null byte. The ArtDmx OpCode, 0x5000, is little-endian; the protocol version and data length are big-endian. This example uses sequence 1, Physical 0 and Port-Address 0. Byte order therefore has to be read field by field.&lt;/p&gt;

&lt;p&gt;For a 16-bit level, coarse and fine depend on the fixture profile: bytes 128 and 0 represent 32768 out of 65535, which is then mapped to the parameter’s range.&lt;/p&gt;

&lt;p&gt;With an 18-byte header and 512 data bytes, a full ArtDmx packet contains 530 bytes of UDP payload. At 40 updates per second, this is &lt;strong&gt;21,200 bytes per second per universe&lt;/strong&gt;, before network headers. Bandwidth is modest; continuity, routing and the response to packet loss remain central design concerns.&lt;/p&gt;

&lt;p&gt;ArtPoll discovers nodes. ArtDmx carries levels. Finding a gateway does not automatically assign addresses and personalities to the fixtures connected to it; patching remains a separate operation.&lt;/p&gt;

&lt;h2&gt;
  
  
  How sACN works
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;sACN, ANSI E1.31&lt;/strong&gt;, encapsulates DMX levels in structures identifying the source component, universe, priority and sequence. The CID identifies the source; a readable source name helps the operator, while the identifier lets the receiver distinguish streams.&lt;/p&gt;

&lt;p&gt;The transport uses UDP port 5568 and supports unicast and multicast. With multicast, the receiver joins the group for the required universe; U1 uses IPv4 group 239.255.0.1. Interface selection matters: the group must be joined on the network adapter connected to the lighting network.&lt;/p&gt;

&lt;p&gt;Universe priority ranges from 0 to 200, with 100 as the usual default. The receiver must define how multiple sources and source loss are handled. StagePilot exposes the active source and applies an explicit ownership policy. Multi-source merging, per-address priority and synchronisation are additional integration features when required by the installation.&lt;/p&gt;

&lt;p&gt;Art-Net and sACN carry control parameters. Video playback, audio tracks and media-server content require their respective playback engines. A DMX channel can select a function or set an intensity without carrying the media file itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources, sequences and signal loss
&lt;/h2&gt;

&lt;p&gt;UDP does not acknowledge every applied packet to the sender. The receiver needs to check format, length, universe and sequences, and distinguish a recent signal from a value still held in memory. A growing packet counter and the age of the latest frame provide different operational information.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7zhmpiam7hp6q92x6wny.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7zhmpiam7hp6q92x6wny.webp" alt="Simulator Ethernet page with listener state, source, protocol, rate and signal-loss settings" width="800" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The Ethernet page exposes reception state and the policies applied when the source is no longer available. Capture of the original interface.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;StagePilot provides Hold, Fade and Blackout with their timing settings. Hold retains the last state; Fade and Blackout apply the selected policy to intensities. The choice depends on the installation and the responsibilities assigned to the control system.&lt;/p&gt;

&lt;p&gt;Continuity also depends on process lifecycle management. The receiver can be opened, closed and reopened while data is arriving. Callback object lifetimes, worker shutdown and the separation of reception from drawing all contribute to desktop application reliability.&lt;/p&gt;

&lt;h2&gt;
  
  
  Programming and capture
&lt;/h2&gt;

&lt;p&gt;The Programmer prepares local attributes. Scenes, cues and chasers organise looks and sequences, while palettes and effects speed up repeated operations. A show file stores the patch and libraries; a capture records the stream of levels over time.&lt;/p&gt;

&lt;p&gt;These support two workflows: editing a show project and replaying a recording to compare behaviour. A capture can reproduce a transition, check a source change or help investigate how channel values were interpreted.&lt;/p&gt;

&lt;p&gt;Capture supports up to 32 seconds at 40 Hz, and the application includes a sample show with a soundtrack. The fixture personalities are SLX virtual profiles. Integrating a real fixture starts with its channel map, parameter ranges and selectable device modes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verifying the complete system
&lt;/h2&gt;

&lt;p&gt;Verification compares data as well as its representation. An independent generator sends ArtDmx frames with known levels. The 512 received slots are compared with the expected values, then the patch’s interpretation is checked in the scene. Receiver opening, closing and restart are also checked with data arriving.&lt;/p&gt;

&lt;p&gt;Interaction checks use the application’s actual input path for selection, framing, picking and libraries. They also check that 3D selection preserves DMX levels. A separate Ethernet check connects the physical CM4 to the PC; results from loopback and from the physical connection retain their respective scopes.&lt;/p&gt;

&lt;p&gt;Repeating the same inputs makes versions, profiles and behaviours comparable. Validation for an installation is completed on the target hardware, the intended network and the reference fixtures.&lt;/p&gt;

&lt;h2&gt;
  
  
  Custom tools for your product
&lt;/h2&gt;

&lt;p&gt;The same approach applies to scene editors, installer panels, configuration tools, rig visualisers and test applications. Development connects the device model to both the protocol and the tasks the operator needs to perform.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Silicon LogiX develops custom software&lt;/strong&gt; for manufacturers and integrators: product-branded interfaces, fixture profiles, project files, diagnostics and links to the electronics. Requirements define universe count, source handling, saving workflows and behaviour under fault conditions.&lt;/p&gt;

&lt;p&gt;For a lighting desk, a stage rig or an installation, software is designed around the data path: who generates commands, who receives them, how they are interpreted and what should happen if the connection drops. Interface, hardware and protocols are developed as parts of the same system.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.siliconlogix.it/en/contact?area=software" rel="noopener noreferrer"&gt;Discuss your DMX and show-control software&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Technical references
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://art-net.org.uk/downloads/art-net.pdf" rel="noopener noreferrer"&gt;Art-Net 4: definitions and packets&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://tsp.esta.org/tsp/documents/docs/ANSI_E1-31-2018.pdf" rel="noopener noreferrer"&gt;ESTA: ANSI E1.31-2018&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://etclabs.github.io/sACNDocs/head/using_receiver.html" rel="noopener noreferrer"&gt;ETC: sources and priority in an sACN receiver&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://support.etcconnect.com/ETC/Networking/General/Network_Definitions" rel="noopener noreferrer"&gt;ETC: unicast, multicast and entertainment networks&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.khronos.org/gltf/" rel="noopener noreferrer"&gt;Khronos: the glTF format&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Art-Net™ Designed by and Copyright Artistic Licence Engineering Ltd.&lt;/p&gt;




&lt;p&gt;Originally published on &lt;a href="https://www.siliconlogix.it/en/solution/slx-stagepilot-dmx-software-3d-simulation-live-shows" rel="noopener noreferrer"&gt;Silicon LogiX&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>opengl</category>
      <category>networking</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
