Decode a CAN frame in node.js web server
Posted: Mon 27. Feb 2017, 13:15
Hello,
I would like to communicate between the PCAN Ethernet Gateway and my own web application on my computer. To do so, I deactivated the handshake as explained in the user manual. However, I am not able to make my application work and to decode the CAN data that is encapsulated in the Ethernet frame. I can read some data but it's completely encoded and the server cannot display an understandable message in log. I did look at the C# example you provided but in my case I have to write this driver in node.js. I tried using a raw-socket package but it’s not clear to me... Would you have by any chance an application example in JavaScript or know what the problem might be ? Thanks in advance.
I would like to communicate between the PCAN Ethernet Gateway and my own web application on my computer. To do so, I deactivated the handshake as explained in the user manual. However, I am not able to make my application work and to decode the CAN data that is encapsulated in the Ethernet frame. I can read some data but it's completely encoded and the server cannot display an understandable message in log. I did look at the C# example you provided but in my case I have to write this driver in node.js. I tried using a raw-socket package but it’s not clear to me... Would you have by any chance an application example in JavaScript or know what the problem might be ? Thanks in advance.