<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>serial port - HaiNH</title>
	<atom:link href="https://hainh.dev/tag/serial-port/feed/" rel="self" type="application/rss+xml" />
	<link>https://hainh.dev</link>
	<description></description>
	<lastBuildDate>Wed, 21 Nov 2018 15:10:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://hainh.dev/wp-content/uploads/2025/10/cropped-logomyblog-32x32.png</url>
	<title>serial port - HaiNH</title>
	<link>https://hainh.dev</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">249252746</site>	<item>
		<title>Phần mềm kiểm tra chất lượng tem in barcode NG</title>
		<link>https://hainh.dev/phan-mem-kiem-tra-chat-luong-tem-in-barcde-ng/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=phan-mem-kiem-tra-chat-luong-tem-in-barcde-ng</link>
					<comments>https://hainh.dev/phan-mem-kiem-tra-chat-luong-tem-in-barcde-ng/#respond</comments>
		
		<dc:creator><![CDATA[NGUYỄN HOÀNG HẢI]]></dc:creator>
		<pubDate>Wed, 21 Nov 2018 15:10:01 +0000</pubDate>
				<category><![CDATA[Dự án]]></category>
		<category><![CDATA[barcode]]></category>
		<category><![CDATA[công cụ]]></category>
		<category><![CDATA[dự án]]></category>
		<category><![CDATA[IoT]]></category>
		<category><![CDATA[quản lý sản xuất]]></category>
		<category><![CDATA[serial port]]></category>
		<guid isPermaLink="false">https://hainh2k3.com/?p=1150</guid>

					<description><![CDATA[<p>Ứng dụng: Sử dụng trong các nhà máy công nghiệp, phát hiện các mã vạch được in lên sản phẩm đang chạy trên băng chuyền là NG hay OK, nếu NG lập tức dừng in hoặc loại bỏ sản phẩm được in mã vạch bị lỗi ra khỏi băng chuyền, đồng thời thông báo hú...</p>
<p>The post <a href="https://hainh.dev/phan-mem-kiem-tra-chat-luong-tem-in-barcde-ng/">Phần mềm kiểm tra chất lượng tem in barcode NG</a> first appeared on <a href="https://hainh.dev">HaiNH</a>.</p>]]></description>
										<content:encoded><![CDATA[<h3><img fetchpriority="high" decoding="async" data-attachment-id="1151" data-permalink="https://hainh.dev/phan-mem-kiem-tra-chat-luong-tem-in-barcde-ng/kiem-tra-barcode-1/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-1.jpg" data-orig-size="703,529" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="kiem tra barcode 1" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-1-300x226.jpg" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-1.jpg" class="aligncenter size-full wp-image-1151" src="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-1.jpg" alt="" width="703" height="529" srcset="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-1.jpg 703w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-1-300x226.jpg 300w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-1-412x309.jpg 412w" sizes="(max-width: 703px) 100vw, 703px" /></h3>
<h3><span style="color: #008000;">Ứng dụng:</span></h3>
<p>Sử dụng trong các nhà máy công nghiệp, phát hiện các mã vạch được in lên sản phẩm đang chạy trên băng chuyền là NG hay OK, nếu NG lập tức dừng in hoặc loại bỏ sản phẩm được in mã vạch bị lỗi ra khỏi băng chuyền, đồng thời thông báo hú còi và đèn cho mọi người biết.</p>
<h3><span style="color: #008000;">Gồm 4 thành phần chính:</span></h3>
<ol>
<li><strong>Phần mềm in:</strong> Thực hiện xuất lệnh in mã barcode cho máy in.</li>
<li><strong>Máy in</strong>: Kết nối với phần mềm in và thực hiện lệnh in.</li>
<li><strong>Máy đọc barcode</strong>: Đọc barcode vừa được in ra và gửi kết quả về phần mềm kiểm tra.</li>
<li><strong>Phần mềm kiểm tra</strong>: So sánh kết quả máy đọc vừa gửi về với lệnh in để đưa kết quả OK hay NG.</li>
</ol>
<p><img decoding="async" data-attachment-id="1152" data-permalink="https://hainh.dev/phan-mem-kiem-tra-chat-luong-tem-in-barcde-ng/kiem-tra-barcode-2/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-2.jpg" data-orig-size="1525,835" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="kiem tra barcode 2" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-2-300x164.jpg" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-2-1024x561.jpg" class="aligncenter size-full wp-image-1152" src="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-2.jpg" alt="" width="1525" height="835" srcset="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-2.jpg 1525w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-2-300x164.jpg 300w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-2-1024x561.jpg 1024w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-2-768x421.jpg 768w" sizes="(max-width: 1525px) 100vw, 1525px" /></p>
<p>Một số hình ảnh về phần mềm hệ thống</p>
<p><img decoding="async" data-attachment-id="1154" data-permalink="https://hainh.dev/phan-mem-kiem-tra-chat-luong-tem-in-barcde-ng/kiem-tra-barcode-3/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-3.jpg" data-orig-size="1381,810" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="kiem tra barcode 3" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-3-300x176.jpg" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-3-1024x601.jpg" class="aligncenter size-full wp-image-1154" src="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-3.jpg" alt="" width="1381" height="810" srcset="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-3.jpg 1381w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-3-300x176.jpg 300w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-3-1024x601.jpg 1024w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-3-768x450.jpg 768w" sizes="(max-width: 1381px) 100vw, 1381px" /></p>
<p style="text-align: center;">Màn hình báo đọc mã vạch thành công</p>
<p><img loading="lazy" decoding="async" data-attachment-id="1155" data-permalink="https://hainh.dev/phan-mem-kiem-tra-chat-luong-tem-in-barcde-ng/kiem-tra-barcode-4/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-4.jpg" data-orig-size="1375,808" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="kiem tra barcode 4" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-4-300x176.jpg" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-4-1024x602.jpg" class="aligncenter size-full wp-image-1155" src="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-4.jpg" alt="" width="1375" height="808" srcset="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-4.jpg 1375w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-4-300x176.jpg 300w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-4-1024x602.jpg 1024w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-4-768x451.jpg 768w" sizes="(max-width: 1375px) 100vw, 1375px" /></p>
<p style="text-align: center;">Màn hình báo đọc mã vạch NG &#8211; bị in trùng mã</p>
<p><img loading="lazy" decoding="async" data-attachment-id="1156" data-permalink="https://hainh.dev/phan-mem-kiem-tra-chat-luong-tem-in-barcde-ng/kiem-tra-barcode-5/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-5.jpg" data-orig-size="1382,811" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="kiem tra barcode 5" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-5-300x176.jpg" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-5-1024x601.jpg" class="aligncenter size-full wp-image-1156" src="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-5.jpg" alt="" width="1382" height="811" srcset="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-5.jpg 1382w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-5-300x176.jpg 300w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-5-1024x601.jpg 1024w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-5-768x451.jpg 768w" sizes="(max-width: 1382px) 100vw, 1382px" /></p>
<p style="text-align: center;">Màn hình báo đọc mã vạch NG &#8211; không đọc được</p>
<p><img loading="lazy" decoding="async" data-attachment-id="1157" data-permalink="https://hainh.dev/phan-mem-kiem-tra-chat-luong-tem-in-barcde-ng/kiem-tra-barcode-6/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-6.jpg" data-orig-size="845,648" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="kiem tra barcode 6" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-6-300x230.jpg" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-6.jpg" class="aligncenter size-full wp-image-1157" src="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-6.jpg" alt="" width="845" height="648" srcset="https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-6.jpg 845w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-6-300x230.jpg 300w, https://hainh.dev/wp-content/uploads/2018/11/kiem-tra-barcode-6-768x589.jpg 768w" sizes="(max-width: 845px) 100vw, 845px" /></p>
<p style="text-align: center;">Tra cứu lịch xử các lần đọc mã vạch</p>


<figure class="wp-block-image"><img loading="lazy" decoding="async" width="1032" height="530" data-attachment-id="2692" data-permalink="https://hainh.dev/phan-mem-kiem-tra-chat-luong-tem-in-barcde-ng/xuat-excel/" data-orig-file="https://hainh.dev/wp-content/uploads/2019/10/xuat-excel.png" data-orig-size="1032,530" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="xuat-excel" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2019/10/xuat-excel-300x154.png" data-large-file="https://hainh.dev/wp-content/uploads/2019/10/xuat-excel-1024x526.png" src="https://hainh.dev/wp-content/uploads/2019/10/xuat-excel.png" alt="" class="wp-image-2692" srcset="https://hainh.dev/wp-content/uploads/2019/10/xuat-excel.png 1032w, https://hainh.dev/wp-content/uploads/2019/10/xuat-excel-300x154.png 300w, https://hainh.dev/wp-content/uploads/2019/10/xuat-excel-1024x526.png 1024w, https://hainh.dev/wp-content/uploads/2019/10/xuat-excel-768x394.png 768w" sizes="(max-width: 1032px) 100vw, 1032px" /><figcaption>Kết quả xuất excel</figcaption></figure><p>The post <a href="https://hainh.dev/phan-mem-kiem-tra-chat-luong-tem-in-barcde-ng/">Phần mềm kiểm tra chất lượng tem in barcode NG</a> first appeared on <a href="https://hainh.dev">HaiNH</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://hainh.dev/phan-mem-kiem-tra-chat-luong-tem-in-barcde-ng/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1150</post-id>	</item>
		<item>
		<title>Tạo cổng COM Serial Port ảo và giả lập giá trị</title>
		<link>https://hainh.dev/tao-cong-com-serial-port-ao-va-gia-lap-gia-tri/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tao-cong-com-serial-port-ao-va-gia-lap-gia-tri</link>
					<comments>https://hainh.dev/tao-cong-com-serial-port-ao-va-gia-lap-gia-tri/#comments</comments>
		
		<dc:creator><![CDATA[NGUYỄN HOÀNG HẢI]]></dc:creator>
		<pubDate>Wed, 07 Nov 2018 15:21:57 +0000</pubDate>
				<category><![CDATA[Công cụ hỗ trợ]]></category>
		<category><![CDATA[công cụ]]></category>
		<category><![CDATA[IoT]]></category>
		<category><![CDATA[phần mềm]]></category>
		<category><![CDATA[serial port]]></category>
		<guid isPermaLink="false">https://hainh2k3.com/?p=1059</guid>

					<description><![CDATA[<p>Khi phát triển ứng dụng cần giao tiếp qua cổng COM thì chúng ta thường phải kết nối với thiết bị thật để đọc giá trị lên và phân tích nhận nội dung chúng ta mong muốn. Tuy nhiên không phải lúc nào chúng ta cũng có điều kiện để kết nối đến thiết bị...</p>
<p>The post <a href="https://hainh.dev/tao-cong-com-serial-port-ao-va-gia-lap-gia-tri/">Tạo cổng COM Serial Port ảo và giả lập giá trị</a> first appeared on <a href="https://hainh.dev">HaiNH</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Khi phát triển ứng dụng cần giao tiếp qua cổng COM thì chúng ta thường phải kết nối với thiết bị thật để đọc giá trị lên và phân tích nhận nội dung chúng ta mong muốn. Tuy nhiên không phải lúc nào chúng ta cũng có điều kiện để kết nối đến thiết bị thật để code. Với trường hợp như vậy mình buộc phải sử dụng việc tạo cổng COM ảo và giả lập giá trị cho nó để chương trình của mình kết nối đến và đọc giá trị.</p>
<p>Việc đầu tiên là chúng ta cần tạo cổng COM ảo, mình sử dụng <a href="http://com0com.sourceforge.net/" target="_blank" rel="noopener">com0com</a> vì nó opensource và miễn phí, các bạn có thể tải <a href="https://drive.google.com/open?id=111LTAL9LJLNvS8HZpCG7vmDIidQJ2kCn" target="_blank" rel="noopener">ở đây</a>  . Giải nén ra các bạn cài đặt phiên bản phù hợp với máy các bạn 64 hoặc 32 bit.</p>
<p><img loading="lazy" decoding="async" data-attachment-id="1060" data-permalink="https://hainh.dev/tao-cong-com-serial-port-ao-va-gia-lap-gia-tri/gia-lap-cong-com-1/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-1.jpg" data-orig-size="447,393" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="gia lap cong com 1" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-1-300x264.jpg" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-1.jpg" class="aligncenter size-full wp-image-1060" src="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-1.jpg" alt="" width="447" height="393" srcset="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-1.jpg 447w, https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-1-300x264.jpg 300w" sizes="(max-width: 447px) 100vw, 447px" /></p>
<p>Khi cài xong mình Remove đi hết và bấm Add Pair 1 lần để tạo Virtual Port Pair 0, Tại 2 ô textbox bên phải bạn đánh tên 2 cổng COM muốn giả lập, ở đây mình nhập COM5 và COM6, 2 cổng này mắc nối tiếp nhau như vậy khi tín hiệu được gửi đến 1 trong 2 cổng thì nó sẽ được đẩy tiếp sang cổng kia. Trong trường hợp này mình sẽ để COM5 là cổng giả lập để chương trình của mình kết nối đến nó và đọc giá trị, trong khi đó thì COM6 sẽ nhận giá trị từ 1 chương trình khác có chức năng Send giá trị cho nó và chuyển tiếp đến COM5. Ở đây mình sẽ sử dụng chương trình <a href="https://drive.google.com/open?id=1O8UIdQLyWEkAH9WCTPSpMfGoZcL_8XR1">terminal</a>  để giả lập các giá trị tín hiệu gửi đến.</p>
<p><img loading="lazy" decoding="async" data-attachment-id="1061" data-permalink="https://hainh.dev/tao-cong-com-serial-port-ao-va-gia-lap-gia-tri/gia-lap-cong-com-2/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-2.jpg" data-orig-size="869,629" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="gia lap cong com 2" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-2-300x217.jpg" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-2.jpg" class="aligncenter size-full wp-image-1061" src="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-2.jpg" alt="" width="869" height="629" srcset="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-2.jpg 869w, https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-2-300x217.jpg 300w, https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-2-768x556.jpg 768w" sizes="(max-width: 869px) 100vw, 869px" /></p>
<p style="text-align: center;">Chọn COM Port 6, và bấm nút Set Macros để giả lập gửi giá trị cho COM6 theo kiểu timer.</p>
<p><img loading="lazy" decoding="async" data-attachment-id="1065" data-permalink="https://hainh.dev/tao-cong-com-serial-port-ao-va-gia-lap-gia-tri/gia-lap-cong-com-2-2/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-2-1.jpg" data-orig-size="397,679" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="gia lap cong com 2" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-2-1-175x300.jpg" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-2-1.jpg" class="aligncenter size-full wp-image-1065" src="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-2-1.jpg" alt="" width="397" height="679" srcset="https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-2-1.jpg 397w, https://hainh.dev/wp-content/uploads/2018/11/gia-lap-cong-com-2-1-175x300.jpg 175w" sizes="(max-width: 397px) 100vw, 397px" /></p>
<p>Chương trình cho phép tối đa 24 dòng, ở đây mình giả lập giá trị trong 10 ô đầu từ 500 &#8211; 600 tại ô Transmit Macrco, ký tự #010 là dấu xuống dòng, Giá trị sau các ô M1-M21 là thời gian đợi để gửi giá trị ô đó, sử dụng ô nào chỉ việc tick vào ô check cuối cùng.</p>
<p><img loading="lazy" decoding="async" data-attachment-id="1064" data-permalink="https://hainh.dev/tao-cong-com-serial-port-ao-va-gia-lap-gia-tri/ket-noi-cong-com-2/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/ket-noi-cong-com-2.gif" data-orig-size="1414,714" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="ket noi cong com 2" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/ket-noi-cong-com-2-300x151.gif" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/ket-noi-cong-com-2-1024x517.gif" class="aligncenter size-full wp-image-1064" src="https://hainh.dev/wp-content/uploads/2018/11/ket-noi-cong-com-2.gif" alt="" width="1414" height="714" /></p>
<p style="text-align: center;">Thử dùng chương trình <a href="https://drive.google.com/open?id=1mkV9md1uos8uceWl2F8wJ4yT3lAKxlgD">hercules</a> để kiểm tra xem giá trị được truyền như nào nhé.</p>
<p><img loading="lazy" decoding="async" data-attachment-id="1066" data-permalink="https://hainh.dev/tao-cong-com-serial-port-ao-va-gia-lap-gia-tri/ket-noi-cong-com/" data-orig-file="https://hainh.dev/wp-content/uploads/2018/11/ket-noi-cong-com.gif" data-orig-size="1130,794" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="ket noi cong com" data-image-description="" data-image-caption="" data-medium-file="https://hainh.dev/wp-content/uploads/2018/11/ket-noi-cong-com-300x211.gif" data-large-file="https://hainh.dev/wp-content/uploads/2018/11/ket-noi-cong-com-1024x720.gif" class="aligncenter size-full wp-image-1066" src="https://hainh.dev/wp-content/uploads/2018/11/ket-noi-cong-com.gif" alt="" width="1130" height="794" /></p>
<p style="text-align: center;">Thử dùng chương trình của mình kết nối đến COM 5 để đọc giá trị cân</p>
<p>Không quá phức tạp phải không? Nếu bạn có vấn đề gì chưa rõ hay cần quan tâm hãy để lại bình luận dưới bài viết này của mình nhé.</p>
<p><strong>Thanks all!</strong></p><p>The post <a href="https://hainh.dev/tao-cong-com-serial-port-ao-va-gia-lap-gia-tri/">Tạo cổng COM Serial Port ảo và giả lập giá trị</a> first appeared on <a href="https://hainh.dev">HaiNH</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://hainh.dev/tao-cong-com-serial-port-ao-va-gia-lap-gia-tri/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1059</post-id>	</item>
	</channel>
</rss>
