<?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 Halil Tek on Medium]]></title>
        <description><![CDATA[Stories by Halil Tek on Medium]]></description>
        <link>https://medium.com/@halil_tek?source=rss-b1eeb0628c1a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_cUpVCM6yQqL3JDwWbCVTg.jpeg</url>
            <title>Stories by Halil Tek on Medium</title>
            <link>https://medium.com/@halil_tek?source=rss-b1eeb0628c1a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 19:45:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@halil_tek/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[Protecting Phone Call Privacy: The “Galaxy SecureSense” Concept for One UI and Galaxy AI]]></title>
            <link>https://medium.com/@halil_tek/protecting-phone-call-privacy-the-galaxy-securesense-concept-for-one-ui-and-galaxy-ai-26b12601e751?source=rss-b1eeb0628c1a------2</link>
            <guid isPermaLink="false">https://medium.com/p/26b12601e751</guid>
            <dc:creator><![CDATA[Halil Tek]]></dc:creator>
            <pubDate>Sun, 30 Aug 2026 08:03:48 GMT</pubDate>
            <atom:updated>2026-08-30T08:03:48.463Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jajf2sEjMO9rZAKZMcSd0g.jpeg" /></figure><p>The Invisible Privacy Gap in Modern Mobile Calls</p><p>In today’s hyper-connected world, voice calls and VoIP communications remain an indispensable part of our daily routines. We use them for everything from quick check-ins with family to sensitive, confidential business conversations. Yet, despite major leaps forward in mobile security such as end-to-end encryption, biometric locks, and advanced malware protection we still face a glaring, highly overlooked privacy vulnerability during regular phone calls.</p><p>Think about the last time you made an important call. Did you know for certain whether the person on the other end switched their audio to the <strong>speakerphone</strong>?</p><p>Most of the time, you don’t. Callers frequently share private details, personal thoughts, or sensitive information without realizing that the recipient’s phone is sitting on a desk or surrounded by other people on speaker mode. This silent oversight leads to severe privacy violations, awkward social encounters, and unintended data leaks.</p><h3>“Galaxy SecureSense”</h3><p>What if our smartphones could proactively protect us from this vulnerability?</p><p>The solution is <strong>Galaxy SecureSense </strong>a conceptual feature designed natively for the Samsung One UI and powered by Galaxy AI. The core objective is simple yet revolutionary: <strong>to provide a real-time, cross-device privacy alert when the recipient activates speakerphone mode during a call.</strong></p><h3>How It Works: The Technical Architecture</h3><p>For this feature to function seamlessly, it relies on ecosystem-level intelligence, combining on-device state detection with secure, low-latency cross-device synchronization.</p><ul><li><strong>State and Intent Detection:</strong> The moment the recipient taps the speaker icon on their Samsung interface (or when on-device acoustic algorithms recognize the audio output routing change), the system instantly registers the state shift.</li><li><strong>Encrypted Ecosystem Synchronization:</strong> Utilizing secure, real-time metadata exchange between two Galaxy devices, this status change is transmitted in milliseconds across the encrypted communication tunnel.</li><li><strong>Acoustic and Haptic Privacy Alert:</strong> A subtle, non-intrusive auditory cue such as a distinctive “beep-beep” tone or a specialized notification is routed directly to the ear of the user holding the phone against their ear.</li></ul><p>By receiving this immediate feedback, the caller knows instantly that the audio environment has changed. They can pause, adjust their tone, or hold off on sharing sensitive details until privacy is restored.</p><h3>Why This Matters for the Galaxy Ecosystem</h3><p>Samsung’s <strong>One UI</strong> and <strong>Galaxy AI</strong> philosophy has always focused on human-centric innovation features that solve genuine, everyday friction points for users.</p><p>Implementing a feature like <em>Galaxy SecureSense</em> would deliver profound advantages:</p><ol><li><strong>Unprecedented Privacy Control:</strong> It bridges a gap that software encryption alone cannot cover: <em>the physical environment of the listener</em>.</li><li><strong>Ecosystem Lock-in &amp; Differentiation:</strong> By leveraging the deep hardware-software synergy exclusive to Samsung devices, it creates a powerful competitive edge that cross-platform operating systems cannot easily replicate.</li><li><strong>Proactive AI Integration:</strong> Moving AI beyond simple text summaries or photo editing into real-time, contextual conversation safety.</li></ol><h3><strong>Consider an even more critical real world scenario:</strong></h3><p>You are driving with your car’s hands-free system connected, and you are not alone in the carperhaps your children or family members are right beside you. Have you ever experienced that tense moment when the person on the other end answers or switches to speaker/hands-free mode, and an accidental slip of the tongue or a curse word is suddenly broadcasted to everyone in your vehicle? Providing an instant notification to the caller indicating that the recipient’s phone is on speaker or hands-free mode would largely prevent such awkward, socially risky situations from ever happening.</p><h3>Conclusion and the Road Ahead</h3><p>As mobile technology continues to evolve, the definition of security must expand to include our acoustic and social privacy. Small protocol-level enhancements like <em>Galaxy SecureSense</em> prove that innovation isn’t just about raw processing power it’s about empathy-driven design that protects everyday users.</p><p><em>What are your thoughts on call privacy? Have you ever experienced an awkward moment due to an unannounced speakerphone activation? Let’s discuss in the comments below.</em></p><p><em>I have already shared this innovative concept directly with several Samsung representatives and teams, but reaching decision-makers internally can be quite challenging. Therefore, I believe that building awareness and gathering support here within the tech and user community might help this idea finally catch the attention of the right people at Samsung. If you find this concept valuable, your support, comments, or shares would mean a world of difference!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26b12601e751" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bye Vapi & Bland.ai: Building Custom, Open-Source Voice AI Agents with LiveKit & Python]]></title>
            <link>https://medium.com/@halil_tek/bye-vapi-bland-ai-building-custom-open-source-voice-ai-agents-with-livekit-python-d8b7f26ed073?source=rss-b1eeb0628c1a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8b7f26ed073</guid>
            <category><![CDATA[ai-voice-agent-free]]></category>
            <category><![CDATA[open-source-ai]]></category>
            <dc:creator><![CDATA[Halil Tek]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 09:00:24 GMT</pubDate>
            <atom:updated>2026-08-26T09:00:24.099Z</atom:updated>
            <content:encoded><![CDATA[<p>When diving into the world of Voice AI, platform-as-a-service providers like <strong>Vapi</strong>, <strong>Synthflow</strong>, or <strong>Bland.ai</strong> offer a great entry point. However, as your production requirements mature, these platforms often reveal significant limitations:</p><ul><li><strong>Black Box Architecture:</strong> You lack low-level control over the conversational orchestration and pipeline parameters.</li><li><strong>High Infrastructure Costs:</strong> High per-minute rates make scaling expensive very quickly.</li><li><strong>Latency &amp; Tool Calling Delays:</strong> Executing third-party tool calls or integrating custom backend logic frequently introduces noticeable latency.</li></ul><p>So, is there an alternative that grants total code-level control, high responsiveness, and seamless scalability without sacrificing developer experience? <strong>Yes: LiveKit.</strong></p><p>LiveKit is an open-source Python framework (and real-time infrastructure) that allows you to construct voice agents programmatically. You retain complete ownership over the voice pipeline, models, tool calls, and deployment options — whether hosting on your own infrastructure or deploying to LiveKit Cloud.</p><h3>Understanding the LiveKit Voice Pipeline</h3><p>A typical conversational voice agent built with LiveKit operates across a three-stage streaming pipeline:</p><ol><li><strong>STT (Speech-to-Text):</strong> Converts inbound client audio stream into text (e.g., Deepgram).</li><li><strong>LLM (Large Language Model):</strong> Processes the transcribed text and executes function tools or generates responses (e.g., OpenAI GPT-4o, Anthropic Claude).</li><li><strong>TTS (Text-to-Speech):</strong> Synthesizes the generated LLM text response back into an audio stream for the client (e.g., Cartesia, OpenAI Voice).</li></ol><p>Alternatively, developers can swap this architecture for direct <strong>Voice-to-Voice</strong> models such as the OpenAI Realtime API.</p><h3>1. Building a Basic Voice Agent</h3><p>Let’s begin by installing the core packages and initializing a minimal voice agent.</p><h3>Prerequisites &amp; Installation</h3><p>Bash</p><pre>pip install livekit-agents livekit-plugins-openai livekit-plugins-deepgram python-dotenv</pre><h3>Python Implementation: basic_agent.py</h3><p>Python</p><pre>import os<br>from dotenv import load_dotenv<br>from livekit.agents import Agent, AgentSession, CLI, Room<br>from livekit.plugins import openai, deepgram</pre><pre># Load environment variables (API Keys)<br>load_dotenv()</pre><pre>class Assistant(Agent):<br>    def __init__(self):<br>        # Define the system prompt for the voice agent<br>        super().__init__(<br>            instructions=&quot;You are a helpful, concise, and friendly AI voice assistant.&quot;<br>        )</pre><pre>async def entrypoint(ctx: Room):<br>    # Construct the Voice Pipeline Session<br>    session = AgentSession(<br>        stt=deepgram.STT(),<br>        llm=openai.LLM(model=&quot;gpt-4o-mini&quot;),<br>        tts=openai.TTS(voice=&quot;alloy&quot;)<br>    )</pre><pre>    # Start the agent session within the room context<br>    await session.start(ctx)</pre><pre>    # Trigger an initial greeting upon user connection<br>    await session.generate_reply(<br>        input=&quot;Give a warm and concise welcome message to the user.&quot;<br>    )</pre><pre>if __name__ == &quot;__main__&quot;:<br>    CLI.run_app(entrypoint)</pre><p>You can test this agent locally directly inside your terminal using the console flag:</p><p>Bash</p><pre>python basic_agent.py console</pre><h3>2. Extending Agent Capabilities with Function Tooling</h3><p>Adding tools to your LiveKit agent is straightforward. By decorating standard Python functions with @function_tool, you allow the underlying LLM to autonomously invoke Python code during live voice sessions.</p><p>Below is an extended implementation featuring real-time date lookup and mock Airbnb booking operations:</p><p>Python</p><pre>import os<br>from datetime import datetime<br>from dotenv import load_dotenv<br>from livekit.agents import Agent, AgentSession, CLI, Room, function_tool<br>from livekit.plugins import openai, deepgram</pre><pre>load_dotenv()</pre><pre>class AirbnbAssistant(Agent):<br>    def __init__(self):<br>        super().__init__(<br>            instructions=&quot;You are an AI concierge assistant that helps users search for and book Airbnb listings.&quot;<br>        )</pre><pre>    @function_tool<br>    async def get_current_date_and_time(self) -&gt; str:<br>        &quot;&quot;&quot;Retrieves the current system date and time.&quot;&quot;&quot;<br>        return datetime.now().strftime(&quot;%Y-%m-%d %H:%M:%S&quot;)</pre><pre>    @function_tool<br>    async def search_airbnb(self, city: str) -&gt; str:<br>        &quot;&quot;&quot;<br>        Searches available Airbnb listings in a specified city.<br>        <br>        Args:<br>            city: The target city name to perform the search.<br>        &quot;&quot;&quot;<br>        # Simulated search results (Mock Data)<br>        return (<br>            f&quot;Found 3 listings in {city}: &quot;<br>            &quot;1. Cozy Downtown Loft ($150/night), &quot;<br>            &quot;2. Modern Studio ($120/night), &quot;<br>            &quot;3. Luxury Villa ($450/night).&quot;<br>        )</pre><pre>    @function_tool<br>    async def book_airbnb(<br>        self, listing_name: str, guest_name: str, check_in: str, check_out: str<br>    ) -&gt; str:<br>        &quot;&quot;&quot;<br>        Books a specific Airbnb listing for given dates.<br>        <br>        Args:<br>            listing_name: The title of the property listing.<br>            guest_name: Full name of the primary guest.<br>            check_in: Check-in date format (YYYY-MM-DD).<br>            check_out: Check-out date format (YYYY-MM-DD).<br>        &quot;&quot;&quot;<br>        return (<br>            f&quot;Successfully booked {listing_name} from {check_in} to {check_out} &quot;<br>            f&quot;under the name {guest_name}.&quot;<br>        )</pre><pre>async def entrypoint(ctx: Room):<br>    session = AgentSession(<br>        stt=deepgram.STT(),<br>        llm=openai.LLM(model=&quot;gpt-4o-mini&quot;),<br>        tts=openai.TTS()<br>    )<br>    <br>    await session.start(ctx, agent=AirbnbAssistant())<br>    await session.generate_reply(input=&quot;Greet the user as their personal Airbnb assistant.&quot;)</pre><pre>if __name__ == &quot;__main__&quot;:<br>    CLI.run_app(entrypoint)</pre><h3>3. Advanced Integration: Connecting Model Context Protocol (MCP)</h3><p>LiveKit integrates seamlessly with external protocols. For instance, you can expose real-world backend APIs (e.g., live booking engines) to your voice agent via an MCP Gateway running inside Docker:</p><p>Python</p><pre># Model Context Protocol (MCP) Server Configuration<br>mcp_servers = [<br>    {<br>        &quot;url&quot;: &quot;http://localhost:8089/sse&quot;,  # Docker MCP Gateway Endpoint<br>        &quot;type&quot;: &quot;sse&quot;<br>    }<br>]</pre><pre>session = AgentSession(<br>    stt=deepgram.STT(),<br>    llm=openai.LLM(),<br>    tts=openai.TTS(),<br>    mcp_servers=mcp_servers  # Pass MCP endpoints directly into the session<br>)</pre><h3>4. Deploying to Production via LiveKit Cloud</h3><p>Once your local agent logic is validated, you can deploy it to LiveKit Cloud to interact with it via web browsers or connect it to telecommunication providers (SIP/Twilio).</p><p><strong>1.Install LiveKit CLI &amp; Authenticate:</strong></p><p>Install the CLI tool for your operating system and authenticate your developer workspace:</p><p>Bash</p><pre># Windows (via winget)<br>winget install LiveKit.CLI</pre><pre># macOS (via Homebrew)<br>brew install livekit-cli</pre><pre># Authenticate workspace<br>lk cloud auth</pre><p><strong>2.Configure Environment Variables:</strong></p><p>Push your local environment configuration (API keys) securely to your cloud workspace:</p><p>Bash</p><pre>lk app env</pre><p><strong>3.Build and Deploy the Agent Container:</strong></p><p>Initialize and deploy the agent stack:</p><p>Bash</p><pre># Set up app configuration<br>lk app start</pre><pre># Deploy agent to cloud<br>lk agent create</pre><p>The CLI packages your application into a Docker container and deploys it to LiveKit Cloud infrastructure automatically.</p><p><a href="https://github.com/coleam00/ottomator-agents/tree/main/livekit-agent">https://github.com/coleam00/ottomator-agents/tree/main/livekit-agent</a></p><h3>Summary</h3><p>By leveraging LiveKit, you eliminate middleman fees, vendor lock-in, and restrictive black-box platforms. Since the entire voice interaction flow is written in native Python code, you maintain complete flexibility to integrate custom RAG pipelines, internal databases, or external microservices while achieving sub-second real-time voice latency.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8b7f26ed073" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Wasting Your Obsidian Vault: How to Supercharge Your Second Brain with Claude Code (And Save…]]></title>
            <link>https://medium.com/@halil_tek/stop-wasting-your-obsidian-vault-how-to-supercharge-your-second-brain-with-claude-code-and-save-57649b868b8f?source=rss-b1eeb0628c1a------2</link>
            <guid isPermaLink="false">https://medium.com/p/57649b868b8f</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Halil Tek]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 11:09:28 GMT</pubDate>
            <atom:updated>2026-06-12T11:09:28.633Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Stop Wasting Your Obsidian Vault: How to Supercharge Your Second Brain with Claude Code (And Save Thousands in Tokens)</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*D-oeKHnCdzsuoiziR6Vy5A.png" /></figure><p>“Most people use Obsidian as a graveyard for thoughts. They dump markdown files into a folder, hope for the best, and call it a ‘Second Brain.’ It’s not. A pile of text isn’t a brain — it’s just a digital archive.</p><p>After 17 years in software architecture, I realized the real bottleneck isn’t <em>capturing</em> information; it’s <em>connecting and executing</em> on it. In 2026, we finally have the missing link: <strong>Claude Code.</strong> By turning an AI agent loose on your local markdown files, you stop being a note-taker and start being an architect of your own cognition. Here is how I turned my static notes into an active, token-optimized engine.”</p><h3>Implementation Guide</h3><h4>Step 1: The Infrastructure (Local-First)</h4><p>Unlike cloud-based LLM tools that burn tokens by sending your entire history back and forth, Obsidian + Claude Code keeps the intelligence local.</p><ul><li><strong>Install Claude Code:</strong> Ensure your environment is configured for the CLI agent.</li><li><strong>The Vault Structure:</strong> Ensure your vault follows a clear directory structure (e.g., /journal, /projects, /zettelkasten). This makes the file system navigation for the agent predictable and efficient.</li></ul><h4>Step 2: Token-Efficient Indexing</h4><p>Don’t feed your entire vault to the LLM — that’s how you waste money.</p><ul><li><strong>Create a </strong><strong>system_context.md:</strong> Inside your vault, keep a master file that contains your current goals, core projects, and writing style.</li><li><strong>Prompt the Agent:</strong> When triggering Claude Code, point it specifically to the context it needs: <em>“Analyze my notes in </em><em>/projects/wpasistan and cross-reference with </em><em>/journal/2026-06 to suggest improvements.&quot;</em></li></ul><h4>Step 3: The “Agentic” Workflow</h4><p>Now, make the AI work. Use these commands to trigger the Second Brain:</p><ul><li><strong>The Review:</strong> “Scan my /journal for the last 30 days and extract recurring technical bottlenecks.&quot;</li><li><strong>The Synthesizer:</strong> “Look at my notes on Linux server management and draft a ‘Best Practices’ guide based on the logic I’ve documented.”</li><li><strong>The Automator:</strong> “Organize the loose notes in my /inbox based on the project tags identified in my /projects folder.&quot;</li></ul><h4>Step 4: Architecting for Cost Optimization</h4><ul><li><strong>Use </strong><strong>.claudecodesignore:</strong> Just like .gitignore, prevent the agent from reading binary files, large media caches, or long-forgotten drafts that don&#39;t add value. This saves massive amounts of tokens.</li><li><strong>Chunking:</strong> If your vault is massive, use claude-code to navigate folder-by-folder rather than asking for a global audit.</li></ul><h3>Why this wins:</h3><ol><li><strong>Technical Authority:</strong> You aren’t just summarizing an article; you are giving an “Architect’s Guide.”</li><li><strong>Pain Point:</strong> You focus on “Token Optimization” (saving money), which every professional developer cares about.</li><li><strong>CTA Placement:</strong> You can end this with: <em>“I use this exact setup to manage my agency projects and technical research. If you want to see how I integrate this with my hosting business workflows, check out </em><a href="https://kuzeyhost.com/"><em>kuzeyhost.com</em></a><em>.”</em></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57649b868b8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How a Single Markdown File Conquered GitHub]]></title>
            <link>https://medium.com/@halil_tek/how-a-single-markdown-file-conquered-github-8a52b02b498e?source=rss-b1eeb0628c1a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a52b02b498e</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Halil Tek]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 10:41:16 GMT</pubDate>
            <atom:updated>2026-06-12T10:41:39.640Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*itlP-vGNsRwSoO3uBIxXrA.jpeg" /></figure><p>There is a repository on GitHub that has racked up 91,000 stars, yet it contains absolutely no code. It is just a plain text file named CLAUDE.md, filled with four simple behavioral rules derived from Andrej Karpathy&#39;s insights. So, why did such a simple file trigger a massive viral reaction?</p><h4>The Problem</h4><p>Most developers using AI coding agents face the same frustrations:</p><ul><li><strong>Silent Assumptions:</strong> Agents take complex, unrequested actions without checking in.</li><li><strong>Over-Engineering:</strong> They introduce unnecessary classes and dependencies for simple tasks.</li><li><strong>Scope Creep:</strong> When asked to fix a single bug, agents often reformat entire files or modify unrelated functions.</li></ul><p>The CLAUDE.md file serves as a behavioral contract designed specifically to curb these &quot;default&quot; bad habits.</p><h4>The Four Core Rules</h4><p>Curated by Forrest Chang, these principles are essentially the advice any senior engineer would give a junior on their first day:</p><ol><li><strong>Think Before Coding:</strong> State your assumptions. Ask if a request is ambiguous. Do not favor complexity.</li><li><strong>Simplicity First:</strong> Write the most minimal code possible. Avoid unnecessary abstractions or “speculative” flexibility.</li><li><strong>Surgical Changes:</strong> Modify only what is required. Do not refactor code that isn’t broken.</li><li><strong>Goal-Driven Execution:</strong> Turn vague instructions into verifiable, testable targets before writing a single line.</li></ol><h4>Why It Works So Well</h4><p>This file isn’t “software”; it is a <strong>behavioral guide</strong>. When placed in the root directory of a project, Claude Code automatically reads it and adheres to these guardrails in every session. It requires zero configuration, zero maintenance, and adds no API costs.</p><h4>Important Caveats</h4><ul><li><strong>Not Magic:</strong> It is a contract, not a guarantee. It improves the distribution of behavior, but it cannot make an agent perfect.</li><li><strong>Universal Principles:</strong> These rules are not exclusive to Claude; they can be applied to any coding agent, such as Cursor.</li><li><strong>Not a Template, but a Menu:</strong> These four rules serve as a baseline. You should append them to your project’s existing instructions, such as naming conventions or test policies.</li></ul><h4>The Bottom Line</h4><p>While most of the AI tooling ecosystem is focused on adding more layers — plugins, fine-tuning, and complex integrations — this file succeeded by doing the opposite. Sixty-five lines of plain English addressed the most common pain points developers experience daily. The 91,000 stars are not just for a file; they are a sign of pent-up frustration with agents that were too eager to overcomplicate things.</p><p><strong>This same philosophy — that simplicity is the ultimate sophistication — is what led me to develop </strong><a href="https://wpasistan.tr/"><strong>WPAsistan</strong></a><strong>. While large coding agents often struggle with over-engineering, I built WPAsistan to provide businesses with focused, predictable, and surgical automation for WhatsApp. It avoids the “bloated agent” syndrome by sticking to clear, goal-oriented workflows that get the job done without touching code that isn’t broken.</strong></p><p>If you are tired of AI agents breaking your codebases, adding this CLAUDE.md to your project might be the best technical investment you make this year. And if you’re looking for automation that values your time as much as your code, check out how we’ve implemented these principles at <a href="https://wpasistan.tr/"><strong>WPAsistan</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a52b02b498e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond WHMCS: How I Architected a Cloud Provisioning Engine in Just 65 Lines of Code.]]></title>
            <link>https://medium.com/@halil_tek/stop-overpaying-for-whmcs-modules-build-your-own-cloud-provisioning-engine-b865f84d6a17?source=rss-b1eeb0628c1a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b865f84d6a17</guid>
            <category><![CDATA[whmcs-and-digitalocean]]></category>
            <dc:creator><![CDATA[Halil Tek]]></dc:creator>
            <pubDate>Thu, 14 May 2026 11:33:00 GMT</pubDate>
            <atom:updated>2026-06-12T11:00:45.739Z</atom:updated>
            <content:encoded><![CDATA[<h3>Stop Overpaying for WHMCS Modules: Build Your Own Cloud Provisioning Engine</h3><p>This is a comprehensive, technical guide designed for Medium or a professional blog. It positions the transition from a traditional reseller to an automated IaaS (Infrastructure as a Service) provider as a strategic business move that saves significant capital while increasing technical authority.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lIA4L3fP6XSdVcsM1zs4VA.png" /></figure><h3>Why I Ditched $1,200/Year WHMCS Modules to Build a Custom Cloud Engine Using n8n and Native PHP Hooks.</h3><p>The hosting industry is shifting. For years, being a <strong>reseller</strong> meant managing shared resources with thin margins and paying high “software taxes” for every automation bridge. If you wanted to sell VPS services, you were told to buy a premium module, often costing upwards of <strong>$1,199.96 per year</strong>.</p><p>As a developer-founder, I realized we are paying for a “bridge” we can build ourselves. By leveraging the <strong>DigitalOcean API</strong>, you can bypass these costs and deliver a high-end, white-label experience. Whether you prefer a visual workflow or a zero-dependency code approach, here is the blueprint to take your reseller business to the cloud.</p><h3>The Core Concept: The “Golden Image” Strategy</h3><p>Before you automate, you need a product. Instead of delivering a blank OS, you should deliver a solution.</p><ol><li><strong>Preparation:</strong> Manually create a Droplet, install your stack (Docker, n8n, Nginx, etc.), and harden the security.</li><li><strong>Snapshotting:</strong> Take a <strong>Snapshot</strong> in your DigitalOcean panel. This becomes your “Golden Image”.</li><li><strong>Identification:</strong> Use the API to find your <strong>Snapshot ID</strong> so your automation knows what to clone:</li></ol><h3>How to Retrieve Your Snapshot ID (Bash)</h3><p>If you had trouble with the previous commands, use these refined versions to get your ID accurately.</p><p><strong>Option A: List All Snapshots</strong></p><p>Bash</p><pre>curl -X GET \<br>-H &quot;Content-Type: application/json&quot; \<br>-H &quot;Authorization: Bearer YOUR_API_TOKEN&quot; \<br>&quot;https://api.digitalocean.com/v2/snapshots?resource_type=droplet&quot;</pre><p><strong>Option B: Extract Only ID and Name (Requires jq)</strong></p><p>Bash</p><pre>curl -X GET -s \<br>-H &quot;Authorization: Bearer YOUR_API_TOKEN&quot; \<br>&quot;https://api.digitalocean.com/v2/snapshots?resource_type=droplet&quot; | jq &#39;.snapshots[]</pre><h3>Approach A: The “Visual Orchestrator” (Using n8n)</h3><p>Using <strong>n8n</strong> as middleware is ideal for those who want a flexible system that can be easily monitored and expanded without deep-diving into PHP every time a change is needed.</p><h3>1. The WHMCS Hook</h3><p>This script acts as the “trigger.” Place it in /includes/hooks/n8n_vps_trigger.php.</p><p>PHP</p><pre>&lt;?php<br>/**<br> * Triggers n8n Workflow on Order Acceptance<br> */<br>add_hook(&#39;AcceptOrder&#39;, 1, function($vars) {<br>    $webhookUrl = &#39;https://your-n8n-instance.com/webhook/vps-provision&#39;;<br>    <br>    // Package data to send to n8n<br>    $payload = [<br>        &#39;service_id&#39; =&gt; $vars[&#39;serviceid&#39;],<br>        &#39;client_id&#39;  =&gt; $vars[&#39;userid&#39;],<br>        &#39;product_id&#39; =&gt; $vars[&#39;pid&#39;],<br>        &#39;timestamp&#39;  =&gt; date(&#39;Y-m-d H:i:s&#39;)<br>    ];</pre><pre>    $ch = curl_init($webhookUrl);<br>    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br>    curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));<br>    curl_setopt($ch, CURLOPT_HTTPHEADER, [&#39;Content-Type: application/json&#39;]);<br>    curl_exec($ch);<br>    curl_close($ch);<br>});</pre><h3>2. The n8n Workflow Architecture</h3><ul><li><strong>Webhook Node:</strong> Listens for the WHMCS signal.</li><li><strong>DigitalOcean Node:</strong> Executes POST /v2/droplets. You pass the size (RAM/CPU) and your Snapshot ID.</li><li><strong>Wait Node:</strong> A 60-second pause ensures DigitalOcean has time to assign an IP.</li><li><strong>IP Retrieval:</strong> A second DigitalOcean node fetches the Droplet details.</li><li><strong>WHMCS API Node:</strong> Uses the WHMCS Internal API to update the “Dedicated IP” field, notifying the customer that their server is ready.</li></ul><p><strong>Pros:</strong> Visual debugging, easy to add Slack/Telegram notifications, and perfect for complex logic.</p><h3>Approach B: The “Lightweight Engine” (Direct PHP)</h3><p>For developers who want a zero-dependency architecture with maximum speed, speaking directly from <strong>WHMCS to DigitalOcean</strong> is the way to go.</p><h3>1. The Implementation</h3><p>This hook handles the entire request-response cycle. Create /includes/hooks/direct_do_provision.php:</p><p>PHP</p><pre>&lt;?php<br>add_hook(&#39;OrderPaid&#39;, 1, function($vars) {<br>    $apiToken   = &#39;YOUR_DIGITAL_OCEAN_TOKEN&#39;;<br>    $snapshotId = &#39;YOUR_GOLDEN_SNAPSHOT_ID&#39;;<br>    $serviceId  = $vars[&#39;serviceid&#39;];</pre><pre>    // Define Droplet Specifications<br>    $vpsConfig = [<br>        &quot;name&quot;   =&gt; &quot;vps-node-&quot; . $serviceId,<br>        &quot;region&quot; =&gt; &quot;fra1&quot;, // Frankfurt Data Center<br>        &quot;size&quot;   =&gt; &quot;s-1vcpu-2gb&quot;, <br>        &quot;image&quot;  =&gt; $snapshotId,<br>        &quot;tags&quot;   =&gt; [&quot;whmcs-automated&quot;, &quot;customer-vps&quot;]<br>    ];</pre><pre>    $ch = curl_init(&quot;https://api.digitalocean.com/v2/droplets&quot;);<br>    curl_setopt($ch, CURLOPT_HTTPHEADER, [<br>        &quot;Authorization: Bearer $apiToken&quot;,<br>        &quot;Content-Type: application/json&quot;<br>    ]);<br>    curl_setopt($ch, CURLOPT_POST, true);<br>    curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($vpsConfig));<br>    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);</pre><pre>    $response = curl_exec($ch);<br>    $data = json_decode($response, true);<br>    curl_close($ch);</pre><pre>    if (isset($data[&#39;droplet&#39;][&#39;id&#39;])) {<br>        logActivity(&quot;VPS Provisioning Initiated for Service ID: &quot; . $serviceId);<br>        // Optional: Trigger a local cron job to poll for the IP address later.<br>    } else {<br>        logActivity(&quot;VPS Provisioning FAILED for Service ID: &quot; . $serviceId . &quot; - Error: &quot; . json_encode($data));<br>    }<br>});</pre><p><strong>Pros:</strong> No external servers required, lower overhead, and direct integration. <strong>Cons:</strong> Harder to debug visual errors and requires more robust “Error Handling” code.</p><h3>Why This is the Future for VPS Resellers</h3><p>Selling VPS services shouldn’t mean losing your profits to software vendors. By building your own engine:</p><ul><li><strong>Maximizing Margins:</strong> You pay only for the raw infrastructure.</li><li><strong>True White-Labeling:</strong> You control the OS, the pre-installed apps, and the login experience.</li><li><strong>Business Agility:</strong> Want to sell “SEO-Optimized VPS” or “Developer-Ready Nodes”? Just change your Snapshot and update your hook.</li></ul><p><strong>For the modern reseller, the code is the gateway to scaling. Stop buying the bridge — start building the engine.</strong></p><p><em>Follow for more deep dives into API-first business models, high-level automation, and cost-efficient cloud architecture.</em></p><p><strong>Architect’s Final Note:</strong> I actively use this automation infrastructure for my own hosting brand, <a href="https://kuzeyhost.com/">kuzeyhost.com</a>. This is not just a theoretical blog post; it is an architecture tested in the field, optimized for efficiency, and designed to increase profitability. If you are building your own hosting infrastructure or need technical consulting on cloud solutions, feel free to check out <a href="https://kuzeyhost.com/">kuzeyhost.com</a> or connect with me directly to discuss your project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b865f84d6a17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Journey Behind Weribox: From Challenges to Innovation]]></title>
            <link>https://medium.com/@halil_tek/the-journey-behind-weribox-from-challenges-to-innovation-50f85ecc643d?source=rss-b1eeb0628c1a------2</link>
            <guid isPermaLink="false">https://medium.com/p/50f85ecc643d</guid>
            <dc:creator><![CDATA[Halil Tek]]></dc:creator>
            <pubDate>Thu, 21 Nov 2024 10:02:42 GMT</pubDate>
            <atom:updated>2024-11-21T10:02:42.411Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i_lvLIyh4di_gT8KbEuTFw.png" /></figure><p>The path to innovation is never an easy one, and the story of <strong>Weribox</strong> is no exception. As someone who has spent over 15 years in software engineering, I have always dreamed of creating a product that combines smart technology with simplicity. With this vision in mind, I started working on Weribox — a device that bridges the gap between real-time financial data and user convenience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*stiYHE47NgUe4mJIzf4c6Q.jpeg" /></figure><p>Building Weribox wasn’t just about writing code or designing hardware. It was a journey filled with countless challenges, sleepless nights, and moments of doubt. From perfecting the e-paper display to integrating real-time data with LED notifications, every aspect required rigorous research and development. Along the way, I encountered numerous technical hurdles — issues with connectivity, optimizing power consumption, and making the device truly user-friendly. Each obstacle taught me something new and pushed me to create a better product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RfXp9kmi0jtLXk_trB4N0Q.png" /></figure><h3>Bringing Weribox to Life with Kickstarter</h3><p>Now that Weribox is complete and ready to make an impact, I’ve realized that the next step requires more than just a great idea and determination. To truly bring this product to life and into the hands of people who need it, I need the support of a community that believes in the power of innovation. That’s why I’ve decided to take Weribox to <strong>Kickstarter</strong>, a platform that has turned countless dreams into reality.</p><p>Kickstarter is more than just a crowdfunding platform — it’s a place where creators and supporters come together to bring bold ideas to life. For Weribox, it represents a chance to take this project to the next level. By joining Kickstarter, I’m not just seeking financial support but also a community of visionaries who see the value of a device like Weribox in today’s fast-paced financial world.</p><p>Through Kickstarter, I aim to:</p><ol><li><strong>Scale Production:</strong> With your support, I can move from small-scale production to mass manufacturing, ensuring Weribox is accessible to a wider audience.</li><li><strong>Enhance Features:</strong> Every pledge will contribute to refining and adding more features to Weribox, making it even more powerful and user-friendly.</li><li><strong>Expand Accessibility:</strong> Kickstarter’s global reach will allow Weribox to find its way into homes, offices, and workspaces around the world.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*TA6i382y68GSCsQuXN_Elw.png" /></figure><h3>Why Weribox Needs You</h3><p>Weribox is more than a product; it’s a vision of simplicity, clarity, and innovation in the way we consume financial data. By supporting Weribox on Kickstarter, you’re not just backing a device — you’re becoming a part of its journey. You’re helping an independent creator like me turn a dream into something tangible, something that can positively impact lives.</p><p>Your support will allow Weribox to grow beyond its current potential. With the right resources, I can:</p><ul><li>Offer new and improved features.</li><li>Explore sustainable materials for the next iteration of Weribox.</li><li>Reduce production costs to make it more affordable.</li></ul><p>Most importantly, your support will help spread the message that with determination, innovation, and a little help from a community, even the most ambitious projects can succeed.</p><h3>A New Chapter in the Weribox Story</h3><p>Today, I’m inviting you to be part of the next chapter in the Weribox story. As I prepare to launch the Kickstarter campaign, I’m both excited and nervous. It’s a big step, but I truly believe in the potential of Weribox and the value it brings to its users.</p><p>Your belief in this product means everything. With your help, I can bring Weribox to the world and continue to innovate, refine, and push boundaries. If you’re as excited about Weribox as I am, I’d love for you to join me on this journey.</p><p>Let’s make Weribox a reality — together.</p><p>Thank you for your support and belief in Weribox. Stay tuned for updates as I prepare to launch on Kickstarter, and I can’t wait to share this journey with you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50f85ecc643d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MQTT ve Mosquitto: Teknik Bilgiler ve Komutlarla IoT Haberleşmesi]]></title>
            <link>https://medium.com/@halil_tek/mqtt-ve-mosquitto-teknik-bilgiler-ve-komutlarla-iot-haberle%C5%9Fmesi-0f564d970575?source=rss-b1eeb0628c1a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f564d970575</guid>
            <dc:creator><![CDATA[Halil Tek]]></dc:creator>
            <pubDate>Wed, 16 Oct 2024 14:29:22 GMT</pubDate>
            <atom:updated>2024-10-16T14:29:22.878Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*X1LQF3Tm_JKFcz0G-Q_zNw.png" /></figure><h3>Protokolü Teknik Bilgiler</h3><p><strong>MQTT (Message Queuing Telemetry Transport)</strong>, düşük bant genişliği ve az enerji harcayan cihazlar için optimize edilmiş bir mesajlaşma protokolüdür. Yayıncı-Abone modeli üzerine kuruludur ve bu sayede cihazlar arasında doğrudan bir bağlantı kurmaya gerek kalmadan veri paylaşımı yapılabilir.</p><h4>MQTT’nin Temel Bileşenleri:</h4><ul><li><strong>Broker (Aracı)</strong>: MQTT haberleşmesinde merkezi rol oynayan sunucudur. Yayıncılar ve aboneler arasındaki mesajları yönlendirir.</li><li><strong>Publisher (Yayıncı)</strong>: Belirli bir konu hakkında mesaj yayınlayan cihazdır.</li><li><strong>Subscriber (Abone)</strong>: Belirli bir konudaki mesajları almak için abone olan cihazdır.</li><li><strong>Topic (Konu)</strong>: Mesajların kategorize edildiği anahtar kelimedir. Yayıncı ve abone bu konu başlıkları üzerinden haberleşir.</li></ul><h3>2. MQTT QoS (Quality of Service — Hizmet Kalitesi) Seviyeleri</h3><p>MQTT’de 3 farklı hizmet kalitesi seviyesi bulunur. Bu seviyeler, mesajların iletim güvenilirliğini tanımlar:</p><ul><li><strong>QoS 0 — At Most Once (En Fazla Bir Kere)</strong>: Mesaj yalnızca bir kez gönderilir ve doğrulama yapılmaz. En düşük güvenilirlik seviyesidir.</li><li><strong>QoS 1 — At Least Once (En Az Bir Kere)</strong>: Mesaj en az bir kere teslim edilir, fakat aynı mesaj birden fazla kez alınabilir.</li><li><strong>QoS 2 — Exactly Once (Tam Olarak Bir Kere)</strong>: Mesaj yalnızca bir kere teslim edilir ve bu en yüksek güvenilirlik seviyesidir.</li></ul><h3>3. Mosquitto: Popüler MQTT Broker</h3><p><strong>Mosquitto</strong>, açık kaynaklı ve hafif bir MQTT brokerıdır. IoT projelerinde yaygın olarak kullanılır çünkü küçük sistemlerde dahi düşük kaynak kullanımıyla çalışabilir. Hem MQTT hem de WebSocket desteği sunar, bu sayede geniş bir uygulama yelpazesi için uygundur.</p><h4>Mosquitto’nun Avantajları:</h4><ul><li>Düşük bellek kullanımı</li><li>Kolay kurulum ve konfigürasyon</li><li>Hem MQTT hem de WebSocket desteği</li><li>TLS/SSL ile güvenli bağlantı</li></ul><h3>4. Mosquitto Kurulumu ve Temel Komutlar</h3><h4>Mosquitto Kurulumu (Linux Üzerinde)</h4><ol><li>Terminali açın ve paket listelerini güncelleyin:</li></ol><pre>sudo apt update</pre><ol><li>Mosquitto’yu ve ilgili araçlarını kurun:</li></ol><pre>sudo apt install mosquitto mosquitto-clients</pre><ol><li>Mosquitto hizmetini başlatın ve sistemde otomatik başlatmayı etkinleştirin:</li></ol><pre>sudo systemctl start mosquitto sudo systemctl enable mosquitto</pre><h3>5. MQTT ile Mesajlaşma: Temel Komutlar</h3><h4>Mosquitto Broker’ını Çalıştırma</h4><p>Mosquitto’yu başlattıktan sonra, broker yerel ağda çalışmaya başlar. Test için kullanabileceğiniz iki temel araç <strong>mosquitto_pub</strong> (yayıncı) ve <strong>mosquitto_sub</strong> (abone) komutlarıdır.</p><h4>Abone Olma (Subscriber)</h4><p>Bir abone olarak bir konu başlığına bağlanmak için şu komut kullanılır:</p><pre>mosquitto_sub -h localhost -t test/topic</pre><p>Bu komut, test/topic başlığına abone olur ve localhost üzerinden Mosquitto broker&#39;ına bağlanır.</p><h4>Mesaj Yayınlama (Publisher)</h4><p>Bir mesaj yayınlamak için şu komut kullanılır:</p><pre>mosquitto_pub -h localhost -t test/topic -m &quot;Merhaba MQTT!&quot;</pre><p>Bu komut, test/topic başlığına <strong>&quot;Merhaba MQTT!&quot;</strong> mesajını yayınlar.</p><h4>QoS Seviyeleriyle Mesaj Yayınlama</h4><p>QoS seviyeleriyle mesaj göndermek için -q parametresi kullanılır. Örneğin, QoS 1 ile mesaj yayınlamak için:</p><pre>mosquitto_pub -h localhost -t test/topic -m &quot;Mesaj QoS 1&quot; -q 1</pre><h3>6. Mosquitto ile Güvenlik ve TLS Ayarları</h3><p>MQTT haberleşmesinin güvenliğini artırmak için <strong>TLS/SSL</strong> kullanabilirsiniz. Aşağıdaki adımlarla güvenli bir bağlantı kurabilirsiniz:</p><h4>1. Sertifika Oluşturma</h4><p>Öncelikle, broker için bir sertifika oluşturmanız gerekecek. OpenSSL kullanarak bir sertifika ve özel anahtar oluşturun:</p><pre>openssl genrsa -out mosquitto.key 2048<br>openssl req -new -key mosquitto.key -out mosquitto.csr<br>openssl x509 -req -in mosquitto.csr -signkey mosquitto.key -out mosquitto.crt -days 365</pre><h4>2. Mosquitto Konfigürasyonu</h4><p>Mosquitto’nun yapılandırma dosyasına bu sertifikaları ekleyin:</p><pre>sudo nano /etc/mosquitto/conf.d/default.conf</pre><p>Dosyanın sonuna şu satırları ekleyin:</p><pre>listener 8883<br>cafile /etc/mosquitto/certs/ca.crt<br>certfile /etc/mosquitto/certs/mosquitto.crt<br>keyfile /etc/mosquitto/certs/mosquitto.key</pre><h4>3. Mosquitto’yu Yeniden Başlatma</h4><p>Mosquitto hizmetini yeniden başlatın:</p><pre>sudo systemctl restart mosquitto</pre><p>Bu adımlar tamamlandıktan sonra, TLS destekli MQTT broker’ınız çalışmaya başlayacaktır.</p><h3>7. MQTT ile Test ve Debugging</h3><p>Mosquitto broker’ının çalıştığından emin olmak için şu komutları kullanabilirsiniz:</p><ul><li>Aktif bağlantıları görmek için:</li></ul><pre>sudo mosquitto_sub -h localhost -v -t &#39;#&#39;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f564d970575" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nedir bu modbus?]]></title>
            <link>https://medium.com/@halil_tek/nedir-bu-modbus-18e67162eae?source=rss-b1eeb0628c1a------2</link>
            <guid isPermaLink="false">https://medium.com/p/18e67162eae</guid>
            <category><![CDATA[modbus]]></category>
            <dc:creator><![CDATA[Halil Tek]]></dc:creator>
            <pubDate>Tue, 15 Nov 2022 06:13:55 GMT</pubDate>
            <atom:updated>2022-11-15T06:13:55.371Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. GİRİŞ</h3><p>Modbus, 1979 yılında Modicon (şu an Schneider Electric firması olarak biliniyor) tarafından PLC’ler ile kullanılmak için geliştirilen bir seri haberleşme protokolüdür.</p><p>Kolay ve hızlı, bütün üreticilere açık ve herkes tarafından telif ücreti gerektirmeden kullanılabilir bir protokol olması, günümüzde elektronik cihazlarda en yaygın kullanılan haberleşme protokolü olmasındaki büyük etkenlerden bazılarıdır.</p><p>Modbus’un bugün fiilen bir standart hâline gelmesinin sebepleri şöyle sıralanabilir:</p><ul><li>Endüstri uygulamaları düşünülerek geliştirilmiştir.</li><li>Açık olarak yayınlanmış olup herhangi bir ücrete tâbî değildir.</li><li>Yerleştirilmesi ve bakımı kolaydır.</li><li>Üreticiler konusunda pek fazla sınırlama koymadan ham bit ve kelimeleri yollar.</li><li>Modbus, takriben 247 cihaz arasında haberleşmeyi sağlayabilmektedir. Çalışma mantığı bir ana cihaz (<a href="http://www.wikizero.co/index.php?q=aHR0cHM6Ly90ci53aWtpcGVkaWEub3JnL3dpa2kvJUM0JUIwbmcu"><strong>İng.</strong></a>master) ve ana cihaza bağlı bir veya daha fazla cihaz (<a href="http://www.wikizero.co/index.php?q=aHR0cHM6Ly90ci53aWtpcGVkaWEub3JnL3dpa2kvJUM0JUIwbmcu"><strong>İng.</strong></a> slave) arasında aynı <a href="http://www.wikizero.co/index.php?q=aHR0cHM6Ly90ci53aWtpcGVkaWEub3JnL3dpa2kvQmlsZ2lzYXlhcl9hJUM0JTlGJUM0JUIx"><strong>ağ</strong></a> üzerinde yapılan veri alışverişi üzerine kurulmuştur.</li></ul><h3>2. MODBUS HABERLEŞME ÇEŞİTLERİ</h3><p>Modbus, haberleşme ve fiziksel katman olarak ikiye ayrılmaktadır.</p><ul><li>Haberleşme katmanı olarak günümüzde en çok kullanılanları Modbus ASCII, RTU ve TCP/IP’dir.</li><li>Fiziksel katman olarak ise UART temelli RS232/RS485, USB/CAN gibi değişik birimler ve TCP/IP için Ethernet gösterilebilir.</li></ul><h3>2.1 MODBUS RTU</h3><p>Modbus içerisinde seri iletişim metodunu kullanan ASCII ve RTU adı altında iki haberleşme metodu bulunmaktadır. Ancak RTU ile haberleşme ASCII ile haberleşmeye göre daha hızlıdır. Örneğin 12345 sayısı seri hat üzerinden ASCII metodu ile gönderilirse “1”,”2”,”3”,”4”,”5” şeklinde 5 ayrı byte ile gönderim yaparken, RTU’da bu bilgi 2×8 bit olacak şekilde MSB ve LSB olarak ikiye bölünecektir ve 2 byte şeklinde (12345/256 bir byte, 12345%256 bir byte) gönderim yapacaktır. Bu nedenle RTU daha hızlı gönderim yapmaktadır. Günümüzde RTU bu nedenden dolayı en sık tercih edilen seri iletişim metodu olarak bilinmektedir.</p><p>Reklamlar</p><p>BU REKLAMI BİLDİR</p><p>Modbus RTU frame yapısı Tablo 1’de görülebilir. İlk byte’ta iletişim kurulacak cihazın adresi belirlenmelidir. Slava cihaz sayısı 247 adet olabileceğinden bu bölüme 0–247 arasında sayı yazılmalıdır. İkinci byte ise Modbus için standartlaşmış fonksiyon kodlarını ihtiva etmelidir. Bu fonksiyon kodları Tablo 2’de belirtilmiştir.</p><p><strong>Tablo 1 Modbus RTU Frame Yapısı</strong></p><p>Slave AdresFonksiyon KoduDataCRC1 byte1 byte0–252 byte aralığı2 byte (CRC Low, CRC High)</p><p><strong>Tablo 2 Modbus İçin Standartlaşmış Fonksiyon Kodları</strong></p><p><strong>KodModbus Fonksiyonu</strong>1Read Coil Status (Coil durumunu oku)2Read Input Status (Giriş durumunu oku)3Read Holding Registers (Kaydedilen değerleri oku)4Read Input Register (Giriş kayıtlarını oku)5Write Single Coil (Tekli coil’i yaz)6Write Single Register (Tekli kaydı yaz)15Write Multiple Coils (Çoklu coil’leri yaz)16Write Multiple Registers (Çoklu kaydı yaz)</p><p>Günümüzde en çok tercih edilen Modbus RTU fonksiyonları 3,6 ve 16’dır.</p><p>Bundan sonraki bölümde fonksiyon tanımlamalarına göre datalar düzenlenerek, slave adresi ve fonksiyon numarasının CRC16 daki son iki byte’a yazılarak gönderim ve alım işlemleri sağlanır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*2JOxqTJmH5gf74mB" /></figure><p><strong>Şekil 1 Modbus Haberleşme Yapısı</strong></p><p>Modbus RTU için mesaj gönderim ya da alımlarında iki mesaj arası minimum 3.5 karakterlik bekleme yapılmalıdır. Bu bekleme baudrate hızına göre değişkenlik gösterecektir. Örneğin 9600 baudrate için bu değer yaklaşık 3 ms iken 115200 baudrate değeri için 0.25 ms civarında olacaktır.</p><h3>2.1.1 CRC NEDİR?</h3><p>CRC çevrimsel hata denetimi (Cyclic Reduncany check) manasına gelmektedir. CRC’nin farklı kombinasyonları farklı haberleşme kontrolleri için kullanılabilir. Modbus haberleşmesi için kullanıldığında mesajın sonuna eklenen iki byte’dan oluşur. Mesajdaki her byte CRC’yi hesaplamak için gönderilmektedir. Ayrıca alıcı cihaz da CRC’yi hesaplar ve onu gönderici cihazdan gelen CRC ile karşılaştırır. Eğer mesajdaki bir bit bile yanlış alınmışsa, CRC’ler farklı olacaktır ve bir hata oluşacaktır.</p><p>CRC yönteminde bir blok içindeki veriler tek tek toplanır, bu toplam belirli bir sayıya bölünür (bu sayıya P diyelim) ve bölüm sonucunda çıkan kalan sayısı verilere eklenir. Karşı tarafta veri alındığında yine veriler tek tek toplanır ve bu toplamdan bölüm kalanı çıkartılır. Çıkartma sonucundaki sayı da P’ye bölünür. Eğer veriler hatasız iletilmişse kalan sıfır olmalıdır.</p><p>Bir örnek verelim:</p><p>VERİLER CRC</p><p>90 69 66 82 65 79 78 69 3</p><p>Yukardaki verilerin rakamsal toplamı 598’dir. Örnekteki P sayımız da 17 olsun.</p><p>Toplam=598</p><p>P=17</p><p>598/17=35, kalan=3</p><p>Bu veri alındığında da şu işlem yapılır:</p><p>(598–3)/17=35, kalan=0 (hatasız iletim)</p><p>Eğer iletilen veriler hatalı ise bu verilerin toplamı 598 olmayacaktır, dolayısı ile kalan da 0 olmaz. Buradan verilerde bir bozulma olduğu anlaşılır ve veriler tekrar iletilir/saklanır. CRC’nin kelime anlamı da yapılan işlemi anlatır (dönemsel kalan kontrolü; dönemseldir, çünkü bütün veri bloklara bölünür ve CRC işlemi herbir blok için uygulanır)</p><p>CRC yöntemi yüzde yüz güvenilir bir yöntem değildir. Yine örneğimizdeki verilere dönersek altıncı verinin 79 değil de 96 olacak şekilde bozulduğunu varsayalım (yani P kadar). Bu durumda karşı tarafın eline geçen verilerin toplamı 615 olacaktır. CRC işlemini uyguladığımızda:</p><p>(615–3)/17=36, kalan=0</p><p>Yani, bir hatalı iletim söz konusu olduğu halde bu hata farkedilememiştir. Ama verilerin P ve P’nin katları kadar bozulma olasılığı hayli düşüktür. Bu yüzden hataların büyük bölümü CRC yöntemi ile saptanabilir.</p><h3>2.2 MODBUS TCP/IP</h3><p>TCP, İletim Kontrol Protokolü ve IP ise İnternet Protokolü kelimelerinin kısaltmasıdır. Bu protokoller birlikte kullanılır ve internet için aktarım protokolünü oluştururlar. Modbus bilgileri bu protokoller kullanılarak gönderildiğinde veri, ilave bilgilerin eklendiği ve IP’ye verildiği TCP’ye gönderilir. IP veriyi paketler ve aktarır.</p><p>Veri aktarımından önce TCP bağlantısı kurulmalıdır çünkü bağlantı tabanlı bir protokoldür. Master (veya Modbus TCP’de istemci), Slave (veya Sunucu) ile bir bağlantı kurar. Sunucu istemciden gelen bağlantıyı bekler. Bir bağlantı kurulduktan sonra, Sunucu istemci bağlantıyı kapatana kadar ondan gelen sorgulara yanıt verir.</p><p>Bu bir TCP/IP sarıcı üzerinden gönderilen Modbus RTU mesajıdır ve seri bağlantı yerine bir ethernet ağı üzerinden gönderilir. Sunucunun SlaveID adresi yerine bir IP adresi vardır.</p><h3>3. SIEMENS MODBUS HABERLEŞME TÜRLERİ</h3><h3>3.1 TANIM</h3><p>Simatic S7–1200 ailesi ile noktadan noktaya haberleşme RS485 ve RS232 ile sağlanabilrmektedir. Her bir S7–1200 ailesinde ek modül olarak 3 adet haberleşme modülü eklenebilmektedir. Bunun yanında PLC üzerinde 1 adet RS485 haberleşmenin sağlandığı haberleşme modülü de eklenebilmektedir.</p><p>STEP 7 yazılımı kullanılarak MODBUS kütüphanesinden her bir haberleşme modülü master veya slave seçilebilmektedir. Eğer MODBUS Master seçimi yapılırsa,</p><ul><li>RS232 ile CM1241 haberleşme modülü kullanılarak 1 adet slave haberleşme durumu oluşturulabilir.</li><li>RS422 ile CM1241 haberleşme modülü kullanılarak 10 adet slave haberleşme durumu oluşturulabilir.</li><li>RS485 ile CM1241 veya CB1241 haberleşme modülü kullanılarak 10 adet slave haberleşme durumu oluşturulabilir.</li></ul><h3>3.1.1 RS232 PROTOKOLÜ</h3><p>Kullanılan en popüler ve ilk oluşturulan seri haberleşme protokolüdür. Bilgisayarlarda yaygın olarak bulunmaktadır. Seri haberleşmenin rahatlıkla yapılabildiği bu protokolde bazı dezavantajlı durumlar mevcuttur:</p><ul><li>Çok uzun mesafelerde kullanılamamaktadır. 15 metre ve altı kullanımlarda tavsiye edilir.</li><li>Gürültülere karşı hassastır. Alıcı ve verici arasındaki veri alışverişinde topraklamaya ihtiyaç duyulmaktadır.</li><li>RS232 ile yalnızca bir bağlantı yapılabilmektedir. Birden fazla bağlantı yapıldığında veri kaybı yaşanacaktır. <em>(</em><a href="https://www.omega.co.uk/techref/das/rs-232-422-485.html"><strong><em>https://www.omega.co.uk/techref/das/rs-232-422-485.html</em></strong></a><em>)</em></li></ul><p><strong>Şekil 2 RS232 Bağlantı Durumu</strong></p><h3>3.1.2 RS422 PROTOKOLÜ</h3><p>RS422 protoklü RS232 protokolüne benzemektedir. Ancak bazı avantaj ve dezavantajlara sahiptir. Öncelikle RS422 protokülü kullanımı için RS232 dönüştürücüye ihtiyaç duyulmaktadır. Bilgisayarlar RS422 arayüzüne sahip değildir. Bundan dolayı dönüştürücüye ihtiyaç duyulmaktadır. Bunların yanında bazı avantajları aşağıda belirtilmektedir.</p><ul><li>Uzun mesafede haberleşmeyi sağlamaktadır. Yaklaşık 150 metreye kadar haberleşmeyi destekler.</li><li>Birden çok haberleşme durumunu desteklemektedir. 32 tane donanımsal ekipmanla haberleşme sağlanabilmektedir. Her bir ekipman kendi ID’si ile tanımlanır ve ayırtedilir.</li><li>Gürültülere karşı dayanıklıdır. Alıcı ve verici 4 kablo ile sağlandığından dolayı RS232 haberleşmesine göre gürültülere karşı daha dayanıklıdır.</li></ul><p><strong>Şekil 3 RS422 Bağlantı Durumu</strong></p><h3>3.1.3 RS485 PROTOKOLÜ</h3><p>RS485, RS422’ye çok benzemektedir. Bu yüzden sık sık karıştırılmaktadır. Her ikisi de çoklu haberleşmeye ve uzun mesafe haberleşmeye izin vermektedir. Genellikle RS485 protokolü 2 kablolu bir sistemdir. Ancak bazı kullanıcılar RS422 protokolüne benzeyen ve genelde kullanılmayan 4 kablolu RS485 protokolünü de kullanmaktadır. Bir proje oluşturulurken hangi haberleşme protokolünü seçmemiz gerektiği önem arz etmektedir. 2 kablolu RS485 protokolü ile RS422 protokolü arasındaki farklılıklar aşağıda belirtilmektedir:</p><ul><li>RS485 protokolü çoklu olarak komut yollayabiliyorken RS422 protokolü çoklu komut gönderememektedir. RS422 protokolü sadece bir komut gönderip çoklu cevap alabilir. RS485 protokolü hem çoklu komut gönderir hem de çoklu cevap alabilir.</li><li>RS485 pin çıkışı, 4 yerine 2 tel ile çalıştığımız için daha kolaydır. <em>(</em><a href="https://www.omega.co.uk/techref/das/rs-232-422-485.html"><strong><em>https://www.omega.co.uk/techref/das/rs-232-422-485.html</em></strong></a><em>)</em></li></ul><p><strong>Şekil 4 RS485 Bağlantı Durumu</strong></p><h3>3.2 STEP 7 MODBUS KÜTÜPHANELER</h3><p>Siemens Step 7 “Communication” alt sekmesinde “Communication processor” kütüphanesinin alt başlığında “MODBUS (RTU)” klasöründe modbus haberleşmeye ilişkin “Master” ve “Slave” kütüphaneler mevcuttur (Şekil 5).</p><p><strong>Şekil 5 Step 7 Haberleşme Sekmesi</strong></p><h3>3.2.1 MODBUS_COMM_LOAD</h3><p>Modbus haberleşme için hem master yapısı hem de slave yapısı için “Modbus_Comm_Load” bloğu kullanılır (Şekil 6).</p><p><strong>Şekil 6 Modbus_Comm_Load Bloğu</strong></p><p>“Modbus_Comm_Load” bloğu haberleşme modülünü seçmek için kullanılır. Burada haberleşme parametreleri ile birlikte master veya slave parametrelerin bağlantıları blok üzerinden ayarlanır.</p><p>“Modbus_Comm_Load” bloğu ilk program çevriminde çağrılmalıdır. Haberleşme bloğunda donanımsal ayarlamalar yapıldıktan sonra “PORT” parametresi üzerinde donanımsal ekipman ismi girilmelidir. Tüm haberleşme parametrelerinde BAUD(iletim hızı) ve PARITY aynı olmalıdır. “MB_DB” girişinde MODBUS haberleşmesi ile donanım ekipmanının master mı slave mi yapılacağı seçilir.</p><p>Şekil 7’de gösterilen “InstModbusCommLoad” data değişkeninde bulunan statik parametre olan “”MODE” durumu haberleşmenin yapılacağı protokol yapısına göre ayarlanmalıdır (0=full duplex (RS232), 1=full duplex (RS422) 4 kablo modu, 4=half duplex (RS485) 2 kablo modu).</p><p><strong>Şekil 7 InstModbusCommLoad Data Değerleri</strong></p><h3>3.2.2 MODBUS_MASTER</h3><p>MODBUS master haberleşmesi için “Modbus_Master” bloğu tanımlanmıştır (Şekil 8). Bu blok “Modbus_Comm_Load” bloğu ayarları yapıldıktan sonra ayarlamalar yapılmalıdır.</p><p><strong>Şekil 8 Modbus_Master Blok Yapısı</strong></p><p>“Modbus_Master” bloğu adreslenecek MODBUS slave’ini seçmek için kullanılır, fonksiyon kodunu seçer ve yerel veri depolama alanını tanımlar. Parametrelere ilişkin açıklamaların bulunduğu tablo Tablo 3’de gösterilmektedir.</p><p><strong>Tablo 3 Modbus Master Tanım Tablosu</strong></p><p><strong>Parametre Tanım</strong>REQHaberleşmeyi sağlar.MB_ADDRMODBUS-RTU istasyon adresi.MODEİletim yönünü belirtir. (“0” = read, “1” = write)DATA_ADDRMODBUS başlangıç adresini belirtir.DATA_LENMODBUS data uzunluğunu belirtir.DATA_PTRMaster alanlarındaki lokal olarak alınan ve gönderilen dataları tanımlar.</p><h3>3.2.3 MODBUS_SLAVE</h3><p>MODBUS master haberleşmesi için “Modbus_Slave” bloğu tanımlanmıştır (Şekil 9). Bu blok “Modbus_Comm_Load” bloğu ayarları yapıldıktan sonra ayarlamalar yapılmalıdır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/0*fpJgevNJ-mZOODRl" /></figure><p><strong>Şekil 9 Modbus_Slave Blok Yapısı</strong></p><p>“Modbus_Slave” bloğu MODBUS-RTU adresini tanımlamak için kullanılır. Parametrelere ilişkin açıklamaların bulunduğu tablo Tablo 4’de gösterilmektedir.</p><p><strong>Tablo 4 Modbus Slave Tanım Tablosu</strong></p><p><strong>Parametre Tanım</strong>MB_ADDRMODBUS-RTU istasyon adresini aktarır.MB_HOLD_REGModbus slave kaydını tutar (Holding register of the slave).</p><p>“MB_HOLD_REG” parametresinde “Word” veri tipinde transfer işlemi yapılır, veri aktarımı yapılır. “MB_HOLD_REG” parametresindeki dizinin boyutu, master’ın veri hacmini kapsayacak kadar büyük olmalıdır. MODBUS holding register değerindeki dizinin başlangıç adresi 40001 ile başlamaktadır.</p><h3>3.3 TIA PORTAL ÖRNEK PROJE</h3><p>Şekil 10’da Modbus Master yapısına ilişkin akış diyagramı gösterilmektedir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/0*RaeJxdcTfLxaujz5" /></figure><p><strong>Şekil 10 Modbus Master Akış Diyagramı</strong></p><ol><li>“Modbus_Comm_Load” konfigürasyon bloğu Adım 0’da başlatılır.</li><li>Adım 1’de, yazılacak olan veri “DATA_PTR”ye ve “Modbus_Master” bloğuna aktarılır. Modbus Slave’e yazılacak iletişim parametreleri (MODE=1) çağrılır ve buradan çalıştırılmış olur (REQ=1).</li></ol><ul><li>Adım 2’de “Modbus_Master” ın çalışmasına ilişkin geri bildirim (BUSY) yapılır.</li><li>Adım 3’te “Modbus_Master” bloğu başarı ile veri akışını sağlamışsa geri bildirim (DONE) yapılmış olur.</li><li>“Modbus_Master”ın çalıştırılması ile veri geçişi sıfırlanır (REQ=0).</li></ul><ol><li>Adım 3’te Modbus slave parametresinin okunması için iletişim parametresi (MODE=0) “Modbus_Master”a aktarılır.</li></ol><ul><li>Adım 4’teki çalıştırılan ve aktarılan veri Adım 1’deki ile aynıdır.</li><li>“Modbus_Master”ın başarılı geri beslemesi (DONE) sonrasında, DATA_PTR dosyasından okunan veriler kaydedilmelidir (kopyalanmalıdır).</li></ul><p>Modbus_Master’da yazılan verinin Modbus slave’de okumasına ilişkin kod Şekil 11’de gösterilmektedir.</p><p><strong>Şekil 11 Modbus Slave Verilerin Okunması</strong></p><p>Şekil 11’de Network 7’deki program parçacığında “”Tags”.modbusMaster.mbAddr” ifadesi MB_ADDR parametresi değiştirilerek başka bir slave değeri adreslenebilir.</p><h3>3.3.1 MODBUS RTU MASTER PROGRAM ÖRNEĞİ</h3><p>İlk olarak “Modbus_Comm_Load” bloğu programa yazılır. “Modbus_Comm_Load”un bu şekilde yürütülmesi, yalnızca seri port yapılandırması çalışma zamanında değişmezse yapılmalıdır.</p><p><strong>Network 1: </strong>İlk çevrim esnasında RS485 modül iletişim portunu sadece bir kez yapılandırın / başlatın.</p><p>Bir tane Modbus Slave haberleşmesi için program döngüsüne OB’de bir Modbus_Master bloğu konulmalıdır. Diğer Modbus Slave haberleşmesi için ek Modbus_Master blokları için de OB bloğunda tanımlanması gerekmektedir.</p><p><strong>Network 2: </strong>Modbus adresi #2 olan data genişliği 100 word olan ve data adresi 400001’den başlayan kayıt verileri okuma işlemi gerçekleştirilir. Buradaki hafıza bölgeleri MW500-MW698 arasıdır.</p><p><strong>Network 3: </strong>Burada kayıt verilerinin ilk 3 word tipi kayıt verisi olarak ataması yapılır. Bu durum DONE bitiyle aktif hale gelir. Bu networkte ayrıca ERROR yani hata biti ile durum biti olan STATUS biti de atanmış olur.</p><p><strong>Network 4: </strong>MW600-MW607’den 64 bit veriyi MB_ADDR=2 olan 00017 ile 00018 çıkış bit konumlarına yazın.</p><p><strong>Network 5: </strong>Yazma işlemi tamamlandığında DONE history biti setlenir. Eğer programda hata olursa, program ERROR history bitini setler ve STATUS kodunu kaydeder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/0*7o_GMf1VKj3kHx36" /></figure><h3>3.3.2 MODBUS RTU SLAVE PROGRAM ÖRNEĞİ</h3><p>Başlangıçta “Modbus_Comm_Load” bloğununun çalışması için “Tag_1” biti aktif olmalıdır. “Modbus_Comm_Load”un bu şekilde yürütülmesi, yalnızca HMI yapılandırmasının bir sonucu olarak çalışma zamanında seri bağlantı noktası yapılandırması değiştiğinde yapılmalıdır.</p><p><strong>Network 1: </strong>Bir HMI cihazı tarafından RS485 modül parametreleri her bir çevrim başlatıldığında değiştirilmelidir.</p><p>Network 2’de gösterilen MB_SLAVE BLOĞU, her 10 ms’de döngüsel olarak OB’de çalıştırılır. Bu çalışma Modbus slave tarafından mutlak olarak hızlı bir şekilde yanıt vermezken, kısa mesajlar için 9600 baud ayarlandığında iyi bir performans sağlar (20 byte veya daha az byte gönderilen durumlar için geçerlidir.).</p><p><strong>Network 2: </strong>Her bir çevrimdeki Modbus master isteklerini kontrol et. Modbus’ta yazılan 100 word MW1000 adresinden başlanarak kontrol edilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/0*7TZAiiNXNgLX08M0" /></figure><h3>4. S7–1200 İLE SINAMICS V20 SÜRÜCÜ MODBUS HABERLEŞMESİ</h3><h3>4.1 GİRİŞ</h3><p>S7–1200 plc serisi ile sinamics V20 sürücüleri arasında bulunan haberleşme bağlantıları Şekil 12’de gösterilmektedir.</p><p><strong>Şekil 12 S7–1200 PLC Serisi ile SINAMICS V20 Sürücüsü Bağlantı Şeması</strong></p><h3>4.2 TIA PORTAL İLE PROJE OLUŞTURMA</h3><p>Tia portal ile proje oluşturulurken örnek olarak PLC CPU1214C, haberleşme modulü CM1241 (RS485) ve HMI arayüz paneli KTP Basic color PN bulunmaktadır. Tia portal sayfasından bu modüller seçilir ve projeye eklenir (Şekil 13).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*apgU6vslAQfeuawf" /></figure><p><strong>Şekil 13 TIA Portal PLC Seçim Ekranı</strong></p><p>PLC seçimi yapıldıktan sonra Tia Portal yan sutununda bulunan katalog sekmesininde haberleşme modülü olarak CM1241 seçilir (Şekil 14).</p><p><strong>Şekil 14 TIA Portal Haberleşme Modülü Seçim Ekranı</strong></p><p>HMI dokunmak ekran seçimi Şekil 15’te gösterilmektedir. Örnek uygulamada KTP 600 tercih edilmiştir. Kullanıcı bunu projesine göre değiştirebilir.</p><p><strong>Şekil 15 TIA Portal HMI Seçim Ekranı</strong></p><p>HMI panel seçimi yapıldıktan sonra Şekil 16’da gösterilen ekran arayüzü karşımıza çıkmaktadır. Buradan “Browse” sekmesi seçilir ve tercih ettiğimiz PLC karşımıza çıkar. Buradan PLC seçimi yapılır ve HMI ile PLC arasında bağlantı kurulmuş olur.</p><p><strong>Şekil 16 HMI ile PLC Bağlantı Arayüzü</strong></p><p>TIA portalda program yazılması için OB1 açılır. Burada iki tane modbus bloğunu çağrılmalıdır. Bunlar “MB_COMM_LOAD” ve “MB_MASTER” blokları. “MB_COMM_LOAD” bloğu sadece ilk çevrimde çalışmalı daha sonra çalışmamalıdır. “MB_MASTER” ise her haberleşme talebinde çalışmalıdır. Birden fazla kullanılabilir fakat biri işlem tamam “DONE” çıkışı aktif olmadan diğeri çalıştırılmamalıdır. Örnek program buna dikkate edilerek yazıldı.</p><h3>4.2.1 MB_COMM_LOAD BLOĞU YAPILANDIRILMASI</h3><p>“MB_COMM_LOAD” bloğunda tüm girişler tanımlanmalıdır (Şekil 17).</p><p><strong>Şekil 17 Sinamics V20 Sürücüsü İçin MB_COMM_LOAD_DB Bloğu Ayarları</strong></p><p>“MB_COMM_LOAD_DB” bloğuna ilişkin ayar parametreleri Tablo 5’te gösterilmektedir.</p><p><strong>Tablo 5 “MB_COMM_LOAD_DB” Bloğu Parametre Tanımları</strong></p><p><strong>Parametre Tanım</strong>REQBloğu çalıştırması için bool değişkeninde bir değişken tanımlanmalıdır. Yükselen kenar ile birlikte blok çalışmaktadır.PORTHaberleşme modülünün donanımsal tanımlama numarasıdır.BAUDHaberleşme hızıdır. Sinamics V20’nin ilgili parametresi ile aynı olmalıdır. Bu projede 9600 olarak seçilmiştir.PARITYHaberleşme parametresidir. 2 olmalıdır.MB_DM“MB_MASTER” bloğu oluşturulurken tanımlanan Data Bloğu adresi yazılmalıdır.</p><p>“MB_COMM_LOAD_DB” bloğunda PORT ayarı Şekil 18’de gösterildiği gibi “Hardware Identifier” kısmında yazan değer girilmelidir.</p><p><strong>Şekil 18 Haberleşme Modülünün Donanımsal Tanımlama Numarası</strong></p><h3>4.2.2 MB_MASTER BLOĞU YAPILANDIRILMASI</h3><p>Veri alış verişinde MB_MASTER bloğu kullanılmalıdır. Bu blok programda birden fazla kullanılabilir (Şekil 19).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/0*b6Sq0K0_HUO5fge3" /></figure><p><strong>Şekil 19 Sinamics V20 Sürücüsü İçin MB_MASTER Bloğu Ayarları</strong></p><p>“MB_MASTER” bloğuna ilişkin ayar parametreleri Tablo 6’da gösterilmektedir.</p><p><strong>Tablo 6 “MB_MASTER” Bloğu Parametre Tanımları</strong></p><p><strong>Parametre Tanım</strong>REQBloğu çalıştıran giriştir. Bool tipi bir değişken olmalıdır Yükselen kenarda blok çalışır. Blok başarıyla çalştığında “DONE” çıkışı aktif olur. Program akışında bu giriş, bloğun “DONE” ile birlikte kesilmelidir.MB_ADDRHaberleşmenin yapılacağı cihazın modbus adresidir. Sürücünün ilgili parametresi ile aynı olmalıdır Bu programda 1’dir.MODEOkuma ve yazma ile ilgili bir giriştir. Yazarken 1, okurken 0 olmalıdır.DATA_ADDRSürücüden okunacak verinin register adresidir. Sürücü kullanma klavuzunda bulabilirsiniz (Şekil 22).DATA_LENOkuma yazma yapılacak olan data bloğunda veri uzunluğudur.DATA_PTROkuma yazma yapılacak olan data bloğun veri başlangıç adresidir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*HTFmcrn_DRUPD_Rp" /></figure><p><strong>Şekil 20 Sinamics V20 Sürücü Kullanma Klavuzu Parametre Değerleri</strong></p><ul><li>HSW (Haupsollwert): Hız set değeri</li><li>HIW (Hauptistwert): Aktüel Hız</li><li>STW (Steuerwort): Kontrol</li><li>ZSW (Zustandswort): Durum</li></ul><p><strong>Not</strong>: Aktuel hız ve set değer girmek için girilen frekans veya hız değerini 0–16385 değeri arasına standardize etmek gerekmektedir. Programda bu hesap yapılmıştır.</p><p>Sinamics V20 sürücüsünü çalıştırmak için kontrol adresine STW (4100) 16#47F yazmak gerekmektedir. Durdurmak için ise 16#47E yazmak yeterlidir.</p><h3>4.2.3 SINAMICS V20 SÜRÜCÜ AYARLARI</h3><ul><li>tuşuna 2 sn’den kısa basılıp çekilir.</li><li>P003 -&gt; 1</li><li>P010 -&gt; 30</li><li>P970 -&gt; 1</li><li>Fabrika ayarlarına dönülmüş olur. Ekranda</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/46/0*16p1nXi8r0b6ngdm" /></figure><ul><li>görünür.</li><li>tuşuna basın</li></ul><p>P304 başlayarak motor parametrelerini giriniz.</p><ul><li>tuşuna 2sn’den az basarak makaro parametrelerine geçin. Ekranda</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/47/0*CGyLdQw9H14l6CLS" /></figure><ul><li>gözükür.</li><li>Burada yukarı ok tuşarını kullanarak Cn011’i seçin daha sonra</li><li>tuşuna basınız. 2 sn’den fazla</li><li>tuşuna basarak normal ekrana dönüş yapınız.</li><li>2 sn’den kısa</li><li>tuşuna basarak parametreler menüsünü giriş yapınız. Aşağıdaki parametreleri ayarlayın.</li><li>P003 -&gt; 3</li><li>P2010 -&gt; 6</li><li>P2014 -&gt; 130</li><li>P2021 -&gt; 1</li><li>P2023 -&gt; 2</li><li>P0971 -&gt; 21</li><li>P003 -&gt; 1</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/29/0*N47CprIlU9IbfzUA" /></figure><ul><li>tuşuna 2 sn’den fazla basılı tutarak normal çalışma ekranına geçiniz.</li><li>Cihazı açıp kapatarak haberleşme parametrelerini etkin hale getiriniz.</li></ul><p><strong>Not:</strong> Zaman zaman F072 hatası gelebilir. Bu hatayı</p><p>tuşuna basarak geçiniz.</p><p><strong>Şekil 21 SINAMICS V20 Ayar Diyagramı</strong></p><h3>4.2.4 TIA PORTAL İLE ÖRNEK UYGULAMA YAZILIMI</h3><p>Program yazılımı planlandığında öncelikle haberleşme blokları için oluşturulacak değişkenler tanımlanır. Bu değişkenleri data_block_1 şeklinde data blok içinde oluşturabiliriz.</p><p><strong>Network 1: </strong>“MB_COMM_LOAD” fonksiyon bloğu için uygun parametreler girilir. Program ilk başta ve sadece bir defa çalışacağı için ‘ADIM=0’ olarak ayarlanır ve “MB_COMM_LOAD” bloğu çalışmış olur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/0*5A4RowBEb7-wdwx0" /></figure><p>Network 1’de “MB_COMM_LOAD” bloğu başarılı bir şekilde çalıştıktan sonra bloğun ‘DONE’ çıkışı lojik 1 olur ve program ‘ADIM=1’ olacak şekilde ‘ADIM’ değişkeninin değeri değiştirilir.</p><p><strong>Network 2: </strong>“MB_MASTER” bloğu için uygun değişken değerleri bloğa uygun olacak şekilde yazılır. Parametre tanım ifadeleri için Tablo 4’e bakılabilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*slOYetQHSoI8fmH2" /></figure><p>Network 2’de “MB_MASTER” bloğu başarılı bir şekilde çalıştıktan sonra bloğun ‘DONE’ çıkışı lojik 1 olur ve program ‘ADIM=2’ olacak şekilde ‘ADIM’ değişkeninin değeri değiştirilir.</p><p><strong>Network 3: </strong>“MB_MASTER” bloğu için uygun değişken değerleri bloğa uygun olacak şekilde yazılır. Parametre tanım ifadeleri için Tablo 4’e bakılabilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*6pT5eynAHty4_XAj" /></figure><p>Sinamics V20 sürücüsünde maksimum 50 Hz’lik bir frekans değeri ayarlanmaktadır. Network 3’te ayarlanan Set_Point değeri Hz olarak belirlenir. Burada sayısal işlemler ile değer ‘integer’ ifadesine dönüştürülür. Örneğin; 20 Hz’lik bir değer ile asenkron motor sürülecek olsun. Sayısal ifade; 20.0/50.0 * 16384.0 = 6554.0 reel değeri integer değerine dönüştürülüp programda koşturulur. Program başarılı bir şekilde çalıştıktan sonra bloğun ‘DONE’ çıkışı lojik 1 olur ve program ‘ADIM=3’ olacak şekilde ‘ADIM’ değişkeninin değeri değiştirilir.</p><p><strong>Network 4: </strong>“MB_MASTER” bloğu için uygun değişken değerleri bloğa uygun olacak şekilde yazılır. Parametre tanım ifadeleri için Tablo 4’e bakılabilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*5SQmDvBrTLDLMj51" /></figure><p>Network 4’te ayarlanan hız değeri integer olarak belirlenir. Integer ifadesinden sonra sürücüde anlamlı bir değer olarak gözükebilmesi için integer ifadesi standardize edilir. Örneğin; 7000.0 integer değerili bir asenkron motor sürülecek olsun. Sayısal ifade; 7000.0 / 16384.0 * 50.0 = 21.36 integer değeri ile Sinamics V20 sürücüsünde program koşturulmuş olur. Program başarılı bir şekilde çalıştıktan sonra bloğun ‘DONE’ çıkışı lojik 1 olur ve program ‘ADIM=1’ olacak şekilde ‘ADIM’ değişkeninin değeri değiştirilir.</p><p><strong>Network 5: </strong>Sinamics V20 sürücüsünü çalıştırmak için kontrol adresine STW 16#47F yazmak gerekmektedir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/0*KsP67XU3Mgy08JY5" /></figure><p><strong>Network 6: </strong>Sinamics V20 sürücüsünü durdurmak için kontrol adresine STW 16#47E yazmak gerekmektedir.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18e67162eae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I think this document is very useful as it teaches you how to do many attack methods and how to…]]></title>
            <link>https://medium.com/@halil_tek/i-think-this-document-is-very-useful-as-it-teaches-you-how-to-do-many-attack-methods-and-how-to-faa7ac03b71a?source=rss-b1eeb0628c1a------2</link>
            <guid isPermaLink="false">https://medium.com/p/faa7ac03b71a</guid>
            <category><![CDATA[certified-ethical-hacker]]></category>
            <dc:creator><![CDATA[Halil Tek]]></dc:creator>
            <pubDate>Wed, 02 Nov 2022 10:16:47 GMT</pubDate>
            <atom:updated>2022-11-02T10:16:47.074Z</atom:updated>
            <content:encoded><![CDATA[<h3>I think this document is very useful as it teaches you how to do many attack methods and how to take precautions.</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fembed_code%2Fkey%2F8H9Ch8GzWPuHBB&amp;display_name=SlideShare&amp;url=https%3A%2F%2Fwww.slideshare.net%2Fonlineturk%2F1667370127510pdf&amp;image=https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2F1667370127510-221102101003-54571bdf-thumbnail.jpg%3Fwidth%3D640%26amp%3Bheight%3D640%26amp%3Bfit%3Dbounds&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=slideshare" width="600" height="640" frameborder="0" scrolling="no"><a href="https://medium.com/media/9436afecc0aa2c559f5760bf17d4e8ff/href">https://medium.com/media/9436afecc0aa2c559f5760bf17d4e8ff/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faa7ac03b71a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ten things you didn’t know about GNU Linux]]></title>
            <link>https://medium.com/@halil_tek/ten-things-you-didnt-know-about-gnu-linux-b32f0eaf0411?source=rss-b1eeb0628c1a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b32f0eaf0411</guid>
            <dc:creator><![CDATA[Halil Tek]]></dc:creator>
            <pubDate>Mon, 31 Oct 2022 05:27:13 GMT</pubDate>
            <atom:updated>2022-10-31T05:27:13.611Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*6LwPOq2z2IVQJHNm.png" /></figure><h3>GNU Linux: 10 things you don’t know yet that will surprise you</h3><p>GNU Linux with its multiple distributions is the most widespread free — but not necessarily cost-free — operating system in the world. It will turn 26 years old the<a href="https://www.pcworld.com/article/3112357/linux/linuxs-brilliant-career-in-pictures.html#slide2"> 25 of August</a> and for this special occasion, here we have 10 facts that you may not know about the penguin’s OS, told from the point of view of an app programmer. Since there are<a href="http://www.linfo.org/newbies.html"> several obstacles</a> that the kernel and its programmers (oh yes, there are many) have to wade through to get to our lives, let’s check out those facts!</p><p><strong>1. </strong><a href="https://mail-archives.apache.org/mod_mbox/httpd-docs/200105.mbox/%3C200105121825.f4CIPwK01232@rhiannon.rcbowen.com%3E">Apache</a><strong> WebServer was the killer-app:</strong> In the 90s, when personal computers became popular (and before the Internet existed), the killer-app was the Lotus 123 spreadsheet software, which means that people were buying a computer to run that program in particular. After the Internet became a thing, Apache WebServer turned into the application program that most people used for their first websites, and guess what? This software ran under…GNU Linux. Even today, the LAMP combo (Linux, Apache, MySQL and PHP) is running in most websites, including giants such as Twitter, Google, Amazon, Wikipedia, Instagram and Facebook.</p><p><strong>2. Linus Torvalds, the creator of GNU Linux, is currently collaborating with the 2% of the kernel:</strong> This is because it hosts more than 18 million lines written by thousands of programmers. How can so many people coordinate to write code in C language? <strong>The killer-app that was crucial to develop GNU Linux was, and still is, the version control system invented by Linus Torvalds, but written by other talented developers: the famous Git.</strong> Since it is free software, platforms like GitHub host dozens of thousands of projects, not only dealing with software, but also with books, laws and everything that needs to be carefully checked in a cooperative way.</p><p>Currently, 25 years after launching his college project,<a href="https://medium.freecodecamp.org/linux-is-25-yay-lets-celebrate-with-25-rad-facts-about-linux-c8d8ac30076d"> Linus Torvalds has an annual salary of 10 million dollars</a>, and before Ian Murdock’s passing (the creator of the “Debian” distribution based on GNU Linux), he earned 295 million dollars per year. It is estimated that the total time invested by the developers, in man-hours, is equivalent to 5 million US$.</p><p><strong>3. Android is not the only OS based on GNU Linux:</strong> Most of the people think that the only Smartphone operating system based on GNU Linux is Android, but there are some more, such as<a href="https://support.mozilla.org/en-US/products/firefox-os"> “Firefox OS”</a> or <a href="https://en.wikipedia.org/wiki/Ubuntu_Mobile">“Ubuntu Mobile”</a>, among others. And by the way, Android is not free software but open-source, which is different: all free software meets the definition of open-source,<em> but </em><strong><em>NOT</em></strong><em> every open-source code is qualified as free software, due to its restrictive nature</em>.</p><p><strong>4. Apart from cell phones</strong>,<a href="https://www.omgubuntu.co.uk/2016/08/25-awesome-unexpected-things-powered-linux"> GNU Linux can be found in more unexpected places:</a> from Formula One pilots that get information recovered from the sensors located in their cars, to unmanned aircrafts (or drones), going through small devices placed in our homes such as vigilance systems or air conditioning, and also including sonar for nuclear submarines of the US Navy (which use Red Hat Linux). As you can see, there are thousands of environments using GNU Linux!</p><p>The space station uses Debian, NASA uses Ubuntu while the European Space Agency has chosen SUSE. The European Organization for Nuclear Research known as <strong>CERN</strong>, has joined the trend with “Scientific Linux” (which stems from “Red Hat Enterprise”) and let’s not forget about<a href="https://www.zdnet.com/article/linux-dominates-supercomputers-as-never-before/"> the supercomputers</a> that governments use all around the world for matters such as weather forecast, global warming, search for extraterrestrial life or big city traffic: GNU Linux <a href="https://fossbytes.com/supercomputer-operating-system-linux/">controls 485 of the existing 500 high computing power machines</a>, also making the study of the next quantum computers possible. Even the police in Europe use GNU Linux!</p><p><strong>5. GNU Linux allows software compilation made to any computer’s measure:</strong> it may not always work at first, but it is totally true. The most popular distributions such as Fedora and Debian (and derivatives) share common <em>kernels</em> that can be adapted to most modern hardware, but even using privative controllers is possible (just like it happens with Ubuntu). The Linux <em>kernel</em> itself takes 5% of the space <strong>and the controllers take just a bit over 55%</strong>. However, each distribution has its own way to look for updated controllers to better explore the operating system’s resources,<em> but the applications also benefit from this</em>, just to name a particular case, that’s what happens to VirtualBox. A program that allows installing virtual machines and thus, really making the most of multicore processors. If it’s necessary to install it in a new distribution, we must compile the kernels again for virtual devices (which is particularly useful<a href="http://www.ks7000.net.ve/2015/04/24/virtualbox-kernels-canaima/"> if we use a distro that hasn’t been tested with VirtualBox</a>). A <a href="https://phenobarbital.wordpress.com/2012/07/24/postgresql-una-instalacion-de-postgresql-basica-pero-mejor/">PostgreSQL database can be optimized</a> and tuned depending on the hardware it’s running in! This makes GNU Linux endlessly scalable, and we will be able to run it on very different devices by choosing the corresponding kernel and then compiling to improve details in specific applications. Now, that’s what we call flexibility!</p><p><strong>6. GNU Linux is ready to use:</strong> No, we’re not lying. Most distributions come with a program combo fully preset with security always in mind, which is the reason why you won’t find an antivirus among them. We’re not saying viruses don’t exist in GNU Linux, it’s just that there aren’t many due to the operating system’s not having any hidden corner we can’t reach to monitor its booting up and performance. Nevertheless, GNU Linux runs in big networks of database servers which store millions of documents (files) for every kind of operating systems (see point 1). It was necessary to create some antivirus for this purpose: controlling what users upload to those “clouds”. <a href="https://www.clamav.net/">One of those popular antivirus software programs is Clamav. </a>Even when having any other operating system, you will always have GNU Linux at reach <a href="https://lifehacker.com/top-10-uses-for-linux-even-if-your-main-pc-runs-window-1513172815">without having to install it in your computer</a>.</p><p><strong>7. Linux GNU is only a seventh part of a whole, but it is essential!:</strong> Before Linus Torvalds launched his core –kernel in German- all the other basic components already existed in a thousand different versions. Those components are, in a simplified and categorized way (in order of importance and computer booting) as follows:</p><ul><li><strong>Boot management</strong> (<em>“bootloader”</em>, not shown).</li><li><strong>Core (“kernel”, in the case of GNU Linux).</strong></li><li><strong>Services</strong> (programs without graphic interface called “daemons”).</li><li><strong>Command terminal window, “shell” or </strong><a href="https://www.gnu.org/software/bash/">“bash”</a> (web servers, data, etc. go up to this point; we don’t need anything else to manage and / or monitor them).</li><li><strong>Graphical server:</strong> it changes the monitor’s mode from text to graphic (explaining it is kind of long, but we can say your monitor “knows” how to draw a letter on the screen in the text mode with just the ASCII numeric code; in the graphic mode, it draws every pixel, step by step; that’s what the graphical server does).</li><li><strong>Desktop environment:</strong> it draws the effects of windows, wallpapers, etc. and we could say that it is the graphic interface that interacts with the users (and the component that triggers the biggest and most gruesome programming battles which illustrate the famous idiom <em>“a wise man once said, there’s no accounting for taste”</em>.</li><li><strong>Applications or apps:</strong> Similar to those we saw at the beginning, which even push the whole block.</li></ul><p><strong>8. Windows 10 supports “Windows Subsystem for Linux” (aka “WSL”) ¡BUT IT DOESN’T USE LINUX!:</strong> We mentioned the operating system “layers” in point 7 for that reason; the bash and the apps that don’t require a graphic environment, with a proper configuration and security adjustments for the programmers or admins to have the whole GNU Linux environment, under the kernel of that privative software.</p><p>Do you remember about the antivirus? Well, if you have Windows Defender installed in Windows 10 (<em>or any other monitoring software</em>,<strong> in theory</strong>) the antivirus will be able to access the free apps that we run under WSL. We will be able to install the apps that run in GNU Linux (Ubuntu, to be more specific) and we can even update them with the <em>“apt-get update”</em> command, in a completely independent way from the Windows 10 OS. <strong>Is this environment secure? We’ll keep our judgments to ourselves, but we can’t ignore what’s obvious: free software has come to take on every space.</strong></p><p><strong>9. It isn’t necessary to reboot GNU Linux:</strong> Just like that, as clear as day… if you have a good system administrator and if your hardware has the redundant elements of a server (a <a href="https://en.wikipedia.org/wiki/Kernel_panic">kernel panic</a> can happen due to a hardware failure). Like we explained before, there are daemons and applications that must be updated frequently, depending on the possibilities of our selected distribution, and by means of scripts or process files in batches, <em>we must reboot each of these daemons and apps without having to reboot the computer</em>. But updating the <em>kernel</em> is a completely different story: we must have the <a href="https://www.ubuntu.com/server/livepatch">necessary abilities</a> to reload the new core, which is a<a href="http://www.linux-mag.com/id/7403/"> delicate and methodic matter</a>. At this point, we must evaluate if all the work of reloading a new kernel takes is better than rebooting the computer: <strong>only if we have a mission-critical server will it be worth worrying about applying the update this way</strong>.</p><p>Another thing: we should update the <em>kernel</em> if we are physically present in front of the computer; however we have known cases of administrators who have developed scripts to do it remotely. Those scripts answer necessary questions which we will not be able to answer because we lose the connection briefly while the demons and services stop to be reloaded with the new <em>kernel</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/0*zAMMTZiWECK2efHr.jpg" /></figure><p><strong>10. There are 115 million lines in cooperative projects belonging to the </strong><a href="https://www.linuxfoundation.org/projects/">Linux Foundation</a><strong> like</strong><a href="https://letsencrypt.org/"> “Let’s encrypt”</a>, which provides free digital certificates to be able to install web servers that run safe communication protocols (which can’t be intercepted by third parties); “Node JS”, which allows tools in execution time with JavaScript; or “Xen Project”, which is in charge of developing “Hypervisor” in free software for virtual machines (which is also involved with the big ones such as Google, AMD, Intel and Oracle, just to name a few): all these and many more are part of the immense universe made possible by developing the monolithic <em>kernel</em> known as <strong>Linux</strong>. Just by itself, the Linux Foundation contributes 0, 6% of programmed lines and Red Hat, Intel and AMD together make 20% of the code, so you can imagine the large economic interest there is in developing the free software.</p><h3>Main GNU Linux distributions:</h3><ul><li>Debian (with its prodigal son, Ubuntu, and its family).</li><li>SLS (the origin of Slackware and its derivatives).</li><li>Red Hat (with its famous descendants Fedora, CentOS, CERN, Oracle Enterprise and many more).</li></ul><p>And we’re not naming them all; <a href="https://cdn-images-1.medium.com/max/2000/1*7KP2aqaHVrCgJfF9mhE8hQ.png">here</a> you can see a graphic and historical summary.</p><h3>Conclusion</h3><p>We can’t deny that GNU Linux has its detractors, but even themselves have their own implicit answer: you have the code, repair it yourselves! We find a whole lot of things that make GNU Linux a truly innovative experience from the moment we install it in our computer, while we surf the internet, when we execute multiple desktops once installed or when it partitions our hard drives without losing data and allowing us to use the same hardware for more than 5 years. Not to mention that we won’t have secret “backdoors” and we’re not being spied by governments or any other entities, whatever the reasons they have to attack us. All this together gives us (and our data) a great peace of mind.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/0*7g5QFCWglNmP1s2L.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b32f0eaf0411" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>