{"id":4629,"date":"2021-09-30T17:37:02","date_gmt":"2021-09-30T08:37:02","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=4629"},"modified":"2022-05-30T10:59:42","modified_gmt":"2022-05-30T01:59:42","slug":"usb-otg-%e9%9b%bb%e6%ba%90%e4%be%9b%e7%b5%a6%e6%96%b9%e5%90%91","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/4629","title":{"rendered":"USB-OTG \u96fb\u529b\u4f9b\u7d66\u65b9\u5411"},"content":{"rendered":"<h3>\u30ed\u30fc\u30eb (Roll)<\/h3>\n<ul>\n<li><strong>A device<\/strong> : VBUS\u3092\u901a\u3058\u3066\u96fb\u529b\u3092\u9001\u308b\uff08\u4f9b\u7d66\u3059\u308b\uff09\u30c7\u30d0\u30a4\u30b9<\/li>\n<li><strong>B device<\/strong> : VBUS\u3092\u901a\u3058\u3066\u96fb\u529b\u3092\u53d7\u3051\u308b\uff08\u6d88\u8cbb\u3059\u308b\uff09\u30c7\u30d0\u30a4\u30b9<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h3>OTG (On-The-Go) \u975e\u5bfe\u5fdc\u6a5f\u5668<\/h3>\n<table>\n<tbody>\n<tr>\n<th>&nbsp;<\/th>\n<th>VBUS\u9001\u53d7\u65b9\u5411 (Role)<\/th>\n<\/tr>\n<tr>\n<td>Host<\/td>\n<td>\u9001\u96fb\u5074 (A device)<\/td>\n<\/tr>\n<tr>\n<td>Device<\/td>\n<td>\u53d7\u96fb\u5074 (B device)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\u975eOTG\u6a5f\u5668\u306b\u304a\u3044\u3066\u306f\u3001\u96fb\u529b\u3092\u4f9b\u7d66\u3059\u308b\u65b9\u5411\u306f\u30db\u30b9\u30c8\u304b\u3089\u30c7\u30d0\u30a4\u30b9\u3078\u4e00\u65b9\u5411\u3067\u3042\u308b\u3002<\/li>\n<li>\u3064\u307e\u308a USB\u30db\u30b9\u30c8\u306f A device, USB\u30c7\u30d0\u30a4\u30b9\u306f B device \u3067\u56fa\u5b9a\u3067\u3042\u308b\u3002<\/li>\n<\/ul>\n<h3>OTG\u30d5\u30eb\u5bfe\u5fdc\u6a5f\u5668<\/h3>\n<table>\n<tbody>\n<tr>\n<th>&nbsp;<\/th>\n<th>\u30c7\u30d5\u30a9\u30eb\u30c8\u306eRoll<\/th>\n<th>\u30aa\u30d7\u30b7\u30e7\u30ca\u30eb\u306aRoll<\/th>\n<\/tr>\n<tr>\n<td>Host<\/td>\n<td>\u9001\u96fb\u5074 (A device)<\/td>\n<td>\u53d7\u96fb\u5074 (B device)<\/td>\n<\/tr>\n<tr>\n<td>Device<\/td>\n<td>\u53d7\u96fb\u5074 (B device)<\/td>\n<td>\u9001\u96fb\u5074 (A device)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>USB-OTG\u3067\u306f\u30ed\u30fc\u30eb\uff08\u96fb\u529b\u4f9b\u7d66\u306e\u65b9\u5411\uff09\u306f\u53ef\u5909\u30fb\u76f8\u5bfe\u7684\u3067\u3042\u308b\u3002\u30db\u30b9\u30c8\u3067\u3042\u3063\u3066\u3082\u300cB device (\u53d7\u96fb\u5074)\u300d\u3001\u30c7\u30d0\u30a4\u30b9\u3067\u3042\u3063\u3066\u3082\u300cA device (\u9001\u96fb\u5074)\u300d\u3068\u3057\u3066\u632f\u821e\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u3053\u306e\u3088\u3046\u306b\u30ed\u30fc\u30eb\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30c7\u30d0\u30a4\u30b9\u3092 Dual-Roll Device \u3068\u547c\u3076\u3002<\/p>\n<h3>ID\u30d4\u30f3<\/h3>\n<h4>USB 2.0 Type-A, Type-B<\/h4>\n<p>\u4e0b\u8a18\u306e\uff14\u30d4\u30f3<\/p>\n<ol>\n<li><strong>VBUS<\/strong><\/li>\n<li><strong>GND<\/strong><\/li>\n<li><strong>D+<\/strong><\/li>\n<li><strong>D-<\/strong><\/li>\n<\/ol>\n<p>ID\u30d4\u30f3\u306f\u30b3\u30cd\u30af\u30bf\u4e0a\u306b\u306f\u5b58\u5728\u3057\u306a\u3044\u3002<\/p>\n<h4>Mini USB Type-A (mini-A), Mini USB Type-B (mini-B), Micro USB Type-A (micro-A), Micro USB Type-B (micro-B)<\/h4>\n<p>\u4e0b\u8a18\u306e\uff15\u30d4\u30f3<\/p>\n<ol>\n<li><strong>VBUS<\/strong><\/li>\n<li><strong>GND<\/strong><\/li>\n<li><strong>D+<\/strong><\/li>\n<li><strong>D-<\/strong><\/li>\n<li><strong>ID<\/strong><\/li>\n<\/ol>\n<p>USB-OTG\u975e\u5bfe\u5fdc\u30c7\u30d0\u30a4\u30b9\u306f\u3001\u30db\u30b9\u30c8\u5074\u306eID\u30d4\u30f3\u306fGND, \u30c7\u30d0\u30a4\u30b9\u5074\u306eID\u30d4\u30f3\u306fNC(Not Connected)\u3068\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>Dual-Roll (OTG\u30d5\u30eb\u5bfe\u5fdc) \u306e\u6a5f\u5668\u306f<\/p>\n<ol>\n<li>Session Request Protocol (SRP) \u3067\u300e\u9001\u96fb\u5074\u300f\u3068\u300e\u53d7\u96fb\u5074\u300f\u3092\u6c7a\u3081\u308b\u3002\n<ol>\n<li>\u9001\u96fb\u5074(A device)\u306b\u6c7a\u307e\u3063\u305f\u6a5f\u5668\u306fID\u30d4\u30f3\u3092GND\u306b\u843d\u3068\u3059\u3002<\/li>\n<li>\u53d7\u96fb\u5074(B device)\u306b\u6c7a\u307e\u3063\u305f\u6a5f\u5668\u306fID\u30d4\u30f3\u3092NC(Not Connected)\u306b\u5207\u308a\u66ff\u3048\u308b\u3002<\/li>\n<\/ol>\n<\/li>\n<li>Host Negotiation Protocol (HNG) \u3067\u300e\u30db\u30b9\u30c8\u300f\u3068\u300e\u30c7\u30d0\u30a4\u30b9\u300f\u3092\u6c7a\u3081\u308b\u3002<\/li>\n<\/ol>\n<p>OTG\u6a5f\u5668\u306f\u63a5\u7d9a\u3055\u308c\u308b\u3068\u3001\u6700\u521d\u306bSRP\u3067\u9001\u53d7\u96fb\u306e\u65b9\u5411\u3092\u6c7a\u3081\u3066\u96fb\u529b\u4f9b\u7d66\u3092\u958b\u59cb\u3059\u308b\u3002\u6b21\u306bHNG\u3067\u30db\u30b9\u30c8\u3068\u30c7\u30d0\u30a4\u30b9\u3092\u6c7a\u3081\u308b\u3002<\/p>\n<p>SRP\u975e\u5bfe\u5fdc\u306eUSB\u30db\u30b9\u30c8\u6a5f\u5668\u306fID\u30d4\u30f3\u3092GND\u306b\u843d\u3068\u3059\u3053\u3068\u3067\u3001\u5fc5\u305a\u300e\u9001\u96fb\u300f\u5074\u3068\u3057\u3066\u632f\u821e\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u3001\u300eUSB-OTG(SRP)\u975e\u5bfe\u5fdc\u306eUSB\u30db\u30b9\u30c8\u6a5f\u5668\u300f\u3068\u300eDual-Roll\u5bfe\u5fdc\u6a5f\u5668\u300f\u304c\u63a5\u7d9a\u3055\u308c\u305f\u5834\u5408\u3067\u3082\u3001\u4e21\u8005\u304c\u9069\u5207\u306b\u632f\u821e\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u3061\u306a\u307f\u306bVBUS\u304c\u4f9b\u7d66\u3055\u308c\u308b\u671f\u9593\u3092 &quot;Session&quot; \u3068\u3088\u3076\u3002<\/p>\n<p>\u306a\u304a\u3001A device \u306f\u7bc0\u96fb\u306e\u305f\u3081 VBUS \u3078\u306e\u9001\u96fb\u3092\u505c\u6b62\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u305f\u3068\u3048\u3070 B device \u306e\u30de\u30a6\u30b9\u304c\u30d0\u30c3\u30c6\u30ea\u30fc\u5185\u8535\u3067VBUS\u7d4c\u7531\u306e\u53d7\u96fb\u306e\u5fc5\u8981\u304c\u306a\u3044\u3068\u304d\u306f\u3001SRP\u3067\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u8981\u6c42\u3092\u3057\u306a\u3051\u308c\u3070\u3088\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ed\u30fc\u30eb (Roll) A device : VBUS\u3092\u901a\u3058\u3066\u96fb\u529b\u3092\u9001\u308b\uff08\u4f9b\u7d66\u3059\u308b\uff09\u30c7\u30d0\u30a4\u30b9 B device : VBUS\u3092\u901a\u3058\u3066\u96fb\u529b\u3092\u53d7\u3051\u308b\uff08\u6d88\u8cbb\u3059\u308b\uff09\u30c7\u30d0\u30a4\u30b9<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[113],"class_list":["post-4629","post","type-post","status-publish","format-standard","hentry","category-memo","tag-usb"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/4629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=4629"}],"version-history":[{"count":44,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/4629\/revisions"}],"predecessor-version":[{"id":5349,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/4629\/revisions\/5349"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=4629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=4629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=4629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}