{"action":"created","issue":{"url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/issues/192","repository_url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse","labels_url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/issues/192/comments","events_url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/issues/192/events","html_url":"https://github.com/Sinapse-Energia/AP-Sinapse/issues/192","id":393371188,"node_id":"MDU6SXNzdWUzOTMzNzExODg=","number":192,"title":"[RF][Mismatching] To understand how is working now the RF TX - RX and improve matching with End Devices","user":{"login":"ralcaide","id":2856585,"node_id":"MDQ6VXNlcjI4NTY1ODU=","avatar_url":"https://avatars0.githubusercontent.com/u/2856585?v=4","gravatar_id":"","url":"https://api.github.com/users/ralcaide","html_url":"https://github.com/ralcaide","followers_url":"https://api.github.com/users/ralcaide/followers","following_url":"https://api.github.com/users/ralcaide/following{/other_user}","gists_url":"https://api.github.com/users/ralcaide/gists{/gist_id}","starred_url":"https://api.github.com/users/ralcaide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralcaide/subscriptions","organizations_url":"https://api.github.com/users/ralcaide/orgs","repos_url":"https://api.github.com/users/ralcaide/repos","events_url":"https://api.github.com/users/ralcaide/events{/privacy}","received_events_url":"https://api.github.com/users/ralcaide/received_events","type":"User","site_admin":false},"labels":[{"id":832187904,"node_id":"MDU6TGFiZWw4MzIxODc5MDQ=","url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/labels/Device:%20All","name":"Device: All","color":"AEFFDD","default":false},{"id":708479193,"node_id":"MDU6TGFiZWw3MDg0NzkxOTM=","url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/labels/Priority:%20high","name":"Priority: high","color":"FF920D","default":false},{"id":807543251,"node_id":"MDU6TGFiZWw4MDc1NDMyNTE=","url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/labels/Size:%205","name":"Size: 5","color":"08374C","default":false},{"id":805073121,"node_id":"MDU6TGFiZWw4MDUwNzMxMjE=","url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/labels/Status:%20in%20progress","name":"Status: in progress","color":"6AFF56","default":false},{"id":651258355,"node_id":"MDU6TGFiZWw2NTEyNTgzNTU=","url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/labels/Type:%20enhancement","name":"Type: enhancement","color":"7F1207","default":false}],"state":"open","locked":false,"assignee":{"login":"ralcaide","id":2856585,"node_id":"MDQ6VXNlcjI4NTY1ODU=","avatar_url":"https://avatars0.githubusercontent.com/u/2856585?v=4","gravatar_id":"","url":"https://api.github.com/users/ralcaide","html_url":"https://github.com/ralcaide","followers_url":"https://api.github.com/users/ralcaide/followers","following_url":"https://api.github.com/users/ralcaide/following{/other_user}","gists_url":"https://api.github.com/users/ralcaide/gists{/gist_id}","starred_url":"https://api.github.com/users/ralcaide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralcaide/subscriptions","organizations_url":"https://api.github.com/users/ralcaide/orgs","repos_url":"https://api.github.com/users/ralcaide/repos","events_url":"https://api.github.com/users/ralcaide/events{/privacy}","received_events_url":"https://api.github.com/users/ralcaide/received_events","type":"User","site_admin":false},"assignees":[{"login":"ralcaide","id":2856585,"node_id":"MDQ6VXNlcjI4NTY1ODU=","avatar_url":"https://avatars0.githubusercontent.com/u/2856585?v=4","gravatar_id":"","url":"https://api.github.com/users/ralcaide","html_url":"https://github.com/ralcaide","followers_url":"https://api.github.com/users/ralcaide/followers","following_url":"https://api.github.com/users/ralcaide/following{/other_user}","gists_url":"https://api.github.com/users/ralcaide/gists{/gist_id}","starred_url":"https://api.github.com/users/ralcaide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralcaide/subscriptions","organizations_url":"https://api.github.com/users/ralcaide/orgs","repos_url":"https://api.github.com/users/ralcaide/repos","events_url":"https://api.github.com/users/ralcaide/events{/privacy}","received_events_url":"https://api.github.com/users/ralcaide/received_events","type":"User","site_admin":false},{"login":"fpgamcu","id":17067442,"node_id":"MDQ6VXNlcjE3MDY3NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/17067442?v=4","gravatar_id":"","url":"https://api.github.com/users/fpgamcu","html_url":"https://github.com/fpgamcu","followers_url":"https://api.github.com/users/fpgamcu/followers","following_url":"https://api.github.com/users/fpgamcu/following{/other_user}","gists_url":"https://api.github.com/users/fpgamcu/gists{/gist_id}","starred_url":"https://api.github.com/users/fpgamcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpgamcu/subscriptions","organizations_url":"https://api.github.com/users/fpgamcu/orgs","repos_url":"https://api.github.com/users/fpgamcu/repos","events_url":"https://api.github.com/users/fpgamcu/events{/privacy}","received_events_url":"https://api.github.com/users/fpgamcu/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/milestones/11","html_url":"https://github.com/Sinapse-Energia/AP-Sinapse/milestone/11","labels_url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/milestones/11/labels","id":2773793,"node_id":"MDk6TWlsZXN0b25lMjc3Mzc5Mw==","number":11,"title":"Backlog","description":"This milestone works as a backlog. It contains the issues to be implemented in another planned milestone still not assigned.","creator":{"login":"ralcaide","id":2856585,"node_id":"MDQ6VXNlcjI4NTY1ODU=","avatar_url":"https://avatars0.githubusercontent.com/u/2856585?v=4","gravatar_id":"","url":"https://api.github.com/users/ralcaide","html_url":"https://github.com/ralcaide","followers_url":"https://api.github.com/users/ralcaide/followers","following_url":"https://api.github.com/users/ralcaide/following{/other_user}","gists_url":"https://api.github.com/users/ralcaide/gists{/gist_id}","starred_url":"https://api.github.com/users/ralcaide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ralcaide/subscriptions","organizations_url":"https://api.github.com/users/ralcaide/orgs","repos_url":"https://api.github.com/users/ralcaide/repos","events_url":"https://api.github.com/users/ralcaide/events{/privacy}","received_events_url":"https://api.github.com/users/ralcaide/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":3,"state":"open","created_at":"2017-09-18T11:53:26Z","updated_at":"2018-12-21T08:48:31Z","due_on":"2018-12-31T08:00:00Z","closed_at":null},"comments":3,"created_at":"2018-12-21T08:48:31Z","updated_at":"2018-12-21T12:59:48Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"We have now three kind of End Nodes and not all of them are answering to the AP. However, they are answering to a legacy transparent modem.\r\n\r\n| Gateway | EC Legacy | EC-NEMA | EC-RF |\r\n|-------------|---------------|---------------|------------|\r\n| Legacy  | OK | OK  | OK |\r\n| AP | OK | KO | KO |\r\n\r\nNormally, the new ECs execute the actions but they are not answering/sending the expected RF Frame.\r\n\r\nWe observed also that EC Legacy answers much more faster when the query comes from Legacy gateway (300ms) that from the query comes from AP (1000ms). This fact possible means that AP is sending a query much slow than Legacy Gateway. The TDA is normally automatically adapted to reception speed.\r\n\r\nNext actions are required:\r\n \r\n- Explanation about the RF sending speed from AP (All elements involved). We require a table or chart with every time involved (MCU -> SPI -> TDA -> Air, delays, etc) in order to have a clear and global view about what is happening. Other developers will do same for EC and EC-NEMA after the table for AP is done\r\n- How to increase the global sending speed?  \r\n- Study mismatching and adapt speed in order to work well in every case\r\n\r\n# Test results\r\n\r\n| Device | ID | MCU Freq | RX Time | Distance|\r\n|----|----|----|----| ---|\r\n|EC-LC-NEMA | 530001 | 26Mhz | 0 | 12m |\r\n|EC-LC-NEMA | 530002 | 26Mhz | 0 | 12m |\r\n|EC-LC-NEMA | 530003 | 8Mhz | 0 | 12m |\r\n|EC-LC-NEMA | 530004 | 8Mhz | 0 | 12m |\r\n|EC Evo - Legacy | 514853 | ?  | Default / 0 | 3m |\r\n|EC Evo - Legacy | 523751 | ? | Default / 0 | 12m |\r\n\r\n| Device / GW | Test | 530001 |  530002 | 530003 | 530004 | 514853 | 523751 |\r\n| --- | --- | --- |  ---  | --- |  ---  | --- | --- |\r\n| AP | PING | NO ACK |  NO ACK  | 800ms + T |  800ms + T  | 1000ms + T / NO ACK | 1000ms + T/ NO ACK  |\r\n| TM (Legacy) | PING | 300ms |  300ms  | 1000ms |  1000ms  | 1200ms / 300ms | 1200ms / 300ms  |\r\n| AP | Metering | NO ACK |  NO ACK  | NO ACK |  NO ACK  | 1300ms + T / 400ms + T | 2000ms + T / 1000ms + T |\r\n| TM (Legacy) | Metering | 300ms |  300ms  | 300ms |  300ms  | 600ms / 600ms | 1200ms / 1200ms  |\r\n\r\nT is an unknown time from AP to TM. It can be calculated but suppose is bigger than 300ms. So AP is slower than TM\r\n\r\nHere the original file with test results. The tables are the resume\r\n\r\n[RF_TEST.pdf](https://github.com/Sinapse-Energia/AP-Sinapse/files/2702677/RF_TEST.pdf)\r\n"},"comment":{"url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/issues/comments/449382313","html_url":"https://github.com/Sinapse-Energia/AP-Sinapse/issues/192#issuecomment-449382313","issue_url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/issues/192","id":449382313,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTM4MjMxMw==","user":{"login":"fpgamcu","id":17067442,"node_id":"MDQ6VXNlcjE3MDY3NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/17067442?v=4","gravatar_id":"","url":"https://api.github.com/users/fpgamcu","html_url":"https://github.com/fpgamcu","followers_url":"https://api.github.com/users/fpgamcu/followers","following_url":"https://api.github.com/users/fpgamcu/following{/other_user}","gists_url":"https://api.github.com/users/fpgamcu/gists{/gist_id}","starred_url":"https://api.github.com/users/fpgamcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpgamcu/subscriptions","organizations_url":"https://api.github.com/users/fpgamcu/orgs","repos_url":"https://api.github.com/users/fpgamcu/repos","events_url":"https://api.github.com/users/fpgamcu/events{/privacy}","received_events_url":"https://api.github.com/users/fpgamcu/received_events","type":"User","site_admin":false},"created_at":"2018-12-21T12:59:48Z","updated_at":"2018-12-21T12:59:48Z","author_association":"NONE","body":"3. In SPI_sendByte those 1000 timeout is only for compatibility with HAL calls. Whenever you use 1000 or 100 ticks it still will send data by SPI with SPI clock speed (652343 bit per second with current settings, prescaler 64, sys clock 167 MHz, bus clock 41.75 MHz)  "}}
{"actor":{"display_login":"fpgamcu"}}