{"action":"created","issue":{"url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/509","labels_url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/509/labels{/name}","comments_url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/509/comments","events_url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/509/events","html_url":"https://github.com/voodootikigod/node-serialport/issues/509","id":69335319,"number":509,"title":"Issue With Reading/Writing Between Two Beaglebones","user":{"login":"csemiles","id":6424090,"avatar_url":"https://avatars.githubusercontent.com/u/6424090?v=3","gravatar_id":"","url":"https://api.github.com/users/csemiles","html_url":"https://github.com/csemiles","followers_url":"https://api.github.com/users/csemiles/followers","following_url":"https://api.github.com/users/csemiles/following{/other_user}","gists_url":"https://api.github.com/users/csemiles/gists{/gist_id}","starred_url":"https://api.github.com/users/csemiles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csemiles/subscriptions","organizations_url":"https://api.github.com/users/csemiles/orgs","repos_url":"https://api.github.com/users/csemiles/repos","events_url":"https://api.github.com/users/csemiles/events{/privacy}","received_events_url":"https://api.github.com/users/csemiles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-18T18:29:19Z","updated_at":"2015-04-18T19:01:37Z","closed_at":null,"body":"I am using node-serialport to communicate between two Beaglebone Blacks connected via a Crossover RS232 cable and some serial capes.\r\n\r\n\r\n     var serialPort;\r\n     var connectToController = function() {\r\n    \r\n    serialPort = new SerialPort(\"/dev/ttyO0\", {\r\n        baudrate: 9600,\r\n        parser: serialport.parsers.readline(\"\\n\")\r\n    }, false);\r\n\r\n    serialPort.open(function (error) {\r\n        if(error) { \r\n            console.log(\"Error occurred: \" + error + \"\\n\");\r\n            attemptReconnect();\r\n        }\r\n        else{ \r\n            serialPort.on('data', function(data) {\r\n            console.log(\"data:\" + data);\r\n            });\r\n        }   \r\n    });\r\n    serialPort.on(\"close\", function () {\r\n        attemptReconnect();\r\n    });\r\n    };\r\n\r\nOn both Beaglebones I am running code similar to above, but each of them have write capabilities as well. For some reason, I can only receive messages on one of the Beaglebones whenever I am attempting communication. Does node-serialport support read/write capability at the same time, or is there something wrong with my code?"},"comment":{"url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/comments/94191795","html_url":"https://github.com/voodootikigod/node-serialport/issues/509#issuecomment-94191795","issue_url":"https://api.github.com/repos/voodootikigod/node-serialport/issues/509","id":94191795,"user":{"login":"jacobrosenthal","id":455796,"avatar_url":"https://avatars.githubusercontent.com/u/455796?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobrosenthal","html_url":"https://github.com/jacobrosenthal","followers_url":"https://api.github.com/users/jacobrosenthal/followers","following_url":"https://api.github.com/users/jacobrosenthal/following{/other_user}","gists_url":"https://api.github.com/users/jacobrosenthal/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobrosenthal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobrosenthal/subscriptions","organizations_url":"https://api.github.com/users/jacobrosenthal/orgs","repos_url":"https://api.github.com/users/jacobrosenthal/repos","events_url":"https://api.github.com/users/jacobrosenthal/events{/privacy}","received_events_url":"https://api.github.com/users/jacobrosenthal/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T19:01:37Z","updated_at":"2015-04-18T19:01:37Z","body":"Where is the code that actually sends something. You're using a new line parser, are you sure that the .write of data ends with a newline? onData wont return otherwise. Do you have a common ground?"}}