{"action":"created","issue":{"url":"https://api.github.com/repos/CongducPham/LowCostLoRaGw/issues/179","repository_url":"https://api.github.com/repos/CongducPham/LowCostLoRaGw","labels_url":"https://api.github.com/repos/CongducPham/LowCostLoRaGw/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/CongducPham/LowCostLoRaGw/issues/179/comments","events_url":"https://api.github.com/repos/CongducPham/LowCostLoRaGw/issues/179/events","html_url":"https://github.com/CongducPham/LowCostLoRaGw/issues/179","id":305497593,"number":179,"title":"RPi2 and Adafruit RFM9x","user":{"login":"MungoBerry","id":26003392,"avatar_url":"https://avatars2.githubusercontent.com/u/26003392?v=4","gravatar_id":"","url":"https://api.github.com/users/MungoBerry","html_url":"https://github.com/MungoBerry","followers_url":"https://api.github.com/users/MungoBerry/followers","following_url":"https://api.github.com/users/MungoBerry/following{/other_user}","gists_url":"https://api.github.com/users/MungoBerry/gists{/gist_id}","starred_url":"https://api.github.com/users/MungoBerry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MungoBerry/subscriptions","organizations_url":"https://api.github.com/users/MungoBerry/orgs","repos_url":"https://api.github.com/users/MungoBerry/repos","events_url":"https://api.github.com/users/MungoBerry/events{/privacy}","received_events_url":"https://api.github.com/users/MungoBerry/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-15T10:41:02Z","updated_at":"2018-03-20T09:03:33Z","closed_at":"2018-03-20T09:03:33Z","author_association":"NONE","body":"Hi,\r\n\r\nI'm trying to create a gateway using a RPi 2 and an Adafruit RFM9x lora module.\r\nI'm using an Arduino UNO for the client.\r\nOn Arduino I'll get \"Unrecognized transceiver\" until I forced to recognize RFM9x module adding on sx1272.cpp at line 263\r\n\r\n```\r\nif (version == 0x22) {\r\n        // sx1272\r\n        Serial.println(F(\"SX1272 detected, starting\"));\r\n        _board = SX1272Chip;\r\n    } else\r\n    // for Adafruit RFM9x\r\n    if (version == 0x12) {\r\n        // sx1276\r\n        Serial.println(F(\"RFM9x detected, starting\"));\r\n        _board = SX1276Chip;\r\n    }\r\n    // end  for Adafruit RFM9x\r\n    else\r\n    {\r\n```\r\notherwise check for sx1276 will fails. It returns version 0.\r\n\r\nNow on serial console I get:\r\n\r\n> Simple LoRa ping-pong with the gateway\r\n> ATmega328P detected\r\n> RFM9x detected, starting\r\n> SX1276 LF/HF calibration\r\n> ...\r\n> ...\r\n> ...\r\n> Setting Mode: state 1\r\n> Setting Channel: state 1\r\n> Setting Power: state 1\r\n> Setting node addr: state 1\r\n> SX1272 successfully configured\r\n> --> CarrierSense1\r\n> --> CAD duration 300\r\n> ###1\r\n> --> waiting for 1 DIFS (DIFS=3SIFS) = 0\r\n> --> retry\r\n> --> CAD duration 300\r\n> ###1\r\n> --> waiting for 1 DIFS (DIFS=3SIFS) = 0\r\n> --> retry\r\n> --> CAD duration 300\r\n> ###1\r\n> --> waiting for 3 DIFS (DIFS=3SIFS) = 0\r\n> --> retry\r\n> --> CAD duration 300\r\n\r\nbut I don't know if this output is correct.\r\n\r\nOn RPi I was unable to run gateway stuff.\r\nI've tried with SD image, then I've tried to recompile it for RPi2.\r\nIt hangs at startup on \"check version...\" inside SPI.transfernb function.\r\nInside sx1272.h file I 've seen\r\n\r\n> #define SX1272_RST  7\r\n> \r\n> and\r\n> \r\n> #define SX1272_SS 10\r\n\r\nShould not be\r\n\r\n> #define SX1272_RST  17\r\n> \r\n> and\r\n> \r\n> #define SX1272_SS 8\r\n\r\nas reported inside Low-cost-LoRa-GW-step-by-step.pdf ?\r\n\r\nI'll try both configuration but still hangs.\r\nAny help ?\r\n\r\nThank you.\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CongducPham/LowCostLoRaGw/issues/comments/374522998","html_url":"https://github.com/CongducPham/LowCostLoRaGw/issues/179#issuecomment-374522998","issue_url":"https://api.github.com/repos/CongducPham/LowCostLoRaGw/issues/179","id":374522998,"user":{"login":"MungoBerry","id":26003392,"avatar_url":"https://avatars2.githubusercontent.com/u/26003392?v=4","gravatar_id":"","url":"https://api.github.com/users/MungoBerry","html_url":"https://github.com/MungoBerry","followers_url":"https://api.github.com/users/MungoBerry/followers","following_url":"https://api.github.com/users/MungoBerry/following{/other_user}","gists_url":"https://api.github.com/users/MungoBerry/gists{/gist_id}","starred_url":"https://api.github.com/users/MungoBerry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MungoBerry/subscriptions","organizations_url":"https://api.github.com/users/MungoBerry/orgs","repos_url":"https://api.github.com/users/MungoBerry/repos","events_url":"https://api.github.com/users/MungoBerry/events{/privacy}","received_events_url":"https://api.github.com/users/MungoBerry/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T09:03:33Z","updated_at":"2018-03-20T09:03:33Z","author_association":"NONE","body":"Thank you, solved.\r\nOn Arduino I was using bad pin numbers.\r\nOn RPi I'll build for version 2, but I've a model B 1.**2**"}}
{"actor":{"display_login":"MungoBerry"}}