{"id":1702,"date":"2022-03-18T11:34:25","date_gmt":"2022-03-18T02:34:25","guid":{"rendered":"https:\/\/ahnbk.com\/?p=1702"},"modified":"2022-03-18T11:34:25","modified_gmt":"2022-03-18T02:34:25","slug":"ubuntu%ec%97%90%ec%84%9c-udev%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-%ec%9e%a5%ec%b9%98-%ea%b4%80%eb%a6%ac","status":"publish","type":"post","link":"https:\/\/ahnbk.com\/?p=1702","title":{"rendered":"Ubuntu\uc5d0\uc11c udev\ub97c \uc774\uc6a9\ud55c \uc7a5\uce58 \uad00\ub9ac"},"content":{"rendered":"\n<p>udev\ub294 Linux \uc11c\ube0c\uc2dc\uc2a4\ud15c\uc73c\ub85c \uc7a5\uce58 \uad00\ub9ac\ub97c \uc704\ud574 \uc0ac\uc6a9\ud55c\ub2e4. <\/p>\n\n\n\n<p>udev\ub294 udev rules\ub97c \uc774\uc6a9\ud574 \uc124\uc815\uc774 \uac00\ub2a5\ud55c\ub370, \uc774\ub97c \uc774\uc6a9\ud558\uba74 \uc0ac\uc6a9\uc790\uc758 \uc785\ub9db\uc5d0 \ub9de\uac8c \uc7a5\uce58\uc758 \uc774\ub984 \ubc0f \ucd08\uae30\ud654 \uae30\ub2a5\uc744 \uc218\ud589\ud560 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<p>udev rules \ud30c\uc77c\uc740 \/etc\/udev\/rules.d\uc5d0 \uc704\uce58\ud558\uba74 \ub41c\ub2e4. \ud30c\uc77c \uc774\ub984\uc758 \ud615\uc2dd\uc740 00-&lt;udev_rule_name>.rules\ub85c \uad6c\uc131\ub418\ub294\ub370, \uc55e\uc758 \ub450 \uc22b\uc790\ub294 \uc6b0\uc120 \uc21c\uc704\ub97c \ub098\ud0c0\ub0b4\uace0 \uc22b\uc790\uac00 \ub0ae\uc744\uc218\ub85d \uba3c\uc800 \uc2e4\ud589\ub41c\ub2e4. <\/p>\n\n\n\n<p>\ub8f0 \ud30c\uc77c \ub0b4\ubd80\uc5d0\uc11c\ub294 \ub77c\uc778\ubcc4\ub85c \uc2e4\ud589\uc774 \ub418\uba70, \ub300\ub7b5 \ub0b4\uc6a9\uc744 \uc0b4\ud3b4\ubcf4\uba74<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color\"><code class=\"\">KERNEL==\"ttyUSB[0-9]*\", MODE=\"0666\", ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6010\", ENV{ID_USB_INTERFACE_NUM}==\"01\", SYMLINK+=\"ttyPIO\"\r\nKERNEL==\"ttyUSB[0-9]*\", MODE=\"0666\", ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6010\", ENV{ID_USB_INTERFACE_NUM}==\"00\", SYMLINK+=\"ttyCHARGER\"\r\nKERNEL==\"ttyUSB[0-9]*\", MODE=\"0666\", ATTRS{idVendor}==\"10c4\", ATTRS{idProduct}==\"ea60\", SYMLINK+=\"ttyHMI\"\r\n#KERNEL==\"ttyUSB[0-9]*\", MODE=\"0666\", ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6001\", SYMLINK+=\"ttyCHARGER%E{ID_USB_INTERFACE_NUM}\"<\/code><\/pre>\n\n\n\n<p>\uc640 \uac19\ub2e4.<\/p>\n\n\n\n<p>\uc790\uc138\ud55c \ubb38\ubc95\uc740 https:\/\/www.thegeekdiary.com\/beginners-guide-to-udev-in-linux\/\ub97c \ucc38\uace0\ud558\uba74 \ub420\ub4ef.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\ud301.<\/p>\n\n\n\n<p>USB \uc7a5\uce58\uc758 \uacbd\uc6b0, idProduct, idVendor \ub4f1\uc758 \ubc88\ud638\uac00 \ub3d9\uc77c\ud55c \uc81c\ud488\uc774 \uc874\uc7ac\ud560 \uc218 \uc788\ub294\ub370, \uc774\ub54c\ub294 ID_USB_INTERFACE_NUM\ub97c \uc0ac\uc6a9\ud558\uba74,  USB \ud5c8\ube0c \ubc0f \ud3ec\ud2b8\uc5d0 \uaf3d\ud78c \uc21c\uc11c\ub300\ub85c \uc778\ub371\uc2f1 \ubc88\ud638\ub97c \uc5bb\uc744 \uc218 \uc788\ub2e4. \uc774\ub97c \uc774\uc6a9\ud558\uba74, \ud574\ub2f9\ub418\ub294 \uc7a5\uce58\uc5d0 \ub300\ud55c \uc124\uc815 \uac00\ub2a5<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color\"><code class=\"\">KERNEL==\"ttyUSB[0-9]*\", MODE=\"0666\", ATTRS{idVendor}==\"0403\", ATTRS{idProduct}==\"6010\", ENV{ID_USB_INTERFACE_NUM}==\"01\", SYMLINK+=\"ttyPIO\"<\/code><\/pre>\n\n\n\n<p>\ub05d.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>udev\ub294 Linux \uc11c\ube0c\uc2dc\uc2a4\ud15c\uc73c\ub85c \uc7a5\uce58 \uad00\ub9ac\ub97c \uc704\ud574 \uc0ac\uc6a9\ud55c\ub2e4. udev\ub294 udev rules\ub97c \uc774\uc6a9\ud574 \uc124\uc815\uc774 \uac00\ub2a5\ud55c\ub370, \uc774\ub97c \uc774\uc6a9\ud558\uba74 \uc0ac\uc6a9\uc790\uc758 \uc785\ub9db\uc5d0 \ub9de\uac8c \uc7a5\uce58\uc758 \uc774\ub984 \ubc0f \ucd08\uae30\ud654 \uae30\ub2a5\uc744 \uc218\ud589\ud560 \uc218 \uc788\ub2e4. udev rules \ud30c\uc77c\uc740 \/etc\/udev\/rules.d\uc5d0 \uc704\uce58\ud558\uba74 \ub41c\ub2e4. \ud30c\uc77c \uc774\ub984\uc758 \ud615\uc2dd\uc740 00-&lt;udev_rule_name>.rules\ub85c \uad6c\uc131\ub418\ub294\ub370, \uc55e\uc758 \ub450 \uc22b\uc790\ub294 \uc6b0\uc120 \uc21c\uc704\ub97c \ub098\ud0c0\ub0b4\uace0 \uc22b\uc790\uac00 \ub0ae\uc744\uc218\ub85d \uba3c\uc800 \uc2e4\ud589\ub41c\ub2e4. \ub8f0 \ud30c\uc77c \ub0b4\ubd80\uc5d0\uc11c\ub294 \ub77c\uc778\ubcc4\ub85c \uc2e4\ud589\uc774 \ub418\uba70, \ub300\ub7b5 \ub0b4\uc6a9\uc744 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ahnbk.com\/?p=1702\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Ubuntu\uc5d0\uc11c udev\ub97c \uc774\uc6a9\ud55c \uc7a5\uce58 \uad00\ub9ac&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false},"categories":[59],"tags":[340,339,37,338,342,341],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2wXSW-rs","jetpack-related-posts":[],"jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/1702"}],"collection":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1702"}],"version-history":[{"count":1,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/1702\/revisions"}],"predecessor-version":[{"id":1704,"href":"https:\/\/ahnbk.com\/index.php?rest_route=\/wp\/v2\/posts\/1702\/revisions\/1704"}],"wp:attachment":[{"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahnbk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}