{"action":"created","issue":{"url":"https://api.github.com/repos/jmendeth/parport.js/issues/4","labels_url":"https://api.github.com/repos/jmendeth/parport.js/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/jmendeth/parport.js/issues/4/comments","events_url":"https://api.github.com/repos/jmendeth/parport.js/issues/4/events","html_url":"https://github.com/jmendeth/parport.js/issues/4","id":58941170,"number":4,"title":"Once port is set to reverse (input) unable to set back to forward (output)","user":{"login":"humblewizard","id":771347,"avatar_url":"https://avatars.githubusercontent.com/u/771347?v=3","gravatar_id":"","url":"https://api.github.com/users/humblewizard","html_url":"https://github.com/humblewizard","followers_url":"https://api.github.com/users/humblewizard/followers","following_url":"https://api.github.com/users/humblewizard/following{/other_user}","gists_url":"https://api.github.com/users/humblewizard/gists{/gist_id}","starred_url":"https://api.github.com/users/humblewizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humblewizard/subscriptions","organizations_url":"https://api.github.com/users/humblewizard/orgs","repos_url":"https://api.github.com/users/humblewizard/repos","events_url":"https://api.github.com/users/humblewizard/events{/privacy}","received_events_url":"https://api.github.com/users/humblewizard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-25T17:43:13Z","updated_at":"2015-03-01T05:27:12Z","closed_at":null,"body":"Upon startup the output port is working properly as an output. After setting the control register C5 to reverse then data can be read successfully on the port:\r\n\r\n         port.writeControl(32);   // set C5\r\n         var data = port.readData(); \r\n\r\nNow is the trouble:\r\n\r\n         port.writeControl(0);   // clear C5\r\n         port.writeData(255);\r\n\r\nThis does nothing. I can see from monitoring the external pins that the port is still in reverse mode/ tristated. \r\n\r\nWhen I stop the process and restart then the port comes up in forward (output) direction until the C5 is set again. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jmendeth/parport.js/issues/comments/76575144","html_url":"https://github.com/jmendeth/parport.js/issues/4#issuecomment-76575144","issue_url":"https://api.github.com/repos/jmendeth/parport.js/issues/4","id":76575144,"user":{"login":"humblewizard","id":771347,"avatar_url":"https://avatars.githubusercontent.com/u/771347?v=3","gravatar_id":"","url":"https://api.github.com/users/humblewizard","html_url":"https://github.com/humblewizard","followers_url":"https://api.github.com/users/humblewizard/followers","following_url":"https://api.github.com/users/humblewizard/following{/other_user}","gists_url":"https://api.github.com/users/humblewizard/gists{/gist_id}","starred_url":"https://api.github.com/users/humblewizard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humblewizard/subscriptions","organizations_url":"https://api.github.com/users/humblewizard/orgs","repos_url":"https://api.github.com/users/humblewizard/repos","events_url":"https://api.github.com/users/humblewizard/events{/privacy}","received_events_url":"https://api.github.com/users/humblewizard/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T05:27:12Z","updated_at":"2015-03-01T05:27:12Z","body":"The node-lpt formerly had this same issue. Because Denis no longer had a parallel port to play with he sent me some c files to experiment with and as a result he found the problem. His tool node-lpt no longer has this issue. \r\n\r\nThe problem with parport.js is the same using two different Ubuntu platforms having parallel cards from different manufacturers. "}}