<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Binary on Faiq Najib</title>
		<link>https://najib.id/en/tags/binary/</link>
		<description>Recent content in Binary on Faiq Najib</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
			<copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright>
		
		
			<lastBuildDate>Wed, 11 Nov 2026 23:31:00 +0700</lastBuildDate>
		
			<atom:link href="https://najib.id/en/tags/binary/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Decoding Packets: GT06 &amp; Teltonika Protocols</title>
				<link>https://najib.id/en/writing/2026/decode-packet-gt06-teltonika/</link>
				<pubDate>Wed, 14 Oct 2026 00:00:00 +0000</pubDate>
				<guid>https://najib.id/en/writing/2026/decode-packet-gt06-teltonika/</guid>
				<description>&lt;p&gt;In &lt;a href=&#34;https://najib.id/en/writing/2026/tcp-listener-gps-go/&#34;&gt;Part 2&lt;/a&gt;, we built a listener that assembles incoming TCP streams into complete frames. Now it&amp;rsquo;s time to read what&amp;rsquo;s inside. Bytes like &lt;code&gt;0x78 0x78 0x0D 0x01 ...&lt;/code&gt; need to become useful information, such as &lt;code&gt;IMEI 123456789012345, position -7.2575, 112.7521, heading 180°&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;While writing this article, I was convinced that the GT06 datasheet&amp;rsquo;s login packet example was &lt;code&gt;... 6C 00 01 8C ...&lt;/code&gt; and that its CRC could use standard CRC-CCITT. &lt;strong&gt;Both were wrong&lt;/strong&gt;, hahaha. I only realized it when my own code rejected the datasheet&amp;rsquo;s example. Lesson: with binary protocols, trust test vectors over your memory.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
