{"action":"created","issue":{"url":"https://api.github.com/repos/nrobinson2000/po-util/issues/7","repository_url":"https://api.github.com/repos/nrobinson2000/po-util","labels_url":"https://api.github.com/repos/nrobinson2000/po-util/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/nrobinson2000/po-util/issues/7/comments","events_url":"https://api.github.com/repos/nrobinson2000/po-util/issues/7/events","html_url":"https://github.com/nrobinson2000/po-util/issues/7","id":158546475,"number":7,"title":"Device goes into DFU mode unintentionally when opening serial port on Linux","user":{"login":"nrobinson2000","id":9864152,"avatar_url":"https://avatars.githubusercontent.com/u/9864152?v=3","gravatar_id":"","url":"https://api.github.com/users/nrobinson2000","html_url":"https://github.com/nrobinson2000","followers_url":"https://api.github.com/users/nrobinson2000/followers","following_url":"https://api.github.com/users/nrobinson2000/following{/other_user}","gists_url":"https://api.github.com/users/nrobinson2000/gists{/gist_id}","starred_url":"https://api.github.com/users/nrobinson2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrobinson2000/subscriptions","organizations_url":"https://api.github.com/users/nrobinson2000/orgs","repos_url":"https://api.github.com/users/nrobinson2000/repos","events_url":"https://api.github.com/users/nrobinson2000/events{/privacy}","received_events_url":"https://api.github.com/users/nrobinson2000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-06-05T09:43:22Z","updated_at":"2016-06-09T10:00:05Z","closed_at":null,"body":"I did some testing for po-util on my Linux Mint desktop yesterday.  Everything went smoothly, except for when I tried running `po serial` after using any of my DFU commands that make use of `stty` to change the baud rate to `19200`.\r\n\r\n* My DFU commands do `stty -F /dev/ttyACM0 19200` to put my Particle devices into DFU mode.\r\n* `po serial` simply does `screen -S particle /dev/ttyACM0` to open up a serial monitor.\r\n\r\nI can do `po dfu-close`, which gets device out of DFU mode by writing null bytes to it, but `po serial` still puts the device into DFU mode.\r\n\r\n**The only solution I have found is to unplug and plug in the USB cable several times, and then `po serial` behaves normally.**\r\n\r\n@mrmowgli, can you try this on your Linux machine?  Update po-util and then try doing `po dfu-open` and `po serial`, using a device with the `19200` DFU baud rate patch."},"comment":{"url":"https://api.github.com/repos/nrobinson2000/po-util/issues/comments/224851570","html_url":"https://github.com/nrobinson2000/po-util/issues/7#issuecomment-224851570","issue_url":"https://api.github.com/repos/nrobinson2000/po-util/issues/7","id":224851570,"user":{"login":"nrobinson2000","id":9864152,"avatar_url":"https://avatars.githubusercontent.com/u/9864152?v=3","gravatar_id":"","url":"https://api.github.com/users/nrobinson2000","html_url":"https://github.com/nrobinson2000","followers_url":"https://api.github.com/users/nrobinson2000/followers","following_url":"https://api.github.com/users/nrobinson2000/following{/other_user}","gists_url":"https://api.github.com/users/nrobinson2000/gists{/gist_id}","starred_url":"https://api.github.com/users/nrobinson2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrobinson2000/subscriptions","organizations_url":"https://api.github.com/users/nrobinson2000/orgs","repos_url":"https://api.github.com/users/nrobinson2000/repos","events_url":"https://api.github.com/users/nrobinson2000/events{/privacy}","received_events_url":"https://api.github.com/users/nrobinson2000/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T10:00:05Z","updated_at":"2016-06-09T10:00:05Z","body":"I just looked, and BINDIR is not saved to the settings file.\r\n```\r\nf [ ! -f $SETTINGS ]\r\nthen\r\n  echo BASE_FIRMWARE=\"$BASE_FIRMWARE\" >> $SETTINGS\r\n  echo BRANCH=\"latest\" >> $SETTINGS\r\n  echo PARTICLE_DEVELOP=1 >> $SETTINGS\r\n  echo BINDIR=\"$BINDIR\"\r\nfi\r\n```\r\nI'll try fixing this."}}
{"actor":{"display_login":"nrobinson2000"}}