{"action":"created","issue":{"url":"https://api.github.com/repos/JMRI/JMRI/issues/6197","repository_url":"https://api.github.com/repos/JMRI/JMRI","labels_url":"https://api.github.com/repos/JMRI/JMRI/issues/6197/labels{/name}","comments_url":"https://api.github.com/repos/JMRI/JMRI/issues/6197/comments","events_url":"https://api.github.com/repos/JMRI/JMRI/issues/6197/events","html_url":"https://github.com/JMRI/JMRI/issues/6197","id":384150155,"node_id":"MDU6SXNzdWUzODQxNTAxNTU=","number":6197,"title":"Engine Driver and JMRI 4.13.5 fail when attempting to steal an engine","user":{"login":"frankfezzie","id":34728483,"node_id":"MDQ6VXNlcjM0NzI4NDgz","avatar_url":"https://avatars2.githubusercontent.com/u/34728483?v=4","gravatar_id":"","url":"https://api.github.com/users/frankfezzie","html_url":"https://github.com/frankfezzie","followers_url":"https://api.github.com/users/frankfezzie/followers","following_url":"https://api.github.com/users/frankfezzie/following{/other_user}","gists_url":"https://api.github.com/users/frankfezzie/gists{/gist_id}","starred_url":"https://api.github.com/users/frankfezzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankfezzie/subscriptions","organizations_url":"https://api.github.com/users/frankfezzie/orgs","repos_url":"https://api.github.com/users/frankfezzie/repos","events_url":"https://api.github.com/users/frankfezzie/events{/privacy}","received_events_url":"https://api.github.com/users/frankfezzie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-11-26T02:20:56Z","updated_at":"2018-11-30T14:05:11Z","closed_at":null,"author_association":"NONE","body":"Using Engine Driver connected through JMRI ver 4.13.5, when I attempt to acquire an engine that is \"In Use\" on a Digitrax throttle I see a \"steal\" message on my phone with Y or N options.  \r\n\r\nWhen I choose the \"Y\" option to the steal message, Engine Driver will not acquire the engine and any further attempt to acquire any engine with Engine Drive fails.  After 5 to 10 seconds Engine Driver reports that it lost contact with the server and reestablishes contact.  At this point Engine Driver resumes normal operation and will acquire any engine except one that is \"In Use\" on a Digitrax throttle.\r\n\r\nWhen I choose the \"N\" option to the steal message, Engine Driver returns to the throttle screen showing no engine is selected and will allow me to acquire any engine except one that is \"In Use\" on a Digitrax throttle.\r\n\r\nI also tested the JMRI throttle on the computer screen.  The JMRI computer throttle appears to be mostly well behaved regarding steals IF one always uses the RELEASE button to free a selected engine from the throttle.  Both \"Y\" and \"N\" options to the steal message appear to function properly.\r\n\r\nHowever, if you use the DISPATCH button to free a selected engine from the computer throttle, then operation of the computer throttle gets weird after a steal message.  Here is one test sequence.\r\n8840 is In Use on Digitrax throttle.  On the computer throttle do these steps;\r\n1. attempt to acquire 8840.  Get steal message.  Answer \"Y\".  Confirm control of engine.  Slot monitor shows slot In Use. Hit DISPATCH to free engine.  Slot monitor shows status as IDLE.\r\n2. acquire 8841.  Confirm control of engine.  Slot monitor shows slot in Use.  Hit DISPATCH to free engine.  Slot monitor shows status as IDLE.\r\n3. acquire 8840.  You will not get steal message which is correct.  Computer throttle appears to show that engine is acquired but you will have no control and slot monitor will show status as IDLE.\r\nTesting will show that you can properly acquire any engine number ONE time and then use DISPATCH button to free it.  But second attempt to acquire the number will fail as described above.\r\n\r\nOnce the computer throttle starting failing to properly acquire engines, then Engine Driver will exhibit the same failures.  Only way to fix it is to close and then restart JMRI.\r\n\r\nSetup\r\nDigitrax DCS100 command station\r\nDigitrax DT402D throttle running rev 21 software and operating plugged into the Loconet\r\nHP Laptop running Windows 10\r\nJMRI version Test 4.13.5\r\nLocobuffer USB interface\r\nEngine Driver 2.22.69 running on Samsung Galaxy S2 with Android version 4.1.2\r\nI placed two engines on the track, 8840 and 8841, so that I could observe results of throttle commands on the engines as I attempted to acquire the engines in various sequences.  8840 was acquired on the Digitrax throttle.\r\n\r\nFrank Fezzie"},"comment":{"url":"https://api.github.com/repos/JMRI/JMRI/issues/comments/443212941","html_url":"https://github.com/JMRI/JMRI/issues/6197#issuecomment-443212941","issue_url":"https://api.github.com/repos/JMRI/JMRI/issues/6197","id":443212941,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzIxMjk0MQ==","user":{"login":"Pugwash1","id":18124026,"node_id":"MDQ6VXNlcjE4MTI0MDI2","avatar_url":"https://avatars3.githubusercontent.com/u/18124026?v=4","gravatar_id":"","url":"https://api.github.com/users/Pugwash1","html_url":"https://github.com/Pugwash1","followers_url":"https://api.github.com/users/Pugwash1/followers","following_url":"https://api.github.com/users/Pugwash1/following{/other_user}","gists_url":"https://api.github.com/users/Pugwash1/gists{/gist_id}","starred_url":"https://api.github.com/users/Pugwash1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pugwash1/subscriptions","organizations_url":"https://api.github.com/users/Pugwash1/orgs","repos_url":"https://api.github.com/users/Pugwash1/repos","events_url":"https://api.github.com/users/Pugwash1/events{/privacy}","received_events_url":"https://api.github.com/users/Pugwash1/received_events","type":"User","site_admin":false},"created_at":"2018-11-30T14:05:11Z","updated_at":"2018-11-30T14:05:11Z","author_association":"CONTRIBUTOR","body":"@pabender I will have something by the end of day (EST), just working on the tests."}}
{"actor":{"display_login":"Pugwash1"}}