{"id":437585,"date":"2024-11-05T21:03:51","date_gmt":"2024-11-05T21:03:51","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=437585"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=437585","title":{"rendered":"<span>\u041a\u0430\u043a \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e \u044d\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u044b\u0448\u043a\u0443 \u0438 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0443 \u043d\u0430 stm32<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>1. \u041a\u0430\u043a \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0438\u0434\u0435\u044f?<\/h3>\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u043d\u0430\u0447\u0430\u043b \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b <strong>USB<\/strong> \u043d\u0430 <strong>STM32F103C8<\/strong>, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e <strong>HID-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430<\/strong>. \u042f \u0442\u0430\u043a\u043e\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043b\u044e\u0431\u0438\u0442 \u0442\u0435\u043e\u0440\u0438\u044e, \u043d\u043e \u043e\u0431\u043e\u0436\u0430\u0435\u0442 \u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0432\u0441\u0435\u043c\u0443 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0442\u0443\u0442 \u0436\u0435 \u043d\u0430\u0447\u0430\u043b \u0434\u0443\u043c\u0430\u0442\u044c \u043d\u0430\u0434 \u0431\u0443\u0434\u0443\u0449\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c. \u0418 \u044f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b, \u0447\u0442\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0437\u0430\u043a\u0430\u0437\u0430\u043b \u0441\u0435\u0431\u0435 wifi \u043c\u043e\u0434\u0443\u043b\u044c &#8212; <strong>ESP8266<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1d6\/49b\/f06\/1d649bf06776e4252fcb9c7f617dcfb6.png\" alt=\"ESP8266\" title=\"ESP8266\" width=\"1500\" height=\"1500\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1d6\/49b\/f06\/1d649bf06776e4252fcb9c7f617dcfb6.png\"\/><\/p>\n<div><figcaption>ESP8266<\/figcaption><\/div>\n<\/figure>\n<p>\u0418 \u0442\u0443\u0442 \u043a\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u0430 \u0438\u0434\u0435\u044f: \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c STM32f103c8 \u0438 ESP8266 \u0432 \u043e\u0434\u043d\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e &#8212; <strong>UsbDeviceHacker <\/strong>(\u0442\u0430\u043a \u044f \u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043b). \u041c\u043e\u044f \u0438\u0434\u0435\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u043b\u043e\u0441\u044c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043c\u044b\u0448\u043a\u043e\u0439 \u0438 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u043e\u0439 \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u043e\u043d\u043d\u043e \u043f\u043e api, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c \u043d\u0430 ESP. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, ESP \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0432 \u0440\u043e\u043b\u0438 <strong>master<\/strong> \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0430 STM32 \u0432 \u0440\u043e\u043b\u0438 <strong>slave<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/527\/b57\/4fe\/527b574fe1b95db292bee0bface9e639.png\" width=\"1125\" height=\"620\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/527\/b57\/4fe\/527b574fe1b95db292bee0bface9e639.png\"\/><\/figure>\n<p>\u041c\u043d\u043e\u0433\u0438\u0435 \u043c\u043e\u0433\u0443\u0442 \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c: \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0449\u0435 \u0438 \u0432\u043c\u0435\u0441\u0442\u043e <strong>wifi<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>bluetooth<\/strong>, \u043e\u0434\u043d\u0430\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <strong>wifi<\/strong> \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0430\u0448 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e,  \u043a\u0430\u0436\u0434\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u043d\u0435\u0439 \u0441\u043c\u043e\u0436\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0435\u0432\u0430\u0439\u0441\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0432 <strong>HTTP<\/strong> \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043d\u0443\u0436\u043d\u044b\u0439 <strong>ip<\/strong>.<\/p>\n<h3>2. \u041c\u043e\u0434\u0435\u043b\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h3>\n<p>\u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043d\u0430\u0447\u043d\u0443 \u0441 <strong>ESP8266<\/strong>. Wifi \u043c\u043e\u0434\u0443\u043b\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0442\u043e\u0447\u043a\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u0435\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438. \u0412 \u0435\u0433\u043e api 8 endpoint (<strong>POST<\/strong>), \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0441\u0432\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1c4\/3c3\/617\/1c43c3617be7dab9d710e07b66e49475.png\" alt=\"\u041c\u043e\u0434\u0435\u043b\u044c ESP8266\" title=\"\u041c\u043e\u0434\u0435\u043b\u044c ESP8266\" width=\"966\" height=\"833\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1c4\/3c3\/617\/1c43c3617be7dab9d710e07b66e49475.png\"\/><\/p>\n<div><figcaption>\u041c\u043e\u0434\u0435\u043b\u044c ESP8266<\/figcaption><\/div>\n<\/figure>\n<p>\u0422\u043e\u0447\u043a\u0438 <code>\/mouse<\/code> \u0438 <code>\/keyboard<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u043c\u044b\u0448\u043a\u0435 \u0438 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435, \u0442.\u0435. \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0438\u0445 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u043c. \u0422\u043e\u0447\u043a\u0430 <code>\/animation<\/code> \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 <strong>ESP8266<\/strong> \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u043f\u043e\u0441\u044b\u043b\u043a\u0443 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0435 \u043f\u043e UART \u043f\u0440\u044f\u043c\u043e \u043a <strong>STM32F103C8<\/strong>. Blue pill \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0438\u0445 \u043d\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e, \u0442\u043e \u043e\u043d\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 report \u0432 <strong>USB<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/42f\/be9\/d4a\/42fbe9d4a55f37576035efa7cdca8960.png\" alt=\"\u041c\u043e\u0434\u0435\u043b\u044c STM32F103C8\" title=\"\u041c\u043e\u0434\u0435\u043b\u044c STM32F103C8\" width=\"931\" height=\"823\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/42f\/be9\/d4a\/42fbe9d4a55f37576035efa7cdca8960.png\"\/><\/p>\n<div><figcaption>\u041c\u043e\u0434\u0435\u043b\u044c STM32F103C8<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u043b\u043d\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"https:\/\/miro.com\/app\/board\/uXjVLU63Vzo=\/?share_link_id=595211785817\" rel=\"noopener noreferrer nofollow\">miro<\/a>.<\/p>\n<h3>3. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f ESP8266<\/h3>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/116\/634\/2e3\/1166342e3cd699db64b627aff02f2710.jpeg\" width=\"1824\" height=\"1580\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/116\/634\/2e3\/1166342e3cd699db64b627aff02f2710.jpeg\" data-blurred=\"true\"\/><\/figure>\n<p>\u041f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0434\u043b\u044f ESP8266 \u044f \u043f\u0438\u0441\u0430\u043b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <strong>PlathormIO<\/strong>,<strong> <\/strong>\u0432 Visual Studio Code. \u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0438 \u043a\u043e\u0434\u0430, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432\u0441\u0435 \u0432 \u043e\u0431\u0449\u0435\u043c \u0432\u0438\u0434\u0435, \u0438\u043d\u0430\u0447\u0435 \u0441\u0442\u0430\u0442\u044c\u044f \u043c\u043e\u0436\u0435\u0442 \u0441\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u0442\u044f\u043d\u0443\u0442\u044c\u0441\u044f. \u0412 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0441\u0435 \u0441\u0430\u043c\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439, \u0432\u043e\u0442 <a href=\"https:\/\/github.com\/ISmileA\/UsbDeviceHacker\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>.<\/p>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a :<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3ce\/10b\/8f3\/3ce10b8f36f9bdde4c839025c9b0dd0c.png\" alt=\"main.cpp\" title=\"main.cpp\" width=\"1602\" height=\"795\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3ce\/10b\/8f3\/3ce10b8f36f9bdde4c839025c9b0dd0c.png\"\/><\/p>\n<div><figcaption>main.cpp<\/figcaption><\/div>\n<\/figure>\n<p>\u0420\u0430\u0431\u043e\u0447\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u043e\u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 4 \u043f\u0430\u043f\u043e\u043a: configs, controllers, modules, routes, \u0438 \u0438\u0437 \u0444\u0430\u0439\u043b\u043e\u0432 <code>main.h<\/code> \u0438 <code>main.cpp<\/code>. \u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>InitRouter()<\/code> \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <code>ESP8266WebServer.h<\/code>,  \u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0445 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b. \u0414\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u044f \u0440\u0435\u0448\u0438\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c namespace, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0442\u0430\u043a \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435 \u0438 \u0443\u0434\u043e\u0431\u043d\u0435\u0435. <\/p>\n<pre><code class=\"cpp\"> void InitRouter(){      server.on(\"\/mouse\/set\", Mouse::set);      server.on(\"\/mouse\/remove\", Mouse::remove);          server.on(\"\/mouse\/click\", Mouse::click);          server.on(\"\/keyboard\/set\", Keyboard::set);          server.on(\"\/keyboard\/remove\", Keyboard::remove);          server.on(\"\/keyboard\/click\", Keyboard::click);          server.on(\"\/animation\/set\", Animation::set);          server.on(\"\/animation\/remove\", Animation::remove);  }<\/code><\/pre>\n<p>\u0418 \u0434\u0430\u043b\u0435\u0435 \u0432\u0441\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 <code>Animation.h<\/code>:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/78d\/f9d\/c22\/78df9dc229e1ac04c803ce9ef3baec84.png\" alt=\"Animation.h\" title=\"Animation.h\" width=\"1447\" height=\"683\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/78d\/f9d\/c22\/78df9dc229e1ac04c803ce9ef3baec84.png\"\/><\/p>\n<div><figcaption>Animation.h<\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 JSON \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <code>ArduinoJson.h<\/code>. \u041e\u043d\u0430 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0438 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443, \u0441 \u043d\u0435\u0439 \u043c\u043e\u0436\u043d\u043e: \u043b\u0435\u0433\u043a\u043e \u043f\u0430\u0440\u0441\u0438\u0442\u044c, \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c JSON \u043e\u0431\u044a\u0435\u043a\u0442\u044b.<\/p>\n<p>\u041f\u043e\u0441\u044b\u043b\u043a\u0430 \u0434\u043b\u044f STM32 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 <code>data<\/code> \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>SendDataWithWait(uin8_t *data, uint8_t len)<\/code> \u043a\u043b\u0430\u0441\u0441\u0430 <code>serial<\/code>. \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0431\u0430\u0439\u0442 \u043f\u043e\u0441\u044b\u043b\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430 <code>crc8<\/code>.<\/p>\n<pre><code class=\"cpp\">string SendDataWithWait(uint8_t *data, uint16_t len){     uint8_t data_out[len+2] = {HEADER,};             for(int i = 0; i&lt;len; i++){                     data_out[i+1] = data[i];             }             data_out[len+1] = crc8(data_out, len+1);             Serial.write(data_out, len+2);             if(AwaitResponse()){                     if (status){                     status = false;                             return \"ok\";                     }                     return \"error\";             }             return \"timeout\";     }<\/code><\/pre>\n<p>ESP8266 \u0436\u0434\u0435\u0442 \u043e\u0442\u0432\u0435\u0442\u0430 \u043e\u0442 STM32 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>AwaitResponse()<\/code>, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0442\u0432\u0435\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0443. \u0412\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0432 \u0444\u0430\u0439\u043b\u0435 <code>ClientProcessingModule.h<\/code>.<\/p>\n<p>\u041e\u0434\u043d\u0430 \u0438\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 &#8212; \u044d\u0442\u043e \u0435\u0433\u043e <strong>\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 ip<\/strong>. \u041f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043a \u0440\u043e\u0443\u0442\u0435\u0440\u0443 \u0438\u043b\u0438 \u043c\u043e\u0434\u0435\u043c\u0443, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443 \u0432\u044b\u0434\u0430\u0435\u0442\u0441\u044f <strong>ip<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c. \u0418\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c ESP8266 \u043a \u0441\u0435\u0440\u0438\u0430\u043b \u043f\u043e\u0440\u0442\u0443 \u0438 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0435\u0433\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0420\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430: 1-\u044b\u0439, \u0435\u0441\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a \u0440\u043e\u0443\u0442\u0435\u0440\u0443 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c <strong>\u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 ip<\/strong>; 2-\u043e\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c <strong>\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 ip<\/strong> \u043d\u0430 \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u043e <strong>\u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c ip<\/strong>.<\/p>\n<p>\u042f \u0436\u0435 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u043d\u0438 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u043e\u043a\u0430 \u043c\u043d\u0435 \u044d\u0442\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<h3>4. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/a16\/b4f\/bc9\/a16b4fbc9b8826ed5c4723010fb6f29c.jpeg\" alt=\"STM32F103C8\" title=\"STM32F103C8\" width=\"1346\" height=\"1009\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a16\/b4f\/bc9\/a16b4fbc9b8826ed5c4723010fb6f29c.jpeg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>STM32F103C8<\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 STM32 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c ESP8266 \u043a \u043d\u0435\u0439. \u0422.\u043a blue pill \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043f\u043e USB, \u0442\u043e \u043f\u0438\u0442\u0430\u0442\u044c\u0441\u044f ESP \u0431\u0443\u0434\u0435\u0442 \u043e\u0442 \u043d\u0435\u0435. \u041f\u0438\u043d\u044b VCC \u0438 \u0421H_EN \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u043a \u043f\u0438\u043d\u0443 3.3V \u043d\u0430 STM32, GND \u043a GND, RX \u043a B10, TX \u043a B11 \u0438 \u043d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/07b\/cf5\/e50\/07bcf5e502000eb8874e0dd17f6175ef.png\" width=\"550\" height=\"325\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/07b\/cf5\/e50\/07bcf5e502000eb8874e0dd17f6175ef.png\"\/><\/figure>\n<p>\u041d\u0430 STM32 \u043f\u0438\u043d\u044b B10 \u0438 B11 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f TX \u0438 RX USART3 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<h3>5. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f STM32f103C8<\/h3>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/eb5\/a5d\/60a\/eb5a5d60acfa25bcaa909738341c4187.jpeg\" alt=\"UsbDeviceHacker\" title=\"UsbDeviceHacker\" width=\"2201\" height=\"1651\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/eb5\/a5d\/60a\/eb5a5d60acfa25bcaa909738341c4187.jpeg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>UsbDeviceHacker<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0434\u043b\u044f STM \u044f \u043f\u0438\u0441\u0430\u043b \u0432 CubeIDE. \u041a\u043e\u0434 \u0434\u043b\u044f \u043d\u0435\u0435 \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043e\u043d \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 \u0421. \u0418\u0437 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b UASRT3(HAL), \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442 ESP, \u0438, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, USB, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u043a\u0430\u043a HID-device. \u0422\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043d\u0430 PC13. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/59c\/661\/44d\/59c66144dc15fa24a23c353f1695bb84.png\" width=\"1040\" height=\"536\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/59c\/661\/44d\/59c66144dc15fa24a23c353f1695bb84.png\"\/><\/figure>\n<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 3 \u043f\u0430\u043f\u043e\u043a: inits, modules, controllers. \u0414\u0430\u043d\u043d\u044b\u0435 \u0441 USART3 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 <code>UsartController.c<\/code>, \u0432 <code>HAL_UART_RxCpltCallback<\/code>, \u043f\u0440\u0438\u0447\u0435\u043c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u043e\u043d\u0438 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 <code>buffer<\/code>, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <code>ParsingData<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>crc8<\/code>, \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <code>Action<\/code> \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/97f\/fc3\/c9d\/97ffc3c9ddbc893890243f2962d78918.png\" alt=\"UsartController.c\" title=\"UsartController.c\" width=\"1273\" height=\"638\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/97f\/fc3\/c9d\/97ffc3c9ddbc893890243f2962d78918.png\"\/><\/p>\n<div><figcaption>UsartController.c<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u0435\u043c\u0430 \u043f\u043e\u0441\u044b\u043b\u043a\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0439 <code>case<\/code> \u0432 <code>main.c<\/code>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u0433\u0434\u0435 \u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430. \u0414\u0430\u043b\u0435\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0434\u0435\u0432\u0430\u0439\u0441\u0430 \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442 report, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e USB.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/82f\/561\/24d\/82f56124db0e1ef0550e920b45f2d50a.png\" alt=\"main.c\" title=\"main.c\" width=\"1215\" height=\"575\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/82f\/561\/24d\/82f56124db0e1ef0550e920b45f2d50a.png\"\/><\/p>\n<div><figcaption>main.c<\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u0435\u043f\u043e\u0440\u0442\u044b \u0438 \u043c\u044b\u0448\u043a\u0438, \u0438 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <code>HID_MOUSE_ReportDesc<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 <code>usbd_hid.c<\/code>, \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438:<\/p>\n<pre><code class=\"cpp\">0x05, 0x01, \/* Usage Page (Generic Desktop) *\/ 0x09, 0x02, \/* Usage (Mouse) *\/ 0xA1, 0x01, \/* Collection (Application) *\/ 0x09, 0x01, \/* Usage (Pointer) *\/ 0xA1, 0x00, \/* Collection (Physical) *\/ 0x85, 0x01, \/* Report ID *\/ 0x05, 0x09, \/* Usage Page (Buttons) *\/ 0x19, 0x01, \/* Usage Minimum (01) *\/ 0x29, 0x03, \/* Usage Maximum (03) *\/ 0x15, 0x00, \/* Logical Minimum (0) *\/ 0x25, 0x01, \/* Logical Maximum (0) *\/ 0x95, 0x03, \/* Report Count (3) *\/ 0x75, 0x01, \/* Report Size (1) *\/ 0x81, 0x02, \/* Input (Data, Variable, Absolute) *\/ 0x95, 0x01, \/* Report Count (1) *\/ 0x75, 0x05, \/* Report Size (5) *\/ 0x81, 0x01, \/* Input (Constant) ;5 bit padding *\/ 0x05, 0x01, \/* Usage Page (Generic Desktop) *\/ 0x09, 0x30, \/* Usage (X) *\/ 0x09, 0x31, \/* Usage (Y) *\/ 0x15, 0x81, \/* Logical Minimum (-127) *\/ 0x25, 0x7F, \/* Logical Maximum (127) *\/ 0x75, 0x08, \/* Report Size (8) *\/ 0x95, 0x02, \/* Report Count (2) *\/ 0x81, 0x06, \/* Input (Data, Variable, Relative) *\/ 0xC0, 0xC0,\/* End Collection,End Collection *\/ \/\/ 0x09, 0x06, \/* Usage (Keyboard) *\/ 0xA1, 0x01, \/* Collection (Application) *\/ 0x85, 0x02, \/* Report ID *\/ 0x05, 0x07, \/* Usage (Key codes) *\/ 0x19, 0xE0, \/* Usage Minimum (224) *\/ 0x29, 0xE7, \/* Usage Maximum (231) *\/ 0x15, 0x00, \/* Logical Minimum (0) *\/ 0x25, 0x01, \/* Logical Maximum (1) *\/ 0x75, 0x01, \/* Report Size (1) *\/ 0x95, 0x08, \/* Report Count (8) *\/ 0x81, 0x02, \/* Input (Data, Variable, Absolute) *\/ 0x95, 0x01, \/* Report Count (1) *\/ 0x75, 0x08, \/* Report Size (8) *\/ 0x81, 0x01, \/* Input (Constant) ;5 bit padding *\/ 0x95, 0x05, \/* Report Count (5) *\/ 0x75, 0x01, \/* Report Size (1) *\/ 0x05, 0x08, \/* Usage Page (Page# for LEDs) *\/ 0x19, 0x01, \/* Usage Minimum (01) *\/ 0x29, 0x05, \/* Usage Maximum (05) *\/ 0x91, 0x02, \/* Output (Data, Variable, Absolute) *\/ 0x95, 0x01, \/* Report Count (1) *\/ 0x75, 0x03, \/* Report Size (3) *\/ 0x91, 0x01, \/* Output (Constant) *\/ 0x95, 0x06, \/* Report Count (1) *\/ 0x75, 0x08, \/* Report Size (3) *\/ 0x15, 0x00, \/* Logical Minimum (0) *\/ 0x25, 0x65, \/* Logical Maximum (101) *\/ 0x05, 0x07, \/* Usage (Key codes) *\/ 0x19, 0x00, \/* Usage Minimum (00) *\/ 0x29, 0x65, \/* Usage Maximum (101) *\/ 0x81, 0x00, \/* Input (Data, Array) *\/ 0xC0 \/* End Collection,End Collection *\/<\/code><\/pre>\n<p>\u0413\u0434\u0435 report id \u043c\u044b\u0448\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 0x01, \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b &#8212; 0x02, \u0442.\u0435. \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u043c\u044b\u0448\u0438 \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u0442\u0430\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435:<\/p>\n<pre><code class=\"cpp\"> uint8_t data_out[5] = {0x01, 0, 0, 0, 0}; \/\/ \u043f\u0435\u0440\u0432\u044b\u0439 \u0431\u0430\u0439\u0442 - report id  USBD_HID_SendReport(&amp;hUsbDeviceFS, data_out, 5);<\/code><\/pre>\n<hr\/>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u0434\u0435\u043b\u0438\u0442\u044c <strong>\u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u043c<\/strong>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e 3 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438: <\/p>\n<p><strong>1) \u043f\u043b\u0430\u0432\u043d\u043e\u0435 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043c\u044b\u0448\u043a\u0438<\/strong> &#8212; \u043c\u044b\u0448\u043a\u0430 \u043f\u043b\u0430\u0432\u043d\u043e \u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043e\u0441\u0438 x \u0438\u043b\u0438 y, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043e\u0442 1 \u0434\u043e 10 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e; <\/p>\n<p><strong>2)\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0442\u0435\u043a\u0441\u0442\u0430<\/strong> (\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u0446\u0438\u0444\u0440\u044b \u0438 \u043f\u0440\u043e\u0431\u0435\u043b) &#8212;   \u043f\u043e\u043e\u0447\u0435\u0440\u0435\u0434\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0442\u0435\u043a\u0441\u0442\u0430, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u044b \u0435\u0433\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0431\u0438\u0440\u0430\u0442\u044c &#171;Hello World&#187; \u043a\u0430\u0436\u0434\u044b\u0435 10 \u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<p><strong>3)\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043c\u044b\u0448\u043a\u0438 \u043f\u043e \u043a\u0440\u0443\u0433\u0443 <\/strong>&#8212;<strong> <\/strong>\u043f\u0440\u043e\u0441\u0442\u043e \u043c\u044b\u0448\u043a\u0430 \u0434\u0432\u0438\u0436\u0435\u0442\u0441\u044f \u043f\u043e \u043a\u0440\u0443\u0433\u0443, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0442 1 \u0434\u043e 10 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438 \u0440\u0430\u0434\u0438\u0443\u0441 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 1 \u0438 3 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u043c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441\u044b \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u043c\u044b\u0448\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0443\u0441\u0442\u044c \u043c\u044b\u0448\u043a\u0430 \u0434\u0432\u0438\u0436\u0435\u0442\u0441\u044f \u043f\u043e \u043a\u0440\u0443\u0433\u0443 \u0441 \u043d\u0430\u0436\u0430\u0442\u043e\u0439 \u041f\u041a\u041c \u0438\u043b\u0438 \u041b\u041a\u041c, \u0438\u043b\u0438 \u0432\u0441\u0435 \u0441\u0440\u0430\u0437\u0443. \u0412\u0441\u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0442\u0440\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0430: \u041b\u041a\u041c, \u041f\u041a\u041c \u0438 \u043a\u043d\u043e\u043f\u043a\u0430 \u0443 \u043a\u043e\u043b\u0435\u0441\u0438\u043a\u0430 \u043c\u044b\u0448\u0438.<\/p>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e api <a href=\"https:\/\/u5tt60o55x.apidog.io\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>.<\/p>\n<h3>6. \u0422\u0435\u0441\u0442\u044b <\/h3>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/e8f\/8b8\/198\/e8f8b8198cb272459b78e6650efa9b33.jpeg\" width=\"1280\" height=\"960\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e8f\/8b8\/198\/e8f8b8198cb272459b78e6650efa9b33.jpeg\" data-blurred=\"true\"\/><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0448\u043b\u0438 \u0434\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043a \u0442\u0435\u0441\u0442\u0430\u043c. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043a \u043f\u043a (\u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0443) \u0438 \u0434\u043e\u0436\u0434\u0435\u043c\u0441\u044f \u043f\u043e\u043a\u0430 ESP \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u043c\u043e\u0434\u0435\u043c\u0443. \u042f \u0440\u0430\u0437\u0434\u0430\u043b \u0442\u043e\u0447\u043a\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u0438 \u0442\u0430\u043a\u0436\u0435 \u0435\u0449\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u043a \u043d\u0435\u0439 \u0441 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441 \u043d\u0435\u0433\u043e. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u044f \u0431\u0443\u0434\u0443 \u0441 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0430, \u0430 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044f \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 endpoint <code>\/remove<\/code>.<\/p>\n<p>\u0412\u043e\u0442 \u0441\u0441\u044b\u043b\u043a\u0430 \u0432\u0438\u0434\u0435\u043e \u0441 \u0442\u0435\u0441\u0442\u0430\u043c\u0438:<\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/6729e163ca01a46b4ca9e83c\" data-style=\"\" id=\"6729e163ca01a46b4ca9e83c\" width=\"\"><\/div>\n<hr\/>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0438 \u0432\u0441\u0435, \u043a\u0430\u043a \u044f \u0441\u0447\u0438\u0442\u0430\u044e, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u043e\u0447\u043d\u043e \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043b \u0442\u0440\u0430\u0442\u044b \u0441\u0438\u043b \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043d\u0435\u0433\u043e. \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 <a href=\"https:\/\/github.com\/ISmileA\/UsbDeviceHacker\" rel=\"noopener noreferrer nofollow\">\u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 git \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0434\u0435\u0442\u0430\u043b\u044f\u043c\u0438. \u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043c\u043e\u0439 <a href=\"https:\/\/t.me\/ISmileAEmbedded\" rel=\"noopener noreferrer nofollow\">\u0442\u0433 \u043a\u0430\u043d\u0430\u043b<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u0438 \u043e \u0436\u0438\u0437\u043d\u0438 \u0432 \u0446\u0435\u043b\u043e\u043c. \u0412\u0441\u0435\u043c \u0436\u0435\u043b\u0430\u044e \u0443\u0434\u0430\u0447\u0438, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0435\u0449\u0435 \u0443\u0432\u0438\u0434\u0438\u043c\u0441\u044f.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/855750\/\"> https:\/\/habr.com\/ru\/articles\/855750\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>1. \u041a\u0430\u043a \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0438\u0434\u0435\u044f?<\/h3>\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442, \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u043d\u0430\u0447\u0430\u043b \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b <strong>USB<\/strong> \u043d\u0430 <strong>STM32F103C8<\/strong>, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e <strong>HID-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430<\/strong>. \u042f \u0442\u0430\u043a\u043e\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043b\u044e\u0431\u0438\u0442 \u0442\u0435\u043e\u0440\u0438\u044e, \u043d\u043e \u043e\u0431\u043e\u0436\u0430\u0435\u0442 \u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0432\u0441\u0435\u043c\u0443 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0442\u0443\u0442 \u0436\u0435 \u043d\u0430\u0447\u0430\u043b \u0434\u0443\u043c\u0430\u0442\u044c \u043d\u0430\u0434 \u0431\u0443\u0434\u0443\u0449\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c. \u0418 \u044f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b, \u0447\u0442\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0437\u0430\u043a\u0430\u0437\u0430\u043b \u0441\u0435\u0431\u0435 wifi \u043c\u043e\u0434\u0443\u043b\u044c &#8212; <strong>ESP8266<\/strong>.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>ESP8266<\/figcaption><\/div>\n<\/figure>\n<p>\u0418 \u0442\u0443\u0442 \u043a\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u0430 \u0438\u0434\u0435\u044f: \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c STM32f103c8 \u0438 ESP8266 \u0432 \u043e\u0434\u043d\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e &#8212; <strong>UsbDeviceHacker <\/strong>(\u0442\u0430\u043a \u044f \u0435\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043b). \u041c\u043e\u044f \u0438\u0434\u0435\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u043b\u043e\u0441\u044c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043c\u044b\u0448\u043a\u043e\u0439 \u0438 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u043e\u0439 \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u043e\u043d\u043d\u043e \u043f\u043e api, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c \u043d\u0430 ESP. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, ESP \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0432 \u0440\u043e\u043b\u0438 <strong>master<\/strong> \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0430 STM32 \u0432 \u0440\u043e\u043b\u0438 <strong>slave<\/strong>.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041c\u043d\u043e\u0433\u0438\u0435 \u043c\u043e\u0433\u0443\u0442 \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c: \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0449\u0435 \u0438 \u0432\u043c\u0435\u0441\u0442\u043e <strong>wifi<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>bluetooth<\/strong>, \u043e\u0434\u043d\u0430\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <strong>wifi<\/strong> \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0430\u0448 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438, \u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e,  \u043a\u0430\u0436\u0434\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u043d\u0435\u0439 \u0441\u043c\u043e\u0436\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0435\u0432\u0430\u0439\u0441\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0432 <strong>HTTP<\/strong> \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u043d\u0443\u0436\u043d\u044b\u0439 <strong>ip<\/strong>.<\/p>\n<h3>2. \u041c\u043e\u0434\u0435\u043b\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h3>\n<p>\u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043d\u0430\u0447\u043d\u0443 \u0441 <strong>ESP8266<\/strong>. Wifi \u043c\u043e\u0434\u0443\u043b\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0442\u043e\u0447\u043a\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430, \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u0435\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0435\u0442\u0438. \u0412 \u0435\u0433\u043e api 8 endpoint (<strong>POST<\/strong>), \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0441\u0432\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041c\u043e\u0434\u0435\u043b\u044c ESP8266<\/figcaption><\/div>\n<\/figure>\n<p>\u0422\u043e\u0447\u043a\u0438 <code>\/mouse<\/code> \u0438 <code>\/keyboard<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u043c\u044b\u0448\u043a\u0435 \u0438 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435, \u0442.\u0435. \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0438\u0445 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u043c. \u0422\u043e\u0447\u043a\u0430 <code>\/animation<\/code> \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 <strong>ESP8266<\/strong> \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u043f\u043e\u0441\u044b\u043b\u043a\u0443 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0435 \u043f\u043e UART \u043f\u0440\u044f\u043c\u043e \u043a <strong>STM32F103C8<\/strong>. Blue pill \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0438\u0445 \u043d\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e, \u0442\u043e \u043e\u043d\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 report \u0432 <strong>USB<\/strong>.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041c\u043e\u0434\u0435\u043b\u044c STM32F103C8<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u043b\u043d\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"https:\/\/miro.com\/app\/board\/uXjVLU63Vzo=\/?share_link_id=595211785817\" rel=\"noopener noreferrer nofollow\">miro<\/a>.<\/p>\n<h3>3. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f ESP8266<\/h3>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0434\u043b\u044f ESP8266 \u044f \u043f\u0438\u0441\u0430\u043b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <strong>PlathormIO<\/strong>,<strong> <\/strong>\u0432 Visual Studio Code. \u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0438 \u043a\u043e\u0434\u0430, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432\u0441\u0435 \u0432 \u043e\u0431\u0449\u0435\u043c \u0432\u0438\u0434\u0435, \u0438\u043d\u0430\u0447\u0435 \u0441\u0442\u0430\u0442\u044c\u044f \u043c\u043e\u0436\u0435\u0442 \u0441\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u0442\u044f\u043d\u0443\u0442\u044c\u0441\u044f. \u0412 \u043b\u044e\u0431\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0441\u0435 \u0441\u0430\u043c\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439, \u0432\u043e\u0442 <a href=\"https:\/\/github.com\/ISmileA\/UsbDeviceHacker\" rel=\"noopener noreferrer nofollow\">\u0441\u0441\u044b\u043b\u043a\u0430<\/a>.<\/p>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a :<\/p>\n<figure class=\"full-width\">\n<div><figcaption>main.cpp<\/figcaption><\/div>\n<\/figure>\n<p>\u0420\u0430\u0431\u043e\u0447\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u043e\u043d\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 4 \u043f\u0430\u043f\u043e\u043a: configs, controllers, modules, routes, \u0438 \u0438\u0437 \u0444\u0430\u0439\u043b\u043e\u0432 <code>main.h<\/code> \u0438 <code>main.cpp<\/code>. \u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>InitRouter()<\/code> \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <code>ESP8266WebServer.h<\/code>,  \u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0445 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b. \u0414\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u044f \u0440\u0435\u0448\u0438\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c namespace, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0442\u0430\u043a \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435 \u0438 \u0443\u0434\u043e\u0431\u043d\u0435\u0435. <\/p>\n<pre><code class=\"cpp\"> void InitRouter(){      server.on(\"\/mouse\/set\", Mouse::set);      server.on(\"\/mouse\/remove\", Mouse::remove);          server.on(\"\/mouse\/click\", Mouse::click);          server.on(\"\/keyboard\/set\", Keyboard::set);          server.on(\"\/keyboard\/remove\", Keyboard::remove);          server.on(\"\/keyboard\/click\", Keyboard::click);          server.on(\"\/animation\/set\", Animation::set);          server.on(\"\/animation\/remove\", Animation::remove);  }<\/code><\/pre>\n<p>\u0418 \u0434\u0430\u043b\u0435\u0435 \u0432\u0441\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0442 \u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\u0445. \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 <code>Animation.h<\/code>:<\/p>\n<figure class=\"full-width\">\n<div><figcaption>Animation.h<\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 JSON \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <code>ArduinoJson.h<\/code>. \u041e\u043d\u0430 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0438 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443, \u0441 \u043d\u0435\u0439 \u043c\u043e\u0436\u043d\u043e: \u043b\u0435\u0433\u043a\u043e \u043f\u0430\u0440\u0441\u0438\u0442\u044c, \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0441\u0430\u043c\u043e\u043c\u0443 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c JSON \u043e\u0431\u044a\u0435\u043a\u0442\u044b.<\/p>\n<p>\u041f\u043e\u0441\u044b\u043b\u043a\u0430 \u0434\u043b\u044f STM32 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 <code>data<\/code> \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>SendDataWithWait(uin8_t *data, uint8_t len)<\/code> \u043a\u043b\u0430\u0441\u0441\u0430 <code>serial<\/code>. \u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0431\u0430\u0439\u0442 \u043f\u043e\u0441\u044b\u043b\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430 <code>crc8<\/code>.<\/p>\n<pre><code class=\"cpp\">string SendDataWithWait(uint8_t *data, uint16_t len){     uint8_t data_out[len+2] = {HEADER,};             for(int i = 0; i&lt;len; i++){                     data_out[i+1] = data[i];             }             data_out[len+1] = crc8(data_out, len+1);             Serial.write(data_out, len+2);             if(AwaitResponse()){                     if (status){                     status = false;                             return \"ok\";                     }                     return \"error\";             }             return \"timeout\";     }<\/code><\/pre>\n<p>ESP8266 \u0436\u0434\u0435\u0442 \u043e\u0442\u0432\u0435\u0442\u0430 \u043e\u0442 STM32 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>AwaitResponse()<\/code>, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0442\u0432\u0435\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0443. \u0412\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0432 \u0444\u0430\u0439\u043b\u0435 <code>ClientProcessingModule.h<\/code>.<\/p>\n<p>\u041e\u0434\u043d\u0430 \u0438\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 &#8212; \u044d\u0442\u043e \u0435\u0433\u043e <strong>\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 ip<\/strong>. \u041f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043a \u0440\u043e\u0443\u0442\u0435\u0440\u0443 \u0438\u043b\u0438 \u043c\u043e\u0434\u0435\u043c\u0443, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443 \u0432\u044b\u0434\u0430\u0435\u0442\u0441\u044f <strong>ip<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c. \u0418\u0437-\u0437\u0430 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c ESP8266 \u043a \u0441\u0435\u0440\u0438\u0430\u043b \u043f\u043e\u0440\u0442\u0443 \u0438 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0435\u0433\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e. \u0420\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430: 1-\u044b\u0439, \u0435\u0441\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a \u0440\u043e\u0443\u0442\u0435\u0440\u0443 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c <strong>\u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 ip<\/strong>; 2-\u043e\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c <strong>\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 ip<\/strong> \u043d\u0430 \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u043e <strong>\u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c ip<\/strong>.<\/p>\n<p>\u042f \u0436\u0435 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u043d\u0438 \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u043e\u043a\u0430 \u043c\u043d\u0435 \u044d\u0442\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/p>\n<h3>4. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<figure class=\"full-width\">\n<div><figcaption>STM32F103C8<\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 STM32 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c ESP8266 \u043a \u043d\u0435\u0439. \u0422.\u043a blue pill \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043f\u043e USB, \u0442\u043e \u043f\u0438\u0442\u0430\u0442\u044c\u0441\u044f ESP \u0431\u0443\u0434\u0435\u0442 \u043e\u0442 \u043d\u0435\u0435. \u041f\u0438\u043d\u044b VCC \u0438 \u0421H_EN \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u043a \u043f\u0438\u043d\u0443 3.3V \u043d\u0430 STM32, GND \u043a GND, RX \u043a B10, TX \u043a B11 \u0438 \u043d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041d\u0430 STM32 \u043f\u0438\u043d\u044b B10 \u0438 B11 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f TX \u0438 RX USART3 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<h3>5. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f STM32f103C8<\/h3>\n<figure class=\"full-width\">\n<div><figcaption>UsbDeviceHacker<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0434\u043b\u044f STM \u044f \u043f\u0438\u0441\u0430\u043b \u0432 CubeIDE. \u041a\u043e\u0434 \u0434\u043b\u044f \u043d\u0435\u0435 \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043e\u043d \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 \u0421. \u0418\u0437 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b UASRT3(HAL), \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043e\u0442 ESP, \u0438, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, USB, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u043a\u0430\u043a HID-device. \u0422\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 \u043d\u0430 PC13. <\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 3 \u043f\u0430\u043f\u043e\u043a: inits, modules, controllers. \u0414\u0430\u043d\u043d\u044b\u0435 \u0441 USART3 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 <code>UsartController.c<\/code>, \u0432 <code>HAL_UART_RxCpltCallback<\/code>, \u043f\u0440\u0438\u0447\u0435\u043c \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u043e\u043d\u0438 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432 \u043c\u0430\u0441\u0441\u0438\u0432\u0435 <code>buffer<\/code>, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <code>ParsingData<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0430 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <code>crc8<\/code>, \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 <code>Action<\/code> \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>UsartController.c<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u0435\u043c\u0430 \u043f\u043e\u0441\u044b\u043b\u043a\u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0439 <code>case<\/code> \u0432 <code>main.c<\/code>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u0433\u0434\u0435 \u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430. \u0414\u0430\u043b\u0435\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0434\u0435\u0432\u0430\u0439\u0441\u0430 \u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442 report, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e USB.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>main.c<\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u0435\u043f\u043e\u0440\u0442\u044b \u0438 \u043c\u044b\u0448\u043a\u0438, \u0438 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <code>HID_MOUSE_ReportDesc<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 <code>usbd_hid.c<\/code>, \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438:<\/p>\n<pre><code class=\"cpp\">0x05, 0x01, \/* Usage Page (Generic Desktop) *\/ 0x09, 0x02, \/* Usage (Mouse) *\/ 0xA1, 0x01, \/* Collection (Application) *\/ 0x09, 0x01, \/* Usage (Pointer) *\/ 0xA1, 0x00, \/* Collection (Physical) *\/ 0x85, 0x01, \/* Report ID *\/ 0x05, 0x09, \/* Usage Page (Buttons) *\/ 0x19, 0x01, \/* Usage Minimum (01) *\/ 0x29, 0x03, \/* Usage Maximum (03) *\/ 0x15, 0x00, \/* Logical Minimum (0) *\/ 0x25, 0x01, \/* Logical Maximum (0) *\/ 0x95, 0x03, \/* Report Count (3) *\/ 0x75, 0x01, \/* Report Size (1) *\/ 0x81, 0x02, \/* Input (Data, Variable, Absolute) *\/ 0x95, 0x01, \/* Report Count (1) *\/ 0x75, 0x05, \/* Report Size (5) *\/ 0x81, 0x01, \/* Input (Constant) ;5 bit padding *\/ 0x05, 0x01, \/* Usage Page (Generic Desktop) *\/ 0x09, 0x30, \/* Usage (X) *\/ 0x09, 0x31, \/* Usage (Y) *\/ 0x15, 0x81, \/* Logical Minimum (-127) *\/ 0x25, 0x7F, \/* Logical Maximum (127) *\/ 0x75, 0x08, \/* Report Size (8) *\/ 0x95, 0x02, \/* Report Count (2) *\/ 0x81, 0x06, \/* Input (Data, Variable, Relative) *\/ 0xC0, 0xC0,\/* End Collection,End Collection *\/ \/\/ 0x09, 0x06, \/* Usage (Keyboard) *\/ 0xA1, 0x01, \/* Collection (Application) *\/ 0x85, 0x02, \/* Report ID *\/ 0x05, 0x07, \/* Usage (Key codes) *\/ 0x19, 0xE0, \/* Usage Minimum (224) *\/ 0x29, 0xE7, \/* Usage Maximum (231) *\/ 0x15, 0x00, \/* Logical Minimum (0) *\/ 0x25, 0x01, \/* Logical Maximum (1) *\/ 0x75, 0x01, \/* Report Size (1) *\/ 0x95, 0x08, \/* Report Count (8) *\/ 0x81, 0x02, \/* Input (Data, Variable, Absolute) *\/ 0x95, 0x01, \/* Report Count (1) *\/ 0x75, 0x08, \/* Report Size (8) *\/ 0x81, 0x01, \/* Input (Constant) ;5 bit padding *\/ 0x95, 0x05, \/* Report Count (5) *\/ 0x75, 0x01, \/* Report Size (1) *\/ 0x05, 0x08, \/* Usage Page (Page# for LEDs) *\/ 0x19, 0x01, \/* Usage Minimum (01) *\/ 0x29, 0x05, \/* Usage Maximum (05) *\/ 0x91, 0x02, \/* Output (Data, Variable, Absolute) *\/ 0x95, 0x01, \/* Report Count (1) *\/ 0x75, 0x03, \/* Report Size (3) *\/ 0x91, 0x01, \/* Output (Constant) *\/ 0x95, 0x06, \/* Report Count (1) *\/ 0x75, 0x08, \/* Report Size (3) *\/ 0x15, 0x00, \/* Logical Minimum (0) *\/ 0x25, 0x65, \/* Logical Maximum (101) *\/ 0x05, 0x07, \/* Usage (Key codes) *\/ 0x19, 0x00, \/* Usage Minimum (00) *\/ 0x29, 0x65, \/* Usage Maximum (101) *\/ 0x81, 0x00, \/* Input (Data, Array) *\/ 0xC0 \/* End Collection,End Collection *\/<\/code><\/pre>\n<p>\u0413\u0434\u0435 report id \u043c\u044b\u0448\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 0x01, \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b &#8212; 0x02, \u0442.\u0435. \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u043c\u044b\u0448\u0438 \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u0442\u0430\u043a\u043e\u043c \u0444\u043e\u0440\u043c\u0430\u0442\u0435:<\/p>\n<pre><code class=\"cpp\"> uint8_t data_out[5] = {0x01, 0, 0, 0, 0}; \/\/ \u043f\u0435\u0440\u0432\u044b\u0439 \u0431\u0430\u0439\u0442 - report id  USBD_HID_SendReport(&amp;hUsbDeviceFS, data_out, 5);<\/code><\/pre>\n<hr\/>\n<p>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u0434\u0435\u043b\u0438\u0442\u044c <strong>\u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u043c<\/strong>, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442 \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e 3 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438: <\/p>\n<p><strong>1) \u043f\u043b\u0430\u0432\u043d\u043e\u0435 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043c\u044b\u0448\u043a\u0438<\/strong> &#8212; \u043c\u044b\u0448\u043a\u0430 \u043f\u043b\u0430\u0432\u043d\u043e \u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043e\u0441\u0438 x \u0438\u043b\u0438 y, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u043e\u0442 1 \u0434\u043e 10 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e; <\/p>\n<p><strong>2)\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0442\u0435\u043a\u0441\u0442\u0430<\/strong> (\u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0430\u0442\u0438\u043d\u0441\u043a\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u0446\u0438\u0444\u0440\u044b \u0438 \u043f\u0440\u043e\u0431\u0435\u043b) &#8212;   \u043f\u043e\u043e\u0447\u0435\u0440\u0435\u0434\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0442\u0435\u043a\u0441\u0442\u0430, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u044b \u0435\u0433\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0431\u0438\u0440\u0430\u0442\u044c &#171;Hello World&#187; \u043a\u0430\u0436\u0434\u044b\u0435 10 \u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<p><strong>3)\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043c\u044b\u0448\u043a\u0438 \u043f\u043e \u043a\u0440\u0443\u0433\u0443 <\/strong>&#8212;<strong> <\/strong>\u043f\u0440\u043e\u0441\u0442\u043e \u043c\u044b\u0448\u043a\u0430 \u0434\u0432\u0438\u0436\u0435\u0442\u0441\u044f \u043f\u043e \u043a\u0440\u0443\u0433\u0443, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0442 1 \u0434\u043e 10 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0438 \u0440\u0430\u0434\u0438\u0443\u0441 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 1 \u0438 3 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044f\u043c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441\u044b \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u043c\u044b\u0448\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0443\u0441\u0442\u044c \u043c\u044b\u0448\u043a\u0430 \u0434\u0432\u0438\u0436\u0435\u0442\u0441\u044f \u043f\u043e \u043a\u0440\u0443\u0433\u0443 \u0441 \u043d\u0430\u0436\u0430\u0442\u043e\u0439 \u041f\u041a\u041c \u0438\u043b\u0438 \u041b\u041a\u041c, \u0438\u043b\u0438 \u0432\u0441\u0435 \u0441\u0440\u0430\u0437\u0443. \u0412\u0441\u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0442\u0440\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0430: \u041b\u041a\u041c, \u041f\u041a\u041c \u0438 \u043a\u043d\u043e\u043f\u043a\u0430 \u0443 \u043a\u043e\u043b\u0435\u0441\u0438\u043a\u0430 \u043c\u044b\u0448\u0438.<\/p>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e api <a href=\"https:\/\/u5tt60o55x.apidog.io\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>.<\/p>\n<h3>6. \u0422\u0435\u0441\u0442\u044b <\/h3>\n<figure class=\"full-width\"><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0448\u043b\u0438 \u0434\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043a \u0442\u0435\u0441\u0442\u0430\u043c. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043a \u043f\u043a (\u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0443) \u0438 \u0434\u043e\u0436\u0434\u0435\u043c\u0441\u044f \u043f\u043e\u043a\u0430 ESP \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u043c\u043e\u0434\u0435\u043c\u0443. \u042f \u0440\u0430\u0437\u0434\u0430\u043b \u0442\u043e\u0447\u043a\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u0438 \u0442\u0430\u043a\u0436\u0435 \u0435\u0449\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u043a \u043d\u0435\u0439 \u0441 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441 \u043d\u0435\u0433\u043e. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u044f \u0431\u0443\u0434\u0443 \u0441 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0430, \u0430 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044f \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 endpoint <code>\/remove<\/code>.<\/p>\n<p>\u0412\u043e\u0442 \u0441\u0441\u044b\u043b\u043a\u0430 \u0432\u0438\u0434\u0435\u043e \u0441 \u0442\u0435\u0441\u0442\u0430\u043c\u0438:<\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/6729e163ca01a46b4ca9e83c\" data-style=\"\" id=\"6729e163ca01a46b4ca9e83c\" width=\"\"><\/div>\n<hr\/>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0438 \u0432\u0441\u0435, \u043a\u0430\u043a \u044f \u0441\u0447\u0438\u0442\u0430\u044e, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u043e\u0447\u043d\u043e \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043b \u0442\u0440\u0430\u0442\u044b \u0441\u0438\u043b \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043d\u0435\u0433\u043e. \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 <a href=\"https:\/\/github.com\/ISmileA\/UsbDeviceHacker\" rel=\"noopener noreferrer nofollow\">\u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 git \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439<\/a>, \u0432<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-437585","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/437585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=437585"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/437585\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=437585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=437585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=437585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}