<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jan Ekiel on Medium]]></title>
        <description><![CDATA[Stories by Jan Ekiel on Medium]]></description>
        <link>https://medium.com/@jan.ekiel_46240?source=rss-ef4fd43761c3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*2vLYk50Lg41RIE7pEy_sHw.jpeg</url>
            <title>Stories by Jan Ekiel on Medium</title>
            <link>https://medium.com/@jan.ekiel_46240?source=rss-ef4fd43761c3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 18:14:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jan.ekiel_46240/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ Europe’s Cyber Resilience Starts With Your Company.]]></title>
            <link>https://medium.com/@jan.ekiel_46240/europes-cyber-resilience-starts-with-your-company-98a0e25d9173?source=rss-ef4fd43761c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/98a0e25d9173</guid>
            <category><![CDATA[ai-in-cyber-security]]></category>
            <category><![CDATA[digital-resilience]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[european-union]]></category>
            <category><![CDATA[cyber-defense]]></category>
            <dc:creator><![CDATA[Jan Ekiel]]></dc:creator>
            <pubDate>Tue, 08 Apr 2025 11:15:38 GMT</pubDate>
            <atom:updated>2025-04-08T14:43:31.460Z</atom:updated>
            <content:encoded><![CDATA[<h3>🔥 Europe’s Cyber Resilience Starts With Your Company. Trust Valley Panel on SMEs and Digital Sovereignty in the EU</h3><figure><img alt="The Trust Valley panel in InCyber Formum — 2025 Lille" src="https://cdn-images-1.medium.com/max/1024/1*iSsNE7gFQ3kgI0h7K6S_bw.jpeg" /><figcaption>Trust Valley panel — InCyber Forum 2025</figcaption></figure><p><strong>🛡️ Digital security starts far away from data centers. It begins in repair shops, family-run businesses, and small accounting offices. Small and medium-sized enterprises (SMEs) are now the primary targets of cyberattacks — but also the backbone of Europe’s economy. This is why Europe’s digital resilience must be built on technologies that we control, that belong to us — and that are developed through collaboration between the public sector, large corporations, and SMEs.</strong></p><p><strong>This article is a summary of the Trust Valley panel held at the InCyber Forum (FIC) — and of the roadmap for joint action presented there.</strong></p><h4>Cybersecurity rarely makes the headlines — but it’s increasingly what keeps businesses, institutions, and even entire regions running.</h4><p>At the <strong>Trust Valley</strong> panel held during the <strong>InCyber Forum </strong>in Lille, we discussed what it takes for Europe to effectively build resilience — both technological and societal.</p><p>The panel brought together representatives from governments, public agencies, tech companies, and non-profits across Europe, North America, and Asia. The focus was on c<strong>ybersecurity in the context of SMEs</strong>, public-private partnerships, and emerging risks related to AI.</p><p>For me, this was a conversation about something much broader than just technical safeguards. It was about how to build Europe’s economic and social resilience based on our own skills and technologies — ones that we own and control.</p><p>The panel was opened by<strong> Pascal Steichen, CEO of the Luxembourg House of Cybersecurity (LHC)</strong> — an agency that plays a key role in strengthening Europe’s economic resilience and digital sovereignty. As the national coordination hub for cybersecurity in Luxembourg, LHC supports small and medium-sized enterprises by providing education, expert guidance, and access to advanced security tools. Through close collaboration with both public and private sector partners, LHC fosters an integrated cybersecurity approach that reinforces the stability of the entire European economy. During the session, Pascal Steichen invited all panelists and guests to join forces in building a secure and independent digital ecosystem for Europe.</p><h4>SMEs are a prime target — but often unprotected</h4><p>Contrary to popular belief, cybersecurity is not just an issue for large corporations or government agencies. The data is clear: SMEs are now the most exposed to cyber threats — and the least prepared to defend against them.</p><p>Henri Schricke (IHEDN, France) and Lenning Pedron (Trust Valley, Switzerland) made it clear: SMEs are the backbone of our economy, but many operate without IT teams, without a real understanding of risks, and without formal security policies. And the impact of even a small incident can be devastating — it’s not just about data. Attacks often halt supply chains, trigger costly repairs and downtime, and result in lost clients and damaged reputation.</p><p>This is why governments are beginning to offer support — from funding for external services and training to simple risk audit tools. But many of these efforts remain fragmented, unscalable, and dependent on local champions.</p><p>What’s missing is a coherent system that turns good intentions into lasting impact.</p><p>That’s why this topic opened the panel — because the real foundation of national digital resilience starts with how secure thousands of local businesses are.</p><h4>Public-private partnerships aren’t a bonus — they’re a necessity</h4><p>A recurring message during the panel was: “The state can’t do it alone.” This wasn’t a political statement, but a practical one. The scale of cybersecurity challenges, especially for SMEs, is growing faster than public institutions can keep up with.</p><p>Malaysia and Estonia presented very different models, yet both emphasized one key factor: continuous collaboration with the private sector.</p><p>Azrul Aziz shared Malaysia’s Cybersecurity Collaboration Partner (CCP) model, where the government acts as a coordinator, but the operational responsibility — from education and technical support to incident response — lies with local companies and trade organizations. This ensures market-aligned, adaptable solutions.</p><p>Lauri Tankler from Estonia was equally candid: the public sector simply doesn’t have enough experts to guarantee full digital security on its own. That’s why in Estonia, many tasks are handled by tech companies — not as external vendors, but as systemic partners. The government shares responsibility, resources, and data — in return gaining speed, continuity, and stronger end-user relationships.</p><p><strong>Takeaway?</strong><br>Public-private partnerships work best when treated as a permanent framework of shared responsibility.</p><figure><img alt="Incyber Forum 2025" src="https://cdn-images-1.medium.com/max/1024/1*MoFoAAB48XBP4xFqrCxlYQ.jpeg" /><figcaption>InCyber Forum 2025</figcaption></figure><h4>AI brings new threats — but also new tools for defense</h4><p>AI is increasingly part of the cybersecurity conversation — and for good reason. The rise of large language models (LLMs) opens new possibilities but also introduces risks that many organizations aren’t ready for.</p><p>Speakers from Belgium and Quebec highlighted that AI is no longer just a research topic — it’s a real risk factor that must be integrated into protection strategies.</p><p>Phedra Clouner described how Belgium is using AI to monitor threats and detect anomalies in digital infrastructure. But this raises new questions: How do we interpret decisions made by models that are themselves increasingly opaque?</p><p>Yvan Fournier, Quebec’s Minister for Cybersecurity, pointed to another critical concern: the evolution of social engineering powered by generative AI. Phishing, emotional manipulation, identity spoofing — all become easier, faster, and harder to detect when tools can write, speak, and respond in real time.</p><blockquote><strong>This is why the conversation is shifting from just “safe AI” to “AI for safety.”</strong></blockquote><p>Systems that can analyze network traffic, detect unusual user behavior, or assist SOC operators in real-time can become a cornerstone of digital resilience. But that requires more than just technology — it requires skills, processes, and trust, especially in critical sectors like:</p><p>➡️ healthcare,<br>➡️ critical infrastructure,<br>➡️ financial systems.</p><h4>Cybersecurity is an investment in competitiveness — not just a cost</h4><p>One persistent myth is that cybersecurity is a sunk cost — something you do just to “satisfy audits.” But more and more organizations are starting to see it differently: not just as protection, but as a source of competitive advantage.</p><p>Michiel Van Der Veen from the Netherlands illustrated a common practice in software companies where:</p><blockquote><strong>“Security is built into the product from the design stage through to daily operations.”</strong></blockquote><p>Instead of bolting on protections after an incident, security is developed in tandem with functionality. This makes it a value-add: improving user trust, speeding up response times, and reducing incident handling costs.</p><p>But this requires a shift in organizational culture. It’s not enough to buy a security product — companies need to know how to integrate, maintain, and evolve it. In this light, cybersecurity becomes less about tools and more about managing value and risk.</p><blockquote><strong>Above all — it’s an investment that enables stability in a volatile world. And stability is often what makes the difference between success and failure.</strong></blockquote><h4>Europe has regulations — but needs real-world implementation</h4><p>You can’t talk about digital resilience in Europe without addressing the regulatory landscape. Italian representatives Giorgia Dragoni and Luca Nicoletti pointed out that while the EU has no shortage of legal frameworks and strategies, the real challenge lies in execution — both at national level and in companies’ day-to-day operations.</p><p>Regulations like NIS2 and DORA are steps in the right direction, but laws alone don’t build resilience. What does?</p><p><strong>➡️ Infrastructure<br>➡️ Skills<br>➡️ Collaboration between institutions, companies, and tech communities</strong></p><p>Italy is investing in its digital industry — building data centers, developing edge computing, and launching initiatives like Invest.AI. But as highlighted during the panel, without shared standards, interoperable platforms, and open knowledge, these remain isolated efforts with limited scalability.</p><p>This is where ecosystems matter — not just clusters of companies and agencies, but shared resources that help turn good ideas into real solutions.</p><blockquote><strong>Because unused technology doesn’t strengthen resilience.<br>And hyper-local solutions don’t strengthen Europe as a whole.</strong></blockquote><h4>Poland — capabilities ready to strengthen Europe’s resilience</h4><p>While much of the panel focused on <em>how</em> to build resilience, an equally important question was <em>who</em> should build it — and on what foundation.</p><p>Every country at the panel has its own centers of excellence. By sharing knowledge and capabilities, we can build collective resilience. Łukasz Gawron from CyberMadeInPoland emphasized that Poland has a tech base that can significantly contribute to Europe’s digital security.</p><blockquote><strong>Polish companies form the EU’s largest hub of development and integration services.</strong></blockquote><figure><img alt="Incyber Forum 2025 — Orange exhibition" src="https://cdn-images-1.medium.com/max/1024/1*vbtT-HZEYwwgIw_qHF_74A.jpeg" /><figcaption>InCyber Forum 2025</figcaption></figure><p>We have thousands of experts experienced in AI, IoT, edge computing, and on-premise infrastructure. Our companies — including SMEs — know how to design, implement, and maintain complex digital environments under high load and evolving risks.</p><p>As President of Liki Mobile Solutions and member of SodA (Software Development Association Poland), I see daily how companies are ready to work with the public sector — not just as vendors, but as partners in building long-term resilience.</p><p>That’s what public-private partnerships should look like:<br> 🔹 shared threat awareness,<br> 🔹 fast knowledge transfer,<br> 🔹 and scalable solutions built on our own values and skills.</p><p>We also see that many SMEs rely on tools from global providers. While these solutions are often effective, the panel reminded us of a critical truth:</p><p><strong>Technology has a nationality.</strong></p><p>When control over digital infrastructure rests with a single external entity, we must ask:<br> 🟡 What if that partner exits the market?<br> 🟡 What if they change their strategy or lose credibility?</p><p>This is why we need supplier diversification, transparent standards, and — most importantly — systems that are locally built, collectively owned, and globally scalable.</p><p>This panel showed that such cooperation is possible — and that our region is ready to lead.</p><h4>Resilience is a choice — and a shared effort</h4><blockquote><strong>In a world where unpredictability is the norm, building digital resilience is no longer optional — it’s essential.</strong></blockquote><p>Yes, cybersecurity requires technology. But just as important are relationships: trust, openness, and cross-border collaboration.</p><p>That’s why I’m encouraged by the direction of this discussion:</p><p>Focused on uniting knowledge and capacity — to act faster, more effectively, and on our own terms.</p><p>Because only when technologies are developed by us and for us, can they truly strengthen our independence, stability, and security.</p><p>How quickly we build this model of cooperation will determine whether Europe is a bystander — or an active force in shaping the digital world.</p><p><strong>Special thanks</strong> to the Polish Agency for Enterprise Development (PARP) for the invitation and for giving me the opportunity to represent the Polish tech sector at InCyber Forum in Lille.</p><p>Particular thanks to the on-site PARP team: Agnieszka Bonnefoy, Monika Piwek-Lebeau, and Maciej Wnuk — for their organizational support, openness, and for fostering meaningful dialogue.</p><p>I also <strong>thank all Trust Valley panelists </strong>for their insights and collaboration:</p><p>🔹 Lenning Pedron — Trust Valley, 🇨🇭<br>🔹 Luca Nicoletti — Agenzia per la Cybersicurezza Nazionale, 🇮🇹<br>🔹 Giorgia Dragoni — Politecnico di Milano, 🇮🇹<br>🔹 Łukasz Gawron — CyberMadeInPoland, 🇵🇱<br>🔹 Michiel Van Der Veen — TNO, 🇳🇱<br>🔹 Phedra Clouner — Centre for Cybersecurity Belgium, 🇧🇪<br>🔹 Pascal Steichen — Luxembourg House of Cybersecurity, 🇱🇺<br>🔹 Henri Schricke — Institut des hautes études de défense nationale (IHEDN), 🇫🇷<br>🔹 Yvan Fournier — Ministère de la Cybersécurité et du Numérique du Québec, 🇨🇦<br>🔹 Azrul Aziz — CyberSecurity Malaysia, 🇲🇾<br>🔹 Aurélie I. Adam Soule — Ministère du Numérique et de la Digitalisation du Bénin, 🇧🇯<br>🔹 Lauri Tankler — Estonian Information System Authority (NCSC-EE), 🇪🇪</p><p>This was an important conversation. I’m confident it will continue — because building digital resilience takes more than technology. It takes trust and collaboration.</p><figure><img alt="Trust Valley panel on InCyber Forum 2025" src="https://cdn-images-1.medium.com/max/1024/1*0ZzmX0SshwuX8Yf62gArTw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98a0e25d9173" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How We Programmed a Telecom Operator.]]></title>
            <link>https://medium.com/@jan.ekiel_46240/how-we-programmed-a-telecom-operator-3aa31afce626?source=rss-ef4fd43761c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/3aa31afce626</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[innovation-strategy]]></category>
            <category><![CDATA[telecommunications-trends]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[api-integration]]></category>
            <dc:creator><![CDATA[Jan Ekiel]]></dc:creator>
            <pubDate>Fri, 28 Mar 2025 14:52:54 GMT</pubDate>
            <atom:updated>2025-03-29T16:20:03.948Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>How We Programmed a Telecom Operator. </strong>And how CAMARA API helps build safer and smarter applications.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BMuBJquKeumbKYNpayc4xA.jpeg" /></figure><p><strong>Innovation is not just about new ideas — it’s about the ability to deliver. Mobile operators are now opening up their networks, giving access to functions that were previously out of reach for software and hardware developers. Here’s how CAMARA API enables designing applications that are not only more efficient but also safer and context-aware.</strong></p><p>💡 Not every flashy product is an innovation.<br>💡 Not every creative idea leads to innovation.<br>💡 Not every innovative breakthrough can be repeated.<br>🫴 Because innovation is a process. A systematic approach that allows us to turn ideas into working solutions. And do it not once — but consistently, over time.</p><p>Can we build such processes in Europe to compete with the US and China?</p><p>We can.</p><p>Europe doesn’t lack skilled people. We have universities open to working with business. And we have companies whose DNA includes continuous innovation and openness to external ecosystems.</p><p>We have European companies that, in their everyday business, maintain the organizational ability to:</p><ul><li>listen,</li><li>experiment,</li><li>engage partners,</li><li>implement,</li><li>and continually improve their innovations.</li></ul><p>One of the companies with innovation built into its DNA is Orange.</p><p>Last week, together with the Liki team, we took part in a hackathon organized by Orange — the <strong>CAMARA API Challenge</strong>. It’s an initiative where the operator not only demonstrates its innovative spirit but also shares real tools that others can build on.</p><p><a href="https://developer.orange.com/products/network-apis/">CAMARA API</a> is a global project involving the largest mobile operators worldwide. Its goal is to expose core mobile network functionalities — those deeply embedded, impossible to ‘click together’ in a browser — through standardized APIs. The list of available functions is extensive. During the hackathon, we explored several of them:</p><ul><li>checking if a device is in roaming,</li><li>identity confirmation via the operator,</li><li>number verification without SMS codes,</li><li>temporary quality-of-service boosts,</li><li>device location at the network level.</li></ul><p>The goal of the hackathon was simple: inspire developers and companies to build services using these capabilities. To show that mobile networks are no longer just passive data pipes — but active layers that can enhance security, identity, quality of service, and even enable new business models.</p><p>At the hackathon, we presented a concept that tackles a growing problem at the intersection of AI and authorship. Many creators — of articles, academic papers, or written content — now face the issue of having their authentic work questioned by AI-detection tools. Platforms like GPTZero attempt to classify whether a text was written with the help of a language model. But these tools are increasingly inaccurate — in both directions.</p><blockquote>For years, we’ve had systems that check if a user is not a robot. But no system gives users a 100% guarantee that they are human.</blockquote><p>Our idea was to create a system that lets an author prove — during the creation process — that they are human and the actual creator of the work.</p><p>The <a href="http://www.likims.com/">Liki</a> Team’s idea was well received by the hackathon organizers, and we were invited to present it in the final round.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mVEfnYDDBPm8XfGKgi8gzg.jpeg" /></figure><p>Our prototype was based on several pillars:</p><ul><li>author authentication via OTP sent by the telecom operator (using CAMARA API),</li><li>geolocation confirmed through network infrastructure,</li><li>tracking the content creation process — both temporally and technically (e.g., metadata from the text editor),</li><li>and optionally, biometric verification or writing behavior analysis.</li></ul><p>What we proposed could become part of a broader protection system for creators in the age of generative AI — one that not only labels content as human-made but also provides tangible evidence of the creative process.</p><h4>CAMARA API — a few valuable use cases:</h4><h4>1. Device Roaming Status — less data, lower costs</h4><p>Not every app should behave the same at home and abroad. Roaming data costs can be disproportionately high compared to the user value.</p><p>With CAMARA Device Roaming Status, the app can detect roaming status in real time and:</p><ul><li>reduce transfer,</li><li>adjust data quality,</li><li>or switch to on-device processing (e.g., use built-in speech recognition instead of cloud-based transcription).</li></ul><p>👉 <strong>Liki scenario</strong>: In our AI assistant for field technicians, which integrates with GPT API, this function allows us to reduce roaming data costs — without interrupting service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uqs_1hadhJer7boWxxU5MA.jpeg" /></figure><h4>2. Device Swap Detection — same SIM, different phone</h4><p>Not every SIM transfer is harmless. In enterprise device fleets, moving a SIM to an unauthorized phone can breach policy — or indicate a security incident.</p><p>CAMARA Device Swap Detection detects when a SIM is used in a different device than before. It provides insight into hardware changes over time.</p><p>👉 <strong>Scenario</strong>: Companies managing logistics, service, or security fleets can react to suspicious SIM transfers — even if the number hasn’t changed.</p><h4>3. SIM Swap Detection — same number, cloned SIM?</h4><p>A more dangerous scenario: an attacker doesn’t move the SIM — they get a duplicate, often via social engineering.</p><p>The user might not realize their number has been compromised. But if it’s used for authentication in banks, clouds, or logins — the attacker gets full access.</p><p>CAMARA SIM Swap Detection checks whether a SIM has been replaced recently. It’s a red flag that can:</p><ul><li>block login attempts,</li><li>trigger additional verification,</li><li>or alert the user.</li></ul><p>👉 <strong>Scenario</strong>: Banking and identity platforms use this to detect suspicious logins from a freshly issued SIM.</p><h4>4. KYC Match — operator as a trusted data source</h4><p>When a user submits their name, ID number, or other personal details, the system can verify them against the operator’s records.</p><p>CAMARA KYC Match performs a match check — it doesn’t reveal the data but confirms whether it’s accurate.</p><p>👉 <strong>Scenario</strong>: Financial, insurance, or government onboarding processes gain a new, harder-to-fake verification layer — beyond just an ID card.</p><h4>5. Number Verification — skip the code, keep the trust</h4><p>Typical number verification: enter your number, receive SMS, enter code.</p><p>CAMARA Number Verification simplifies this — the app checks automatically if the device matches the phone number.</p><p>No code. No SMS. No risk of code hijacking.</p><p>👉 <strong>Scenario</strong>: Logging into mobile apps, account recovery, or onboarding — with less friction, same security.</p><h4>6. Device Reachability Status — is the device down, or just offline?</h4><p>In IoT systems, no response doesn’t always mean failure. It could be a temporary network issue — or something more serious.</p><p>CAMARA Device Reachability Status lets us check if the device is still registered in the network (but silent), or completely unreachable.</p><p>👉 <strong>Scenarios</strong>:</p><ul><li>Self-healing workflows: if the device is reachable, restart services without dispatching a technician.</li><li>Safety alerts: sudden disappearance from the network in a location where the device is normally active could signal an incident.</li></ul><h4>7. Quality on Demand — high-priority data, when it really matters</h4><p>Sometimes, standard mobile network quality isn’t enough — peak times or congestion can cause performance drops.</p><p>CAMARA Quality on Demand lets the app temporarily raise its traffic priority. For a set time, the app gets:</p><ul><li>lower latency,</li><li>higher bandwidth,</li><li>and more stable performance.</li></ul><p>👉 <strong>Scenario</strong>: Drone control systems transmitting real-time video and telemetry during critical infrastructure inspections — maintaining control even on busy networks.</p><h4>8. Geolocation &amp; Geofencing — the network knows where you are (and were)</h4><p>CAMARA provides two location-based tools:</p><ul><li><strong>Location Retrieval</strong> — determines device location via mobile network (not GPS). Less precise than GPS, but works indoors, in tunnels, or when satellite signal is weak.</li><li><strong>Geofencing</strong> — set up a virtual area (e.g., 300m radius) and get alerts when a device enters or leaves.</li></ul><p>👉 <strong>Scenario</strong>: Care for dependents (seniors, children), vehicle fleet tracking, industrial monitoring — anywhere location change should trigger automated system responses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D62BIJ4uzn241E5tsrV_pg.jpeg" /></figure><p>Each of these CAMARA APIs is just one piece of a bigger puzzle — enabling systems that are:</p><ul><li>more secure,</li><li>more user-aware,</li><li>and more resilient by design.</li></ul><p>Exposing such functions through APIs is a massive advantage — not just for integrators like us. It’s also an opportunity for telecoms and platform owners to see how their tech enables innovation in real-world use cases — by people who think differently.</p><p>An API is a form of trust. Operators like Orange are saying: “Here’s what we can offer. Show us what you can build with it.”</p><p>And that’s what true innovation is about — not just inventing something. But enabling others to invent beyond it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3aa31afce626" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Micro:bit & vital signs]]></title>
            <link>https://medium.com/liki-blog/micro-bit-vital-signs-b76e495f6a59?source=rss-ef4fd43761c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b76e495f6a59</guid>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[microbit]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[electronics]]></category>
            <dc:creator><![CDATA[Jan Ekiel]]></dc:creator>
            <pubDate>Mon, 01 Jun 2020 08:21:40 GMT</pubDate>
            <atom:updated>2023-11-20T15:17:16.991Z</atom:updated>
            <content:encoded><![CDATA[<h3>Micro:bit &amp; Vital Signs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vofg3I9bqmr-rwCarPg9nw.jpeg" /></figure><h3>1. About micro:bit</h3><p>MMicro:bit is a programmable ‘development board’ built with BBC and Nordic Semiconductor. This mini-computer consists of a 32-bit processor with many peripheral devices: a display with 25 LEDs, buttons, analogue and digital interfaces, temperature sensors, lights, an accelerometer, a compass, a radio transmission module, bluetooth and USB interface. It is a well-equipped tile. However, the most important thing is the purpose and execution. British and Norwegian creators of this computer have achieved their goal: a system that can be used by children and teenagers to learn robotics, programming and designing electronic circuits, game development or prototyping. Micro:bit along with a web-based and native development environment can be used by everyone, even those who have no idea about programming. We can launch the system by connecting it to a computer via USB cable. The programs can be uploaded in the same way as via USB stick. They can be written in a web browser or in a dedicated software as well. You can use the following graphic programming languages: MakeCode block like Scratch, JavaScript, microPython or C++. If you are skeptical about some of them, I can clear up your doubts and say that thanks to MakeCode anyone can implement the prototypes quickly, even of those devices that perform really advanced algorithms. What’s more, it can be done without devoting much time on programming and compilation. The device is perfect both for learning programming by children or adolescents and for experimenting in a home garage or university labs. If you need a controller for a laboratory prototype, however you are not a professional electrician or a programmer, micro:bit is just for you.</p><figure><img alt="micro: bitowe interfejsy analogowe i cyfrowe, środowisko programowania MakeCode i microPython" src="https://cdn-images-1.medium.com/max/1024/1*iKGz1sOOr1JsvDzdt-NXbA.jpeg" /></figure><h3>2. About the project: “<strong>Heart rate monitoring and pulse measurement</strong>”.</h3><p>This project shows in practice how to use micro:bit to implement a pulse measurement device. In order to build the pulse monitor and the measurement device, I used the micro:bit board and an optical heart rate detector. (pulsesensor.com)</p><p>For today’s DIY we will need:</p><ol><li>1 x micro:bit chip — <a href="http://www.microbit.org/">www.microbit.org</a> (micro:bit V1 and V2: application works correctly on both versions of the device)</li><li>1 x pulse sensor (Pulsesensor) — <a href="http://www.pulsesensor.com/">www.pulsesensor.com</a></li><li>3 x jumper wire for tiles with a female ending or a one-sided ending with a hook.</li><li>1 x power supply with a micro-B USB plug (i.e. a power adapter used to charge multiple mobile phones)</li><li>Optionally, one adapter for micro:bit which makes it easier to connect the cables.</li></ol><p>The optical detector (<a href="http://www.pulsosensor.com/">pulsesensor.com</a>) can be attached to your finger. The device scans the fingertip with an intensive light source and monitors the amount of light that returns to the detector. The blood flowing through the blood vessels absorbs the light. Within the function of time, we can observe that at one moment more light returns to the detector and next time — less. In this way we can observe the course of heart rate. The detector has got 3 wires. Two of them are used for power supply and one of them is an analog output that displays an electrical signal, proportionally to the level of light in the detector. The analog output can be connected directly to the analog controllers’ interfaces. I connected them to the micro:bit board, as shown in diagram 1.</p><p><em>Diagram 1: The connection of micro:bit board with the pulse sensor.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D9oizaqmqo3F2FUXr5sgtQ.jpeg" /></figure><p>Because micro:bit can share its power with peripheral devices, I connected it to the wires powering the optical detector. I used analogue-digital interface of micro:bit no. 2 to read the analog signal that represents the heart rate.</p><blockquote><em>Note: the detector (pulsesensor.com) is very sensitive to motion (as it generates distortion). It is also important to choose the place of measuring the pulse and the pressure while attaching the detector.</em></blockquote><p>At the website: <a href="https://pulsosensor.com/">https://pulsesensor.com</a> you will find the simplest micro:bit algorithm for reading the heart rate signal from the sensor. In this project I have shown the extended potential of the micro:bit circuit. I used a USB connection between micro:bit and a PC to present the pulse pathway. The micro:bit programming environment enables receiving data from the USB cable and presenting them in a console on a browser or a dedicated software in the form of numbers or graphs. It is also possible to save read values to CSV files for further analysis. In this case, in the graph presented in the console, you can observe the course of the measured pulse. The value of the pulse is presented on a LED display.</p><p>Figure 2.1 presents a block program, which I divided into 5 main blocks. The first one is performed when the application starts. The four remaining ones are the loops, which are executed in a parallel manner without any “pauses”. Figure 2.2 presents a list of block variables used in the program. Although the variables do not require any special form of declaration, it is good to consider their numbers and names beforehand. Figure 3 shows the same program in JavaScript.</p><blockquote>Useful remark:</blockquote><blockquote>Programmers can quickly switch between a block programming view and a JavaScript view. Both modes can be combined. If you’re missing a block, it would be easier to get this feature into JavaScript. After switching to block programming mode, the added function or a line of code in JavaScript will be presented on a separate block, which will be included in the whole program sequentially.</blockquote><p><em>Figure 2.1. Block algorithm</em></p><figure><img alt="Widok algorytmu MakeCode" src="https://cdn-images-1.medium.com/max/1024/1*cQItyArGznpYtfRtBPPp7A.jpeg" /></figure><p><a href="https://makecode.microbit.org/_iid8zbRi7Uq2">https://makecode.microbit.org/_iid8zbRi7Uq2</a></p><p><em>Figure 2.2. Variables used in a program.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vn1dnXd2jtq1X7XNCuXn5g.jpeg" /></figure><p><em>Figure 3. Source code in JavaScript.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h1y2LaVEcTgTEQ4DuOzorQ.jpeg" /></figure><h3>3. Program’s description</h3><p>Figure 4 shows a diagram of the analogue signal that is received from the sensor. The graph represents the course of the measured heart rate. The observed waveform is not as precise as shown on ECG monitors but it gives the possibility to observe and measure the pulse.</p><p><em>Figure 4. Analogue signal transmitted from the Pulsesensor which represents the pulse rate.</em></p><figure><img alt="Sygnał analogowy przesyłany z Pulsosensora, który reprezentuje częstość tętna" src="https://cdn-images-1.medium.com/max/1024/1*Mk6fZ3gQtWWXMzbHMxEC1Q.jpeg" /></figure><p>The electrical signal on the analogue micro:bit output can reach a value between 0 and 3 V. The variable representing the read signal can achieve an overall value between 0 and 1023. The range of these values in our project can be read on the analog-digital interface no. P2. For the course of the pulse shown in Figure 4 there is a minimum and a maximum value of the recorded signal. This signal decreased to the minimum value of 165 and reached the maximum value of 949. The trial and error method (non-scientific) has defined for this program two decision-making levels of the signal received from the pulsometer (Figure 5):</p><p><em>Figure 5. Two decision-making levels defined for the pulse estimation algorithm.</em></p><figure><img alt="Dwa poziomy decyzyjne zdefiniowane dla algorytmu szacowania pulsu" src="https://cdn-images-1.medium.com/max/1024/1*_1AbqhupDyAMCCu-qp1FSA.jpeg" /></figure><ol><li>When the signal level from the pulse meter rises above the value of 870, the program saves the current time of this event, assuming that an impulse was detected. Since this moment the program will not search for the next signal increase above the level of 870 unless…</li><li>…the signal from the pulse meter drops below the level of 430. Then, the program will be waiting again until the signal level rises above 870 in order to record the time of next impulse and to calculate the time (delta) between the first detected impulse and the next one. The calculated delta will allow you to measure the pulse in the next step.</li></ol><p><em>Figure 6. Impulse searching and the recording of the time when the impulse appears</em></p><figure><img alt="Wyszukiwanie impulsów i rejestracja czasu pojawienia się impulsu" src="https://cdn-images-1.medium.com/max/1024/1*eTjKdlSv1WciL4iKgdEfxg.jpeg" /></figure><p>We can often observe some interference in the pulsometer’s signal. After the signal rises above the level of 870, it can go slightly below this level in short time and then rise above it again repeatedly. This type of signal disturbance would result in an error of the heart rate measurement with a value of even several hundred percents. Therefore, it is necessary to determine next decision threshold of 430. That’s the value below which the signal must fall before waiting for the next rate impulse begins. (Figure 6).</p><p>The algorithm of the precise heart rate calculation can be certainly more accurate. The way presented in the project was chosen as a compromise between the quality of the pulse measurement and the complexity of the algorithm, including the number of parameters and conditions in the program.</p><p>The above algorithm allows to detect impulses and calculate the time lapse between two consecutive impulses (Figure 7).</p><blockquote><strong><em>delta_t = time2 — time1</em></strong></blockquote><p>The time lapse between impulses (delta_t) was calculated by subtracting “time1” from “time2”. The time saved in “time2” variable is the moment of the most recent impulse detection, and the time saved in “time1” variable is the moment of the previous impulse detection.</p><p><em>Figure 7: Calculation of the time lapse between impulses.</em></p><figure><img alt="Obliczanie upływu czasu między impulsami" src="https://cdn-images-1.medium.com/max/1024/1*DmyFjnpRrXq9hBZJUm1A4g.jpeg" /></figure><p>After calculating the time lapse between impulses, it is possible to calculate the pulse, which is defined as the number of heartbeats per minute. The “Running time” function used in the block program records the system time to a variable. This time is recorded right at the moment when this function is being called. The time value is recorded in milliseconds. Therefore, the time lapse calculated in the program is also saved in thousandths of a second. For the correct calculation of the pulse rate, we divide 60 000 (one minute equals 60 seconds and 60 000 milliseconds) by the elapsed time or “delta_t”.</p><blockquote>In Figure 3 that presents the block algorithm you can see how to calculate the pulse based on the passage of time. The variables in the block programming environment of micro:bit can only assume integer values. Therefore, the result of the calculation includes a correction for the remainder of the division.</blockquote><h4>Find out more about the program in the micro:bit block environment:</h4><h4>1. “On Start” block:</h4><p>The algorithm in this block is executed only once. It appears as the first one right after the program starts on the micro:bit device. In this block there is a function that shows the welcome message “Pulse____” on the LED display.</p><p><em>The remaining four program blocks are the loops, which are performed parallelly.</em></p><h4>2. Loop №1 — reading of the signal value from the pulsometer.</h4><p>The “Forever” loop is performed, as the name suggests, continuously. Loop no. 1 reads the value of the signal from the pulsometer. As figure no. 1 shows, the pulsometer is connected to the analog-digital interface (pin) P2 of the micro:bit circuit. The “analogue read pin P2” function enables reading the value of the analogue signal. The read value is saved in the “PulseDet” variable. The process of reading the signal value and writing it to the “PulseDet” variable is repeated and executed in an endless loop.</p><h4>3. Loop №2 — pulse calculation</h4><p>This loop is performed in one of three defined scenarios. These scenarios are executed according to the conditional function “if” and “if else”. The first scenario is carried out along with two conditions fulfilled at the same time:</p><p>1) the value of the “counter” variable equals 0,</p><p>2) and the value of the pulsometer’s signal kept in the “PulseDet” variable is higher than 870.</p><p>If both conditions are met, it can be assumed that a rising side of the impulse has been detected. The time of this incident is recorded, and then we can use the recorded time to calculate the pulse. The time of the latest pulse is recorded in “time2” variable. In the next step “delta_t”, the elapsed time between impulses, is calculated. The time of the previous impulse stored in “time1” variable is also used here.</p><blockquote>It is worth noting that after launching the program, the first calculated pulse will be faulty.<br>When the “time1” variable is called for the first time, it stores the “Zero” value.</blockquote><p>After calculating a lapse of time between impulses, “time2” (the time of the latest impulse occurrence) becomes “time1” (the time of the previous impulse occurrence). Copying the variables of the “time2” value to the “time1” variable is executed for the purpose of calculations, which will be done during the re-run of loop 2. In the next step the “counter” variable gets the value “1”. Because of that the time lapse between impulses and the pulse rate will not be calculated until the value of the pulsometer’s signal drops below 430. When signal will achieve value below 430 (P2&lt;430), the value of “counter” variable changes to “0”. Then, the pulse is calculated. To the “pulse_out” variable there is saved a value representing the pulse: the number of impulses per minute. It is calculated as the quotient of 60000 milliseconds and “delta_t” variable. We can calculate exactly, how many elapses between two impulses fit in one minute. Variables in a block programming environment can only take integer values. However, the division operation may not result in an integer. That’s why the program includes a patch, which enables avoiding an error of writing a floating-point number (the result of the division) into the “pulse_out” variable, which can store only integral numbers. Getting rid of the “fractions” is possible thanks to “remainder of” function. First, the remainder of the division (60000/delta_t) is subtracted from 60000 milliseconds and then the result of this operation is divided by “delta_t” variable. In this way the result stored in “pulse_out” variable will always have an integer value. After calculating the pulse, the program finishes performing the condition for the scenario in which the pulse signal increases above 870 and “counter” value is 0. Next, loop 2 re-starts the performance.</p><p>The second possible scenario for loop no. 2 specified in the condition “else if” will be executed along with two conditions fulfilled simultaneously:</p><ol><li>The value of “PulseDet” variable representing the level of pulsometer’s signal is less than or equal 430.</li><li>The value of ‘counter’ variable is 1.</li></ol><p>The ‘counter’ value is set as 1 when the pulsometer’s signal rises above the value of 870. Since the program cannot allow any interference, the time of the next impulse (when signal rises above 870) will not be recorded until the signal value drops to 430. When this condition is met, the program changes the value of “couter” variable to 0 and from that moment, Loop №2 will again record the occurrence of impulse which level gets above 870.</p><p>The third scenario of Loop 2, as well as “if” and “else if” conditions will occur when none of the conditions described above is met. This means that when e.g. the signal value rises above 870 and the value of “counter” variable equals 1. In this scenario there is only one operation performed: the re-start of Loop no. 2 execution.</p><h4>4. Loop №3 — pulse value displayed on micro:bit circuit LED display</h4><p>Here, in the loop, the value of the “pulse_out” variable is shown on the display screen. The pulse value will be presented on the screen in turns with the “heart” icon.</p><h4>5. Loop №4 — transmitting the pulse signal value to a PC or other device connected to the USB cable of the micro:bit chip.</h4><p>Within the loop, “serial write value” function will send a text to the USB interface. The text includes the words: “Pulse diagram” and a number that is the value currently stored in “PulseDet” variable. As a result, in the development environment console, you can observe a graph presenting the variation of the pulsometer’s signal level in the function of time. In the console it is also possible to read the received signal values and save them as a file for further analysis — e.g. to develop even better pulse calculating algorithm. In a block programming environment, we can turn on the console view by clicking “Show console device” button (Figure 8). This button appears only if the program uses “serial write value” function and when micro:bit is connected to the computer.</p><p><em>Figure 8: View of the block programming environment with a console to monitor data driven from the USB cable.</em></p><figure><img alt="Konsola do monitorowania danych otrzymanych z kabla USB" src="https://cdn-images-1.medium.com/max/1024/1*hEMRLkJxj31cn5HNWRLQAA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b76e495f6a59" width="1" height="1" alt=""><hr><p><a href="https://medium.com/liki-blog/micro-bit-vital-signs-b76e495f6a59">Micro:bit &amp; vital signs</a> was originally published in <a href="https://medium.com/liki-blog">Liki Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>