{"action":"created","issue":{"url":"https://api.github.com/repos/openLRSng/openLRSng/issues/202","repository_url":"https://api.github.com/repos/openLRSng/openLRSng","labels_url":"https://api.github.com/repos/openLRSng/openLRSng/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/openLRSng/openLRSng/issues/202/comments","events_url":"https://api.github.com/repos/openLRSng/openLRSng/issues/202/events","html_url":"https://github.com/openLRSng/openLRSng/issues/202","id":306123492,"number":202,"title":"hopInterval / hopTimeout","user":{"login":"thedillybar","id":37154792,"avatar_url":"https://avatars2.githubusercontent.com/u/37154792?v=4","gravatar_id":"","url":"https://api.github.com/users/thedillybar","html_url":"https://github.com/thedillybar","followers_url":"https://api.github.com/users/thedillybar/followers","following_url":"https://api.github.com/users/thedillybar/following{/other_user}","gists_url":"https://api.github.com/users/thedillybar/gists{/gist_id}","starred_url":"https://api.github.com/users/thedillybar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thedillybar/subscriptions","organizations_url":"https://api.github.com/users/thedillybar/orgs","repos_url":"https://api.github.com/users/thedillybar/repos","events_url":"https://api.github.com/users/thedillybar/events{/privacy}","received_events_url":"https://api.github.com/users/thedillybar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-17T03:12:22Z","updated_at":"2018-03-22T01:44:50Z","closed_at":null,"author_association":"NONE","body":"Has anyone debugged a connection to see how accurate the hopInterval calculation is? And looked at a connection with lost packets to see whether or not it stays in sync?\r\n\r\nMy concern is that if a few lost packets causes it to lose sync, a small problem becomes a larger one. We could recalculate the hopInterval (and timeouts) based on successfully received packets. \r\n\r\nI also noticed that the TX doesn't hop once it loses its input PPM signal (ppmAge >7). It could continue hopping each interval even though it's no longer sending packets. Maybe not worth it because it's going to lose sync anyway?"},"comment":{"url":"https://api.github.com/repos/openLRSng/openLRSng/issues/comments/375151221","html_url":"https://github.com/openLRSng/openLRSng/issues/202#issuecomment-375151221","issue_url":"https://api.github.com/repos/openLRSng/openLRSng/issues/202","id":375151221,"user":{"login":"thedillybar","id":37154792,"avatar_url":"https://avatars2.githubusercontent.com/u/37154792?v=4","gravatar_id":"","url":"https://api.github.com/users/thedillybar","html_url":"https://github.com/thedillybar","followers_url":"https://api.github.com/users/thedillybar/followers","following_url":"https://api.github.com/users/thedillybar/following{/other_user}","gists_url":"https://api.github.com/users/thedillybar/gists{/gist_id}","starred_url":"https://api.github.com/users/thedillybar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thedillybar/subscriptions","organizations_url":"https://api.github.com/users/thedillybar/orgs","repos_url":"https://api.github.com/users/thedillybar/repos","events_url":"https://api.github.com/users/thedillybar/events{/privacy}","received_events_url":"https://api.github.com/users/thedillybar/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T01:44:50Z","updated_at":"2018-03-22T01:44:50Z","author_association":"NONE","body":"`hopTimeoutSlow = hopInterval * hopcount;`\r\n\r\n`  } else if ((numberOfLostPackets == hopcount) && (pktTimeDelta > hopTimeoutSlow)) {\r\n    // hop slowly to allow re-sync with TX`\r\n\r\nOnce the RX misses hopcount consecutive packets (i.e. it misses the packet on every channel), then it re-syncs (hops very slowly to reestablish sync with TX)."}}
{"actor":{"display_login":"thedillybar"}}