{"id":277825,"date":"2016-04-07T11:42:04","date_gmt":"2016-04-07T07:42:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=277825"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=277825","title":{"rendered":"\u041f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u0434 arduino \u0434\u043b\u044f MSP430 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 nRF24_multipro, \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0433\u0440\u0443\u0448\u0435\u0447\u043d\u044b\u043c\u0438 \u043c\u0443\u043b\u044c\u0442\u0438\u043a\u043e\u043f\u0442\u0435\u0440\u0430\u043c\u0438"},"content":{"rendered":"\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/362\/45e\/bf2\/36245ebf2de942cc9cd5525beab8d296.JPG\" \/><\/div>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0441\u0440\u0430\u0437\u0443 \u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043a\u043e\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0435 \u043c\u043d\u043e\u0439 \u0438 \u0432\u0437\u044f\u0442 <a href=\"https:\/\/github.com\/goebish\/nrf24_multipro\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>. \u0414\u0430\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 \u0441\u0440\u0435\u0434\u0435 Arduino IDE \u0438 \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 arduino pro mini \u0438 nrf24l01+ \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u0433\u0440\u0443\u0448\u0435\u0447\u043d\u044b\u043c\u0438 \u043c\u0443\u043b\u044c\u0442\u0438\u043a\u043e\u043f\u0442\u0435\u0440\u0430\u043c\u0438 (\u0441 \u0440\u0430\u0434\u0438\u043e\u0447\u0438\u043f\u0430\u043c\u0438 XN297, \u043a\u043b\u043e\u043d\u0430\u043c\u0438 nrf24l01) \u0441 \u043b\u044e\u0431\u044b\u0445 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0443\u0440 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c PPM \u0432\u044b\u0445\u043e\u0434. \u0412\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043c\u0443\u043b\u044c\u0442\u0438\u043a\u043e\u043f\u0442\u0435\u0440\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0432\u044b\u0448\u0435.<br \/>  \u042f \u0440\u0435\u0448\u0438\u043b \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043f\u0442\u0435\u0440\u043e\u043c Eachine H8 mini \u0441 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0443\u0440\u044b Radiolink AT9. \u0417\u0430 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.<br \/>  <a name=\"habracut\"><\/a><br \/>  MSP430 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0443 \u043d\u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f 3.3 \u0432\u043e\u043b\u044c\u0442\u0430, \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f nrf24l01 \u0442\u0430\u043a\u0436\u0435 3.3 \u0432\u043e\u043b\u044c\u0442\u0430, \u0434\u0430 \u0438 MPS430 \u043c\u043d\u0435 \u043a\u0430\u043a-\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0440\u0430\u0432\u044f\u0442\u0441\u044f. \u0412\u043d\u0443\u0442\u0440\u0438 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0443\u0440\u044b \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442\u0441\u044f \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b 3V3, OUT, GND, \u043a \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043c\u044b \u0438 \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f.   <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/029\/c99\/6a9\/029c996a92f9498ab7cb0affdeba7b82.JPG\" \/><\/div>\n<p>  \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u0436\u0435\u043b\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0443\u0440\u0443, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u043a \u0442\u0440\u0435\u043d\u0435\u0440\u0441\u043a\u043e\u043c\u0443 \u0440\u0430\u0437\u044a\u0435\u043c\u0443, \u043d\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u043d\u0435\u043c = \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044e \u0430\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0441\u0445\u0435\u043c\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f.  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/494\/ca4\/902\/494ca4902d614a54a663e0a34d452e5b.JPG\" \/><\/div>\n<h1>\u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u043a \u043a\u043e\u0434\u0443<\/h1>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 IDE Energia (\u043a\u043b\u043e\u043d Arduino IDE \u0434\u043b\u044f MSP430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0447\u0438\u043f\u043e\u0432 \u043e\u0442 TI) \u0438 \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0435\u0433\u043e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0443\u0432\u0438\u0434\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u0414\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u043a \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043c, \u0438 \u043f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441 \u043d\u0438\u0445. \u0418\u0442\u0430\u043a, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u043a \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0430\u043d\u0430\u043b\u0438\u0437\u0443. <\/p>\n<h1>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438<\/h1>\n<p>  \u041f\u0440\u0430\u0432\u0438\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0444\u0430\u0439\u043b nRF24_multipro.ino \u0438 \u043d\u0430\u0447\u043d\u0435\u043c \u0441 include\u2019\u043e\u0432. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 atomic \u0438 EEPROM. <\/p>\n<h2>atomic<\/h2>\n<p>  \u0423\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 <\/p>\n<pre><code class=\"cpp\">#include &lt;util\/atomic.h&gt;<\/code><\/pre>\n<p>\u0438 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 void update_ppm() \u0443\u0431\u0438\u0440\u0430\u0435\u043c <\/p>\n<pre><code class=\"cpp\">ATOMIC_BLOCK(ATOMIC_RESTORESTATE)<\/code><\/pre>\n<p>\u0412\u043c\u0435\u0441\u0442\u043e \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a \u043f\u0438\u0448\u0435\u043c <\/p>\n<pre><code class=\"cpp\">__disable_interrupt();<\/code><\/pre>\n<p>\u0438 <\/p>\n<pre><code class=\"cpp\">__enable_interrupt();<\/code><\/pre>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f ATOMIC_BLOCK() \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u043f\u043e\u043a\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u0434 \u0432 \u0435\u0433\u043e \u00ab\u0442\u0435\u043b\u0435\u00bb \u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430, \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0444\u043b\u0430\u0433\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u044b\u043b\u043e \u0434\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 ATOMIC_BLOCK().<\/p>\n<h2>EEPROM<\/h2>\n<p>  \u0412 MSP430 \u043d\u0435\u0442 EEPROM \u043f\u0430\u043c\u044f\u0442\u0438, \u043d\u043e \u0435\u0441\u0442\u044c FLASH \u043f\u0430\u043c\u044f\u0442\u044c \u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0435\u0439 \u0435\u0441\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 MspFlash. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 <\/p>\n<pre><code class=\"cpp\">#include &lt;EEPROM.h&gt;<\/code><\/pre>\n<p>\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 MspFlash (Sketch-&gt;Import Library\u2026-&gt;MspFlash), \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043a\u0430\u043a\u043e\u0439 \u0441\u0435\u0433\u043c\u0435\u043d\u0442 FLASH \u043f\u0430\u043c\u044f\u0442\u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 <\/p>\n<pre><code class=\"cpp\">#define flash SEGMENT_D<\/code><\/pre>\n<p>\u0412 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 void selectProtocol() \u043c\u0435\u043d\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438   <\/p>\n<pre><code class=\"cpp\">else  \tcurrent_protocol = constrain(EEPROM.read(ee_PROTOCOL_ID),0,PROTO_END-1);       \/\/ update eeprom  EEPROM.update(ee_PROTOCOL_ID, current_protocol);<\/code><\/pre>\n<p>\u043d\u0430   <\/p>\n<pre><code class=\"cpp\">\/\/ update eeprom  Flash.write(flash+ee_PROTOCOL_ID, & current_protocol,1);<\/code><\/pre>\n<p>\u0423\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0447\u0442\u0435\u043d\u0438\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430 (\u0437\u0430\u0447\u0435\u043c, \u0447\u0438\u0442\u0430\u0435\u043c \u043d\u0438\u0436\u0435). <br \/>  \u0412 \u0444\u0443\u043d\u0446\u0438\u0438 void set_txid(bool renew) \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438. \u0412 FLASH \u043f\u0430\u043c\u044f\u0442\u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u043d\u0443\u043b\u044f\u0442\u044c \u0431\u0438\u0442\u044b. \u0414\u043b\u044f \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0431\u0438\u0442\u0430\u0445 FLASH \u043f\u0430\u043c\u044f\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 1, \u043d\u0443\u0436\u043d\u043e \u0441\u0442\u0435\u0440\u0435\u0442\u044c \u0432\u0435\u0441\u044c \u0441\u0435\u0433\u043c\u0435\u043d\u0442 (\u0442\u043e\u0433\u0434\u0430 \u0432 \u043d\u0435\u0433\u043e \u0437\u0430\u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f 1). \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f (set_txid) \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u043d\u044c\u0448\u0435 \u0447\u0435\u043c selectProtocol, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0442\u0438\u0440\u0430\u0442\u044c \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0442\u0443\u0442.<br \/>  \u0411\u044b\u043b\u043e:<\/p>\n<pre><code class=\"cpp\">void set_txid(bool renew) {     uint8_t i;     for(i=0; i&lt;4; i++)         transmitterID[i] = EEPROM.read(ee_TXID0+i);     if(renew || (transmitterID[0]==0xFF && transmitterID[1]==0x0FF)) {         for(i=0; i&lt;4; i++) {             transmitterID[i] = random() & 0xFF;             EEPROM.update(ee_TXID0+i, transmitterID[i]);          }                 } }<\/code><\/pre>\n<p>  \u0421\u0442\u0430\u043b\u043e:<\/p>\n<pre><code class=\"cpp\">void set_txid(bool renew) {     uint8_t i;     unsigned char p;     for(i=0; i&lt;4; i++) {         Flash.read(flash+ee_TXID0+i,&p,1);         transmitterID[i] =p;     } \tFlash.read(flash+ee_PROTOCOL_ID,&p,1);     current_protocol = constrain(p,0,PROTO_END-1); \tFlash.erase(flash);     if(renew || (transmitterID[0]==0xFF && transmitterID[1]==0x0FF)) {         for(i=0; i&lt;4; i++) {             transmitterID[i] = random(0xff) & 0xFF;             p = transmitterID[i];             Flash.write(flash+ee_TXID0+i, &p,1);          }                 }else{         for(i=0; i&lt;4; i++) {             p = transmitterID[i];             Flash.write(flash+ee_TXID0+i, &p,1);          }  \t \t} }<\/code><\/pre>\n<p>\u0422\u0443\u0442 \u043c\u044b \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430, \u0441\u0442\u0438\u0440\u0430\u0435\u043c \u0441\u0435\u0433\u043c\u0435\u043d\u0442, \u0438 \u0435\u0441\u043b\u0438 \u0434\u0430\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u0447\u0438\u043a\u0430, \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043d\u043e\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0438\u043d\u0430\u0447\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u0430\u0440\u043e\u0435. \u0411\u0430\u0439\u0442 FLASH \u043f\u0430\u043c\u044f\u0442\u0438 \u0441 \u0430\u0434\u0440\u0435\u0441\u043e\u043c flash+ee_PROTOCOL_ID \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0447\u0438\u0441\u0442\u044b\u043c (0xFF), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 selectProtocol() \u043c\u044b \u0435\u0433\u043e \u0438 \u043d\u0435 \u0447\u0438\u0442\u0430\u0435\u043c, \u0430 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0442\u0443\u0434\u0430 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430.<\/p>\n<h1>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b<\/h1>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u0441 \u043f\u0438\u043d\u0430\u043c\u0438. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f SPI, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043c\u0430\u043a\u0440\u043e\u0441\u044b \u0434\u043b\u044f \u00ab\u0434\u0435\u0440\u0433\u0430\u043d\u0438\u044f\u00bb \u043d\u043e\u0433\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0435\u0440\u0435\u043f\u0438\u0448\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0438\u043d\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\u0441<\/p>\n<pre><code class=\"cpp\">#define PPM_pin   2  \/\/ PPM in \/\/SPI Comm.pins with nRF24L01 #define MOSI_pin  3  \/\/ MOSI - D3 #define SCK_pin   4  \/\/ SCK  - D4 #define CE_pin    5  \/\/ CE   - D5 #define MISO_pin  A0 \/\/ MISO - A0 #define CS_pin    A1 \/\/ CS   - A1 #define ledPin    13 \/\/ LED  - D13<\/code><\/pre>\n<p>\u043d\u0430<\/p>\n<pre><code class=\"cpp\">#define PPM_pin   P1_5  \/\/ PPM in \/\/SPI Comm.pins with nRF24L01 #define MOSI_pin  P2_0  \/\/ MOSI  #define SCK_pin   P2_1  \/\/ SCK   #define CE_pin    P2_2  \/\/ CE  #define MISO_pin  P2_3 \/\/ MISO  #define CS_pin    P2_4 \/\/ CS    #define ledPin    P1_4 \/\/ LED  <\/code><\/pre>\n<p>\u0430 \u0442\u0430\u043a \u0436\u0435 <\/p>\n<pre><code class=\"cpp\">#define MOSI_on PORTD |= _BV(3)  \/\/ PD3 #define MOSI_off PORTD &= ~_BV(3)\/\/ PD3 #define SCK_on PORTD |= _BV(4)   \/\/ PD4 #define SCK_off PORTD &= ~_BV(4) \/\/ PD4 #define CE_on PORTD |= _BV(5)    \/\/ PD5 #define CE_off PORTD &= ~_BV(5)  \/\/ PD5 #define CS_on PORTC |= _BV(1)    \/\/ PC1 #define CS_off PORTC &= ~_BV(1)  \/\/ PC1 \/\/ SPI input #define  MISO_on (PINC & _BV(0)) \/\/ PC0<\/code><\/pre>\n<p>\u043d\u0430 <\/p>\n<pre><code class=\"cpp\">#define MOSI_on P2OUT |= _BV(0)\/\/ P2_0 #define MOSI_off P2OUT &= ~_BV(0)\/\/ P2_0 #define SCK_on P2OUT |= _BV(1)\/\/ P2_1 #define SCK_off P2OUT &= ~_BV(1)\/\/ P2_1 #define CE_on P2OUT |= _BV(2)\/\/ P2_2 #define CE_off P2OUT &= ~_BV(2)\/\/ P2_2 #define CS_on P2OUT |= _BV(4)\/\/ P2_4 #define CS_off P2OUT &= ~_BV(4) \/\/ P2_4 \/\/ SPI input #define  MISO_on (P2IN & _BV(3)) \/\/ P2_3<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0412 \u041c\u041a \u043e\u0442 ATMEL \u0437\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u044b\u0445\u043e\u0434\u0430 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b PORTx \u0432 MSP430 PxOUT. \u0417\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u0445\u043e\u0434\u0430- \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b PINx \u0438 PxIN \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u041a\u0441\u0442\u0430\u0442\u0438, \u0444\u0443\u043d\u043a\u0446\u0438\u0438 _BV(x) \u0432 IDE Energia \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0435 \u0441\u0430\u043c\u0438:  <\/p>\n<pre><code class=\"cpp\">#define _BV(val) 1&lt;&lt;val<\/code><\/pre>\n<p>\u0412 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 void setup() \u043c\u0435\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0438\u043d\u043e\u0432 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0432\u0445\u043e\u0434\u043e\u0432 \u043d\u0430 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0435 \u0441 <\/p>\n<pre><code class=\"cpp\">randomSeed((analogRead(A4) & 0x1F) | (analogRead(A5) &lt;&lt; 5));<\/code><\/pre>\n<p>\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430<\/p>\n<pre><code class=\"cpp\">randomSeed((analogRead(A0) & 0x1F) | (analogRead(A1) &lt;&lt; 5));<\/code><\/pre>\n<p>\u0412 MSP430 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0432\u0445\u043e\u0434\u044b A0, A1, A2, \u2026, A7 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043f\u0438\u043d\u0430\u043c P1_0, P1_1,P1_2, &#8230;, P1_7.<br \/>  \u041f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u043d\u044f\u0435\u043c <\/p>\n<pre><code class=\"cpp\">attachInterrupt(PPM_pin - 2, ISR_ppm, CHANGE);<\/code><\/pre>\n<p>\u043d\u0430 <\/p>\n<pre><code class=\"cpp\">attachInterrupt(PPM_pin , ISR_ppm, CHANGE);<\/code><\/pre>\n<p>\u0412 Arduino Uno, Nano, Mini, \u0438 \u0434\u0440. \u043d\u0430 mega328 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e 2 \u043f\u0438\u043d\u0430 (2, 3) \u0438 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 attachInterrupt \u043f\u0435\u0440\u0432\u044b\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u043e\u043c\u0435\u0440 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u0430 \u043d\u0435 \u043f\u0438\u043d \u043a\u0430\u043a \u0443 MSP430. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043f\u0440\u043e <a href=\"https:\/\/www.arduino.cc\/en\/Reference\/AttachInterrupt\">attachInterrupt()<\/a>.<\/p>\n<h1>\u0422\u0430\u0439\u043c\u0435\u0440<\/h1>\n<p>  \u041c\u0435\u043d\u044f\u0435\u043c \u0432 void setup()<\/p>\n<pre><code class=\"cpp\">TCCR1A = 0;  \/\/reset timer1 TCCR1B = 0; TCCR1B |= (1 &lt;&lt; CS11);  \/\/set timer1 to increment every 1 us @ 8MHz, 0.5 us @16MHz<\/code><\/pre>\n<p>\u041d\u0430 <\/p>\n<pre><code class=\"cpp\">TACTL = TASSEL_2 + ID_3 + MC_2 + TACLR; \/\/16000000 \/ 8<\/code><\/pre>\n<p>\u0422\u0430\u0439\u043c\u0435\u0440 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432 \u0432 PPM. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u0440\u0435\u0436\u0438\u043c \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430 \u0441 \u0447\u0430\u0441\u0442\u043e\u0442\u043e\u0439 2\u041c\u0413\u0446 (\u0442\u0430\u043a\u0442\u043e\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 16\u041c\u0413\u0446 \u0438 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043d\u0430 8).<br \/>  \u0412 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 void ISR_ppm() \u043c\u0435\u043d\u044f\u0435\u043c <\/p>\n<pre><code class=\"cpp\">counterPPM = TCNT1; TCNT1 = 0;<\/code><\/pre>\n<p>\u043d\u0430   <\/p>\n<pre><code class=\"cpp\">counterPPM = TAR; TAR = 0;<\/code><\/pre>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b TCNT1 \u0438 TAR \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0438 \u0442\u0430\u0439\u043c\u0435\u0440\u0430.<\/p>\n<h1>random()<\/h1>\n<p>  \u041d\u0435 \u0437\u043d\u0430\u044e \u043f\u043e\u0447\u0435\u043c\u0443, \u043d\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f random() \u0431\u0435\u0437 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 Energia \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0435 \u043e\u0434\u043d\u043e\u0431\u0430\u0439\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0442\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 nRF24_multipro.ino \u0438 Bayang.ino<\/p>\n<pre><code class=\"cpp\">random() & 0xFF; <\/code><\/pre>\n<p>\u043d\u0430 <\/p>\n<pre><code class=\"cpp\">random(0xFF);<\/code><\/pre>\n<p>\u0438 <\/p>\n<pre><code class=\"cpp\">random() % 0x42;<\/code><\/pre>\n<p>\u043d\u0430 <\/p>\n<pre><code class=\"cpp\">random(0x41);<\/code><\/pre>\n<p>  <\/p>\n<h1>???<\/h1>\n<p>  \u041d\u0443 \u0438 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u0432 \u0444\u0430\u0439\u043b\u0435 MJX.ino \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 void MJX_bind() \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043a\u043e\u0431\u043e\u0447\u043a\u0438 \u043a \u0432\u044b\u0437\u043e\u0432\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 mjx_init2;<br \/>  \u041a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434. <\/p>\n<p>  <a href=\"https:\/\/github.com\/goebish\/nrf24_multipro\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a><br \/>  <a href=\"https:\/\/github.com\/winkingsl\/nRF24_multipro_msp430\">\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a><\/p>\n<p>  \u0414\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043d\u044f\u0442\u044c \u0447\u0442\u043e, \u043a\u0430\u043a \u0438 \u0437\u0430\u0447\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u0434\u0435, \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044f\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 \u0438 \u0432 \u0445\u043e\u0434\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0447\u0430\u0449\u0435 \u0437\u0430\u0433\u043b\u044f\u0434\u044b\u0432\u0430\u0442\u044c \u0432 \u043b\u043e\u0433 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043e\u0448\u0438\u0431\u043e\u043a. <br \/>  \u041d\u0443 \u0430 \u0435\u0441\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u0432\u043c\u0441\u0435\u043c \u043f\u043e \u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443, \u0442\u043e \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0440\u0435\u0434\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0439 SPI \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043c\u0438, \u043d\u043e \u044d\u0442\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f.               <\/p>\n<div class=\"clear\"><\/div>\n<p> \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:\/\/geektimes.ru\/post\/273948\/\"> https:\/\/geektimes.ru\/post\/273948\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/362\/45e\/bf2\/36245ebf2de942cc9cd5525beab8d296.JPG\" \/><\/div>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0441\u0440\u0430\u0437\u0443 \u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u043a\u043e\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0435 \u043c\u043d\u043e\u0439 \u0438 \u0432\u0437\u044f\u0442 <a href=\"https:\/\/github.com\/goebish\/nrf24_multipro\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>. \u0414\u0430\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 \u0441\u0440\u0435\u0434\u0435 Arduino IDE \u0438 \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 arduino pro mini \u0438 nrf24l01+ \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u0433\u0440\u0443\u0448\u0435\u0447\u043d\u044b\u043c\u0438 \u043c\u0443\u043b\u044c\u0442\u0438\u043a\u043e\u043f\u0442\u0435\u0440\u0430\u043c\u0438 (\u0441 \u0440\u0430\u0434\u0438\u043e\u0447\u0438\u043f\u0430\u043c\u0438 XN297, \u043a\u043b\u043e\u043d\u0430\u043c\u0438 nrf24l01) \u0441 \u043b\u044e\u0431\u044b\u0445 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0443\u0440 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c PPM \u0432\u044b\u0445\u043e\u0434. \u0412\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u043c\u0443\u043b\u044c\u0442\u0438\u043a\u043e\u043f\u0442\u0435\u0440\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0432\u044b\u0448\u0435.<br \/>  \u042f \u0440\u0435\u0448\u0438\u043b \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043f\u0442\u0435\u0440\u043e\u043c Eachine H8 mini \u0441 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u0443\u0440\u044b Radiolink AT9. \u0417\u0430 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u044f\u043c\u0438 \u043f\u0440\u043e\u0448\u0443 \u043f\u043e\u0434 \u043a\u0430\u0442.  <\/p>\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-277825","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/277825","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=277825"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/277825\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=277825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=277825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=277825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}