PaulPonomarev
PaulPonomarev

Reputation: 373

SocketCAN in node.js

I use ARM board with embedded Linux on it, but it is very limited. Somehow I managed to install node.js and npm. The idea is to send data via CAN bus on button click event from the web page. I have found only one module called "socketcan", but I cannot install it due to following lines:

npm install -g node-gyp
node-gyp configure && node-gyp build

My board fails to execute the first line, that means I can't use the only found CAN tool for node.js. Is there any other possibility to read and write messages on CAN bus from node.js?

Upvotes: 0

Views: 1760

Answers (1)

AnnaBanana
AnnaBanana

Reputation: 131

Socketcan doesn't work on the lattest Nodejs. I've got the same problem. Just install a Node.js version 0.10.x. For the arm7 you can get it from this page :

Conor O'Neills Page: http://conoroneill.net/

Thanks to Conor O'Neill you can download it on his Page and install socketcan without getting any errors. At the moment, I am struggeling how socketcan works in express-generate. So if someone has clue. I would appreciate it.

Upvotes: 2

Related Questions