{"id":1549,"date":"2022-07-05T02:39:37","date_gmt":"2022-07-05T02:39:37","guid":{"rendered":"http:\/\/www.bigdata.rmutt.ac.th\/?p=1549"},"modified":"2022-07-18T16:11:17","modified_gmt":"2022-07-18T16:11:17","slug":"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99-python-%e0%b8%ad%e0%b9%88%e0%b8%b2%e0%b8%99%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%a1%e0%b8%b9%e0%b8%a5%e0%b8%88%e0%b8%b2%e0%b8%81-se","status":"publish","type":"post","link":"https:\/\/www.bigdata.rmutt.ac.th\/?p=1549","title":{"rendered":"\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19 Python \u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01 Sensor"},"content":{"rendered":"\n\n\n<p>\u0e43\u0e19\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e19\u0e35\u0e49\u0e2d\u0e32\u0e08\u0e32\u0e23\u0e22\u0e4c\u0e08\u0e30\u0e2a\u0e32\u0e18\u0e34\u0e15\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e19\u0e20\u0e32\u0e29\u0e32 python \u0e41\u0e25\u0e30\u0e08\u0e33\u0e25\u0e2d\u0e07 serial port \u0e17\u0e33\u0e01\u0e32\u0e23\u0e08\u0e33\u0e25\u0e2d\u0e07\u0e1d\u0e31\u0e48\u0e07\u0e1c\u0e39\u0e49\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e42\u0e14\u0e22\u0e23\u0e31\u0e1a\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e08\u0e32\u0e01\u0e1c\u0e39\u0e49\u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e25\u0e30\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2a\u0e21\u0e21\u0e38\u0e15\u0e34\u0e01\u0e25\u0e31\u0e1a\u0e21\u0e32\u0e22\u0e31\u0e07\u0e1d\u0e31\u0e48\u0e07\u0e17\u0e35\u0e48\u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0e2a\u0e34\u0e48\u0e07\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e08\u0e31\u0e14\u0e40\u0e15\u0e23\u0e35\u0e22\u0e21\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e08\u0e33\u0e25\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2d\u0e48\u0e32\u0e19\u0e41\u0e25\u0e30\u0e40\u0e02\u0e35\u0e22\u0e19\u0e08\u0e32\u0e01 serial port<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>PC<\/li><li>\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 python \u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01 <a href=\"https:\/\/www.python.org\/downloads\/\">https:\/\/www.python.org\/downloads\/<\/a><\/li><li>\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e08\u0e33\u0e25\u0e2d\u0e07 port serial \u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01 <a href=\"https:\/\/download.cnet.com\/Free-Virtual-Serial-Ports-Emulator\/3000-2206_4-10836189.html\">https:\/\/download.cnet.com\/Free-Virtual-Serial-Ports-Emulator\/3000-2206_4-10836189.html<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u0e01\u0e32\u0e23\u0e08\u0e33\u0e25\u0e2d\u0e07 serial port<\/h2>\n\n\n\n<p>\u0e40\u0e1b\u0e34\u0e14\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e08\u0e33\u0e25\u0e2d\u0e07 serial port \u0e08\u0e30\u0e1b\u0e23\u0e32\u0e01\u0e0e\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d\u0e02\u0e2d\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"611\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/07\/image.png\" alt=\"\" class=\"wp-image-1570\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0e17\u0e35\u0e48\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 Device \u0e40\u0e25\u0e37\u0e2d\u0e01 Create \u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"611\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/07\/image-2.png\" alt=\"\" class=\"wp-image-1572\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0e40\u0e25\u0e37\u0e2d\u0e01 Device type \u0e40\u0e1b\u0e47\u0e19 Connector \u0e41\u0e25\u0e30\u0e04\u0e25\u0e34\u0e49\u0e01 Next \u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"398\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/07\/image-3.png\" alt=\"\" class=\"wp-image-1573\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0e40\u0e25\u0e37\u0e2d\u0e01 port \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e08\u0e33\u0e25\u0e2d\u0e07 \u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49\u0e2d\u0e32\u0e08\u0e32\u0e23\u0e22\u0e4c\u0e40\u0e25\u0e37\u0e2d\u0e01 COM7 \u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b (\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2b\u0e25\u0e35\u0e01\u0e40\u0e25\u0e35\u0e48\u0e22\u0e07\u0e01\u0e32\u0e23\u0e44\u0e1b\u0e15\u0e23\u0e07\u0e01\u0e31\u0e1a COM port \u0e2d\u0e37\u0e48\u0e19 \u0e46 \u0e17\u0e35\u0e48\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e21\u0e35\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 \u0e40\u0e0a\u0e48\u0e19 COM1 \u0e15\u0e48\u0e2d\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c USB \u0e2d\u0e22\u0e39\u0e48 \u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e19) \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e01\u0e14\u0e1b\u0e38\u0e48\u0e21 Finis<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"398\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/07\/image-4.png\" alt=\"\" class=\"wp-image-1574\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e08\u0e30\u0e41\u0e2a\u0e14\u0e07\u0e1c\u0e25\u0e27\u0e48\u0e32 COM7 \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e41\u0e25\u0e49\u0e27 \u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"611\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/07\/image-5.png\" alt=\"\" class=\"wp-image-1575\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u0e01\u0e32\u0e23\u0e2d\u0e48\u0e32\u0e19\u0e41\u0e25\u0e30\u0e40\u0e02\u0e35\u0e22\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 serial port \u0e14\u0e49\u0e27\u0e22 python<\/h2>\n\n\n\n<p>\u0e40\u0e1b\u0e34\u0e14 editor \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e02\u0e35\u0e22\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e02\u0e2d\u0e07 python \u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49 \u0e2d.\u0e43\u0e0a\u0e49 Visual Studio Code \u0e01\u0e48\u0e2d\u0e19\u0e2d\u0e37\u0e48\u0e19\u0e43\u0e2b\u0e49\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 pyserial \u0e14\u0e49\u0e27\u0e22\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 pip install pyserial \u0e01\u0e48\u0e2d\u0e19 \u0e14\u0e49\u0e27\u0e22\u0e01\u0e32\u0e23\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e19\u0e35\u0e49\u0e43\u0e19 shell<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\npip install pyserial\n<\/pre><\/div>\n\n\n<p>\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e40\u0e02\u0e35\u0e22\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 python \u0e42\u0e14\u0e22\u0e41\u0e1a\u0e48\u0e07\u0e40\u0e1b\u0e47\u0e19 2 \u0e44\u0e1f\u0e25\u0e4c <\/p>\n\n\n\n<p>\u0e43\u0e2b\u0e49\u0e44\u0e1f\u0e25\u0e4c\u0e41\u0e23\u0e01\u0e40\u0e1b\u0e47\u0e19\u0e1d\u0e31\u0e48\u0e07\u0e17\u0e35\u0e48\u0e23\u0e31\u0e1a\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e41\u0e25\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2a\u0e48\u0e07\u0e01\u0e25\u0e31\u0e1a\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e1d\u0e31\u0e48\u0e07\u0e1c\u0e39\u0e49\u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom time import sleep\nimport serial        \ntry:\n    serialPort = serial.Serial(port = &quot;COM7&quot;, baudrate=19200,bytesize=8, timeout=2, stopbits=serial.STOPBITS_ONE)\n    print(&quot;OK the port is opened!&quot;)\n    a = 0\n    v_text = &#039;&#039;\n    while(1):\n        if(serialPort.in_waiting &gt; 0):\n            serialString = serialPort.readline()\n            # convert bytes to string\n            captured_data = serialString.decode(&#039;Ascii&#039;)\n            captured_data = &#x5B;x.replace(&quot;\\r\\n&quot;,&quot;&quot;) for x in captured_data]\n            print(captured_data&#x5B;0])\n            if(captured_data&#x5B;0]==&quot;R&quot;):\n                print(&quot;Ok I have got your request and return 1 record of data for you.&quot;)\n                a += 1\n                v_text = &quot;Data number &quot; + str(a) +&quot; from COM7&quot;\n                serialPort.write(v_text.encode())\n                sleep(1)\n            else:\n                print(&quot;Ok I have got something&quot;)\n        sleep(1)\n\nexcept  serial.SerialException as error:\n    print(&quot;Failed  {}&quot;.format(error))\n<\/pre><\/div>\n\n\n<p>\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48 2 \u0e40\u0e1b\u0e47\u0e19\u0e1d\u0e31\u0e48\u0e07\u0e1c\u0e39\u0e49\u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e2a\u0e48\u0e07\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 R (\u0e40\u0e1b\u0e47\u0e19\u0e02\u0e49\u0e2d\u0e15\u0e01\u0e25\u0e07\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e2d\u0e07) \u0e41\u0e25\u0e30\u0e23\u0e2d\u0e23\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e2a\u0e48\u0e07\u0e01\u0e25\u0e31\u0e1a\u0e21\u0e32\u0e08\u0e32\u0e01\u0e1d\u0e31\u0e48\u0e07\u0e1c\u0e39\u0e49\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nfrom time import sleep\nimport serial\n        \ntry:\n    serialPort = serial.Serial(port = &quot;COM7&quot;, baudrate=19200,bytesize=8, timeout=2, stopbits=serial.STOPBITS_ONE)\n    print(&quot;OK the port is opened!&quot;)\n    v_text = &quot;R \\r\\n&quot;\n    serialPort.write(v_text.encode())\n    print(&quot;Writing &quot;+v_text)\n    sleep(2)\n    while(1):\n\n        if(serialPort.in_waiting &gt; 0):\n            serialString = serialPort.readline()\n            # convert bytes to string\n            captured_data = serialString.decode(&#039;Ascii&#039;)\n            print(&quot;Reading &quot;+captured_data)\n            break\n        else:\n            print(&quot;no data yet&quot;)\n        sleep(1)\n\nexcept  serial.SerialException as error:\n    print(&quot;Failed  {}&quot;.format(error))\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0e23\u0e31\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e1c\u0e39\u0e49\u0e1d\u0e31\u0e48\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e08\u0e30\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e41\u0e08\u0e49\u0e07\u0e27\u0e48\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1b\u0e34\u0e14 port \u0e41\u0e25\u0e30\u0e01\u0e33\u0e25\u0e31\u0e07\u0e23\u0e2d\u0e01\u0e32\u0e23\u0e23\u0e49\u0e2d\u0e07\u0e02\u0e2d\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"123\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/07\/image-7.png\" alt=\"\" class=\"wp-image-1586\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0e23\u0e31\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e1d\u0e31\u0e48\u0e07\u0e1c\u0e39\u0e49\u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e08\u0e30\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e41\u0e08\u0e49\u0e07\u0e27\u0e48\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1b\u0e34\u0e14 port \u0e44\u0e14\u0e49 \u0e41\u0e25\u0e30\u0e40\u0e23\u0e34\u0e48\u0e21\u0e2a\u0e48\u0e07\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 R \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e23\u0e49\u0e2d\u0e07\u0e02\u0e2d\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e1d\u0e31\u0e48\u0e07\u0e1c\u0e39\u0e49\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"108\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/07\/image-8.png\" alt=\"\" class=\"wp-image-1587\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0e1d\u0e31\u0e48\u0e07\u0e1c\u0e39\u0e49\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e23\u0e49\u0e2d\u0e07\u0e02\u0e2d\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e01\u0e47\u0e08\u0e30\u0e15\u0e2d\u0e1a\u0e01\u0e25\u0e31\u0e1a\u0e14\u0e49\u0e27\u0e22\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 1 \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"185\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/07\/image-9.png\" alt=\"\" class=\"wp-image-1588\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0e1d\u0e31\u0e48\u0e07\u0e1c\u0e39\u0e49\u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e30\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e25\u0e30\u0e08\u0e1a\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e01\u0e25\u0e31\u0e1a\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48 command prompt<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"180\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/07\/image-10.png\" alt=\"\" class=\"wp-image-1589\"\/><\/figure>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e2d\u0e31\u0e19\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e2a\u0e34\u0e49\u0e19\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e01\u0e32\u0e23\u0e08\u0e33\u0e25\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 python \u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01 serial port \u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e0b\u0e36\u0e48\u0e07\u0e43\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e08\u0e23\u0e34\u0e07\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e35\u0e22\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 python \u0e44\u0e27\u0e49\u0e43\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e04\u0e2d\u0e21\u0e1e\u0e34\u0e27\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e02\u0e19\u0e32\u0e14\u0e40\u0e25\u0e47\u0e01\u0e17\u0e35\u0e48\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e44\u0e27\u0e49\u0e17\u0e35\u0e48\u0e2a\u0e16\u0e32\u0e19\u0e35\u0e15\u0e23\u0e27\u0e08\u0e27\u0e31\u0e14\u0e04\u0e48\u0e32\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e41\u0e25\u0e30\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d sensor \u0e01\u0e31\u0e1a serial port \u0e02\u0e2d\u0e07\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e04\u0e2d\u0e21\u0e1e\u0e34\u0e27\u0e40\u0e15\u0e2d\u0e23\u0e4c \u0e17\u0e33\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2d\u0e48\u0e32\u0e19\u0e04\u0e48\u0e32\u0e08\u0e32\u0e01 sensor \u0e44\u0e14\u0e49\u0e15\u0e32\u0e21\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e27\u0e25\u0e32\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 \u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e19\u0e31\u0e49\u0e19\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e28\u0e36\u0e01\u0e29\u0e32 protocol \u0e02\u0e2d\u0e07 sensor \u0e14\u0e49\u0e27\u0e22\u0e27\u0e48\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e2a\u0e48\u0e07\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e14\u0e1c\u0e48\u0e32\u0e19 serial port \u0e44\u0e1b\u0e22\u0e31\u0e07 sensor \u0e41\u0e25\u0e30\u0e17\u0e33\u0e43\u0e2b\u0e49 sensor \u0e15\u0e2d\u0e1a\u0e01\u0e25\u0e31\u0e1a\u0e21\u0e32\u0e40\u0e1b\u0e47\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23<\/p>\n\n\n\n<p>\u0e2b\u0e27\u0e31\u0e07\u0e27\u0e48\u0e32\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e31\u0e49\u0e19 \u0e46 \u0e19\u0e35\u0e49\u0e08\u0e30\u0e21\u0e35\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e19\u0e31\u0e01\u0e28\u0e36\u0e01\u0e29\u0e32\u0e17\u0e35\u0e48\u0e2a\u0e19\u0e43\u0e08\u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e43\u0e19\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e17\u0e35\u0e48\u0e04\u0e25\u0e49\u0e32\u0e22\u0e04\u0e25\u0e36\u0e07\u0e01\u0e31\u0e19<\/p>\n\n\n<figure class=\"wp-block-post-featured-image\"><img loading=\"lazy\" decoding=\"async\" width=\"470\" height=\"398\" src=\"https:\/\/www.bigdata.rmutt.ac.th\/wp-content\/uploads\/2022\/07\/image-3.png\" class=\"attachment-post-thumbnail size-post-thumbnail wp-post-image\" alt=\"\" style=\"object-fit:cover;\" \/><\/figure>","protected":false},"excerpt":{"rendered":"<p>\u0e43\u0e19\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e19\u0e35\u0e49\u0e2d\u0e32\u0e08\u0e32\u0e23\u0e22\u0e4c\u0e08\u0e30\u0e2a\u0e32\u0e18\u0e34\u0e15\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e19\u0e20\u0e32\u0e29\u0e32 python \u0e41\u0e25\u0e30\u0e08\u0e33\u0e25\u0e2d\u0e07 serial port \u0e17\u0e33\u0e01\u0e32\u0e23\u0e08\u0e33\u0e25\u0e2d\u0e07\u0e1d\u0e31\u0e48\u0e07\u0e1c\u0e39\u0e49\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e42\u0e14\u0e22\u0e23\u0e31\u0e1a\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e08\u0e32\u0e01\u0e1c\u0e39\u0e49\u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e25\u0e30\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2a\u0e21\u0e21\u0e38\u0e15\u0e34\u0e01\u0e25\u0e31\u0e1a\u0e21\u0e32\u0e22\u0e31\u0e07\u0e1d\u0e31\u0e48\u0e07\u0e17\u0e35\u0e48\u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e2a\u0e34\u0e48\u0e07\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e08\u0e31\u0e14\u0e40\u0e15\u0e23\u0e35\u0e22\u0e21\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e08\u0e33\u0e25\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2d\u0e48\u0e32\u0e19\u0e41\u0e25\u0e30\u0e40\u0e02\u0e35\u0e22\u0e19\u0e08\u0e32\u0e01 serial port PC \u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 python \u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01 https:\/\/www.python.org\/downloads\/ \u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e08\u0e33\u0e25\u0e2d\u0e07 port serial \u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01 https:\/\/download.cnet.com\/Free-Virtual-Serial-Ports-Emulator\/3000-2206_4-10836189.html \u0e01\u0e32\u0e23\u0e08\u0e33\u0e25\u0e2d\u0e07 serial port \u0e40\u0e1b\u0e34\u0e14\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e08\u0e33\u0e25\u0e2d\u0e07 serial port \u0e08\u0e30\u0e1b\u0e23\u0e32\u0e01\u0e0e\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d\u0e02\u0e2d\u0e07\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b \u0e17\u0e35\u0e48\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 Device \u0e40\u0e25\u0e37\u0e2d\u0e01 Create \u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b \u0e40\u0e25\u0e37\u0e2d\u0e01 Device type \u0e40\u0e1b\u0e47\u0e19 Connector \u0e41\u0e25\u0e30\u0e04\u0e25\u0e34\u0e49\u0e01 Next \u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b \u0e40\u0e25\u0e37\u0e2d\u0e01 port \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e08\u0e33\u0e25\u0e2d\u0e07 \u0e43\u0e19\u0e17\u0e35\u0e48\u0e19\u0e35\u0e49\u0e2d\u0e32\u0e08\u0e32\u0e23\u0e22\u0e4c\u0e40\u0e25\u0e37\u0e2d\u0e01 COM7 \u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b (\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2b\u0e25\u0e35\u0e01\u0e40\u0e25\u0e35\u0e48\u0e22\u0e07\u0e01\u0e32\u0e23\u0e44\u0e1b\u0e15\u0e23\u0e07\u0e01\u0e31\u0e1a COM port \u0e2d\u0e37\u0e48\u0e19 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":1573,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,22],"tags":[13,16,17],"class_list":["post-1549","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","category-python-development","tag-development","tag-python","tag-sensor"],"_links":{"self":[{"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/posts\/1549"}],"collection":[{"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1549"}],"version-history":[{"count":15,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/posts\/1549\/revisions"}],"predecessor-version":[{"id":1625,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/posts\/1549\/revisions\/1625"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=\/wp\/v2\/media\/1573"}],"wp:attachment":[{"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bigdata.rmutt.ac.th\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}