{"action":"closed","issue":{"url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/issues/30","repository_url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse","labels_url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/issues/30/comments","events_url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/issues/30/events","html_url":"https://github.com/Sinapse-Energia/AP-Sinapse/issues/30","id":251245378,"number":30,"title":"[EPD Discovery 316 - 313 - 713] Deafness / HF after set up more than 20 EPDs","user":{"login":"ralcaide","id":2856585,"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":651258353,"url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":{"login":"fpgamcu","id":17067442,"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},"assignees":[{"login":"fpgamcu","id":17067442,"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/8","html_url":"https://github.com/Sinapse-Energia/AP-Sinapse/milestone/8","labels_url":"https://api.github.com/repos/Sinapse-Energia/AP-Sinapse/milestones/8/labels","id":2704840,"number":8,"title":"BUGS - EasyNet V0.1","description":"Here are included all the bugs / problems found during the testing phases of the different sub-milestones\r\n","creator":{"login":"ralcaide","id":2856585,"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":1,"closed_issues":2,"state":"open","created_at":"2017-08-16T13:24:18Z","updated_at":"2017-08-23T12:32:58Z","due_on":"2017-08-31T07:00:00Z","closed_at":null},"comments":4,"created_at":"2017-08-18T13:28:54Z","updated_at":"2017-08-23T12:32:58Z","closed_at":"2017-08-23T12:32:57Z","body":"The following MQTT.fx Script has been used in order to perform a charge test:\r\n\r\n`\r\nvar Thread = Java.type(\"java.lang.Thread\");\r\n\r\nfunction execute(action) {\r\n    out(\"Test Script: \" + action.getName());\r\n    \r\n    var topic_root = \"LU/LUM\";\r\n    var id_ap = \"700099\";\r\n\r\n    mqttManager.subscribe(\"LU/LUM/SEN\");\r\n    //ask 313;\r\n    send_313(id_ap, topic_root);\r\n    sleep_mqtt();\r\n    send_316(id_ap, topic_root, \"200001\", \"60\");\r\n    sleep_mqtt();\r\n    send_313(id_ap, topic_root);\r\n    sleep_mqtt();\r\n    send_316(id_ap, topic_root, \"200002\", \"60\");\r\n    sleep_mqtt();\r\n    send_313(id_ap, topic_root);\r\n    sleep_mqtt();\r\n    send_316(id_ap, topic_root, \"200003\", \"100\");\r\n    sleep_mqtt();\r\n    send_313(id_ap, topic_root);\r\n    sleep_mqtt();\r\n\r\n    // Modifying nodes\r\n    send_316(id_ap, topic_root, \"200001\", \"90\");\r\n    sleep_mqtt();\r\n    send_313(id_ap, topic_root);\r\n    sleep_mqtt();\r\n    send_316(id_ap, topic_root, \"200002\", \"120\");\r\n    sleep_mqtt();\r\n    send_313(id_ap, topic_root);\r\n    sleep_mqtt();\r\n\r\n    execute_charge_test(id_ap, topic_root);\r\n    \r\n\r\n    ///\r\n    action.setExitCode(0);\r\n    action.setResultText(\"done.\");\r\n    out(\"Test Script: Done\");\r\n    return action;\r\n}\r\n\r\nfunction send_313(id_ap, topic_root) {\r\n  out(\"send_313\");\r\n  var topic = topic_root + \"/ACT/\" + id_ap;\r\n  var msg = \"313;\";\r\n  mqttManager.publish(topic, msg);\r\n\r\n}\r\n\r\nfunction send_316(id_ap, topic_root, id_epd, power) {\r\n  out(\"send_316 - ID: \" + id_epd + \" P: \" + power);\r\n  var topic = topic_root + \"/ACT/\" + id_ap;\r\n  var msg = \"316;\"+id_epd+\";\"+power+\";\";\r\n  mqttManager.publish(topic, msg);  \r\n}\r\n\r\nfunction send_398(id_ap, topic_root, minutes) {\r\n  out(\"send_398\");\r\n  var topic = topic_root + \"/ACT/\" + id_ap;\r\n  var msg = \"398;\"+minutes+\";\";\r\n  mqttManager.publish(topic, msg);  \r\n}\r\n\r\nfunction execute_charge_test(id_ap, topic_root) {\r\n  epd_max_number = 40;\r\n  start_epd = 200010;\r\n  start_p = 60;\r\n  for (i = 1; i <= epd_max_number; i++) {\r\n    epd_id = start_epd + i;\r\n    p = start_p + i; \r\n    \r\n    send_316(id_ap, topic_root, epd_id.toString(), p.toString());\r\n    sleep_mqtt();\r\n    \r\n    if (i % 10 === 0) { //Ask only each 10 times\r\n      send_313(id_ap, topic_root);\r\n      sleep_mqtt();\r\n    }\r\n  }\r\n}\r\n\r\n\r\n\r\nfunction out(message){\r\n     output.print(message);\r\n}\r\n\r\nfunction sleep_mqtt() {\r\n   Thread.sleep(2000);\r\n}\r\n`\r\n\r\nThe context.h has been modified in order to allow a maximum of 50 elements:\r\n\r\n`#define\t\tMAX_TABLE_SIZE\t\t50`\r\n\r\nDuring the execution of the script everything work OK until the i of execute_charge_test is > 20, the third time that the 313; is asked in this script doesn't return any answer. After that the device is not responding anymore. \r\nAfter a reset + run in Debug, *a new 313; is sent and a HF is produced.*. Each time a 313; is sent the device produce a HF.\r\n\r\nThe 314; does not produce a HF, the 398; neither.\r\n\r\nAfter run the 314; and 398; and ask again the 313;, NO HF is produced. It seems that after save several devices, the EEPROM is corrupted or some other problem is happening\r\n\r\n"}}
{"actor":{"display_login":"ralcaide"}}