{"action":"created","issue":{"url":"https://api.github.com/repos/mikerodrigues/onkyo_eiscp_ruby/issues/8","labels_url":"https://api.github.com/repos/mikerodrigues/onkyo_eiscp_ruby/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/mikerodrigues/onkyo_eiscp_ruby/issues/8/comments","events_url":"https://api.github.com/repos/mikerodrigues/onkyo_eiscp_ruby/issues/8/events","html_url":"https://github.com/mikerodrigues/onkyo_eiscp_ruby/issues/8","id":60582707,"number":8,"title":"Simple commands do not work with onkyo TX-NR636","user":{"login":"cyberic99","id":193917,"avatar_url":"https://avatars.githubusercontent.com/u/193917?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberic99","html_url":"https://github.com/cyberic99","followers_url":"https://api.github.com/users/cyberic99/followers","following_url":"https://api.github.com/users/cyberic99/following{/other_user}","gists_url":"https://api.github.com/users/cyberic99/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberic99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberic99/subscriptions","organizations_url":"https://api.github.com/users/cyberic99/orgs","repos_url":"https://api.github.com/users/cyberic99/repos","events_url":"https://api.github.com/users/cyberic99/events{/privacy}","received_events_url":"https://api.github.com/users/cyberic99/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-10T22:50:23Z","updated_at":"2015-03-11T20:53:15Z","closed_at":null,"body":"It seems that  the new models are more strict regarding the header parsing.\r\nsee here:\r\nhttps://github.com/paulianttila/openhab/commit/31cfe657903f44d3808d28fdac1be3c5ebc0bd68\r\n\r\nWhen I send a PWRQSTN to my TX-NR636, I get this:\r\n```\r\n$ ./onkyo.rb PWRQSTN\r\n/home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/message.rb:60:in 'initialize': No value specified. (RuntimeError)\r\n\tfrom /home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/parser/iscp_parser.rb:23:in 'new'\r\n\tfrom /home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/parser/iscp_parser.rb:23:in 'parse'\r\n\tfrom /home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/parser.rb:16:in 'parse'\r\n\tfrom /home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/receiver.rb:164:in 'send_recv'\r\n\tfrom ./onkyo.rb:149:in '<main>'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mikerodrigues/onkyo_eiscp_ruby/issues/comments/78369007","html_url":"https://github.com/mikerodrigues/onkyo_eiscp_ruby/issues/8#issuecomment-78369007","issue_url":"https://api.github.com/repos/mikerodrigues/onkyo_eiscp_ruby/issues/8","id":78369007,"user":{"login":"cyberic99","id":193917,"avatar_url":"https://avatars.githubusercontent.com/u/193917?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberic99","html_url":"https://github.com/cyberic99","followers_url":"https://api.github.com/users/cyberic99/followers","following_url":"https://api.github.com/users/cyberic99/following{/other_user}","gists_url":"https://api.github.com/users/cyberic99/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberic99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberic99/subscriptions","organizations_url":"https://api.github.com/users/cyberic99/orgs","repos_url":"https://api.github.com/users/cyberic99/repos","events_url":"https://api.github.com/users/cyberic99/events{/privacy}","received_events_url":"https://api.github.com/users/cyberic99/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T20:53:15Z","updated_at":"2015-03-11T20:53:15Z","body":"Hello again\r\n\r\nI have made a quick patch to iscp_parser.rb to print the amp answers:\r\n\r\n\r\n-        Message.new(**hash)\r\n+        print(string.gsub(/[^[:print:]]/,'.'))\r\n+       print(\" | \")\r\n+        print(string.bytes.to_a.map { |n| \"%02x\" % n }.join(\" \"))\r\n+        a = Message.new(**hash)\r\n+       print(\"\\n\")\r\n+       a\r\n\r\nMaybe you could add a command line flag to see the content of the packets?\r\nI get this:\r\n\r\n$ ./onkyo.rb PWR01\r\n!1ECNTX-NR636/60128/XX/0009B0D3E931... | 21 31 45 43 4e 54 58 2d 4e 52 36 33 36 2f 36 30 31 32 38 2f 58 58 2f 30 30 30 39 42 30 44 33 45 39 33 31 19 0d 0a\r\nPWR01 | 50 57 52 30 31\r\n!1NLT0101000000280100FF0100My Favorites... | 21 31 4e 4c 54 30 31 30 31 30 30 30 30 30 30 32 38 30 31 30 30 46 46 30 31 30 30 4d 79 20 46 61 76 6f 72 69 74 65 73 1a 0d 0a\r\n!1NLSC0P... | 21 31 4e 4c 53 43 30 50 1a 0d 0a\r\n!1NLSU0-nectarine... | 21 31 4e 4c 53 55 30 2d 6e 65 63 74 61 72 69 6e 65 1a 0d 0a\r\n!1NLSU1----... | 21 31 4e 4c 53 55 31 2d 2d 2d 2d 1a 0d 0a\r\n!1NLSU2----... | 21 31 4e 4c 53 55 32 2d 2d 2d 2d 1a 0d 0a\r\n!1NLSU3----... | 21 31 4e 4c 53 55 33 2d 2d 2d 2d 1a 0d 0a\r\n!1NLSU4----... | 21 31 4e 4c 53 55 34 2d 2d 2d 2d 1a 0d 0a\r\n!1NLSU5----... | 21 31 4e 4c 53 55 35 2d 2d 2d 2d 1a 0d 0a\r\nPWR | 50 57 52/home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/message.rb:60:in `initialize': No value specified. (RuntimeError)\r\n\tfrom /home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/parser/iscp_parser.rb:26:in `new'\r\n\tfrom /home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/parser/iscp_parser.rb:26:in `parse'\r\n\tfrom /home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/parser.rb:16:in `parse'\r\n\tfrom /home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/receiver.rb:164:in `send_recv'\r\n\tfrom ./onkyo.rb:149:in `<main>'\r\n\r\nI don' t understand where the 'PWR' comes from\r\nAnd the NLS command seems to be unknown\r\n\r\nthe network capture is included, both ways now ;-)\r\n.36 is the amp, and .10 is my computer\r\n\r\nI will try to contribute better than that, after this crash is solved\r\n\r\nThanks\r\nEric\r\n![cap2 pcapng](https://cloud.githubusercontent.com/assets/193917/6606587/df46cfa0-c838-11e4-8440-80634a1cf08a.png)\r\n\r\n"}}