So it is infact running from Cloud9. The *debugger is running at port 15454 * is the default message from the Cloud9 NodeJS runner. Nothing wrong with this so far. It is not printing anything after that. It means that there is not syntactical error, but there could be a semantical error. i.e. either stream.once is not being able to open the stream or the serialport is not sending any data.
There are a few ways to try to remedy it, if infact it is a NodeJS issue. There is a very big chance that your sensor wiring is incorrect, or any of the other million things that can be wrong with the hardware. We will get to that if this doesnt work. Try using console.log to print out the variables, or states of system. Use breakpoint, pause the execution and watch the values in your variables. Also, have a error catching mechanism like described here: http://fredkschott.com/post/2014/03/understanding-error-first-callbacks-in-node-js/ This way when any of your stream.once or port.on('data' give an error, you would know, rather than this silent treatment by the runner. Start from scratch, reconnect all wires, read all specs to see that they are in-sync, and then try again. And repeat. On Friday, August 19, 2016 at 3:53:59 AM UTC-7, [email protected] wrote: > > here is the screenshot: https://s4.postimg.org/5hql3xqe5/js_Error.jpg > > On Thursday, August 18, 2016 at 8:08:12 PM UTC-4, Chintan Pathak wrote: >> >> This is not enough information to answer your question. >> >> What is the source of the js file ? If possible share its contents. >> >> JS can run on server as well as client. If you plan to run it on BBB with >> an output of Debugger listen... its most probably a serverside (NodeJS) >> file. How are you running it through Cloud9 ? Describe your steps, maybe >> attach screenshot. What output are you expecting ? >> >> On Thursday, August 18, 2016 at 6:53:41 AM UTC-7, [email protected] >> wrote: >>> >>> I have been trying to run a JavaScript file on the BeagleBone Black >>> (Cayenne radar module) and I keep getting the message >>> >>> Debugger Listening on Port 15454 >>> >>> when I run the js file on the cloud9 ide, it doesn't seem to be doing >>> anything. >>> >>> Anyone have any ideas on how to fix this? >>> >> -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/a7aae158-fe46-4638-819e-56f72db9bdb9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
