Open JohanBraeken opened 4 years ago
Hi sorry to here that you have trouble with it. I have several running with that setup here so it should work AFAIK.
if you can telnet into the remote daemon from the node-red machine and see the events when you issue "rcvloop" then something is definitly strange in the vscp-tcp-in. The only thing I can think of that could do this is the "filter" setting. If no filter is defined you should get everything. Is it setup like this
or do you have a filter defined?
/Ake
On 2020-08-24 07:15, JohanBraeken wrote:
I have a VSCP daemon (v14.0.4, latest release) connected to a CAN bus. The CAN bus is fully functional and VSCPworks displays all events on the CAN interface correctly.
I'm trying to get all VSCP events from this CAN bus into Node-RED through the "vscp tcp in" node. (v1.2.1, on Node-RED 7.1.0) However, it seems I only get events originating from the VSCP demon itself. (Heartbeat, Node_heartbeat, and SEGCTRL_hearbeat.)
As described on https://grodansparadis.com/wordpress/?p=4517 I assume I should be able to see the VSCP events from the CAN bus.
Node-RED and the VSCP daemon are not on the same machine, however the connection seems OK. Investigating the traffic between both systems reveals all events from the CAN bus are effectively forwarded from the VSCP daemon to the Node-RED system after the "rcvloop"-command is issued, so it looks like these messages are filtered on the Node-RED side.
Playing with the interface setting on the node configuration doesn't seem to make any difference. Specifically setting the interface to the CAN interface of the VSCP daemon, still gets me the VSCP events from the daemon itself, and not the events on that interface. Even when setting the interface to one where there shouldn't be any traffic, I continue to get the events from the daemon itself. So I suspect something is not working correctly.
How can I troubleshoot this further?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/grodansparadis/node-red-contrib-vscp-tcp/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKLYI7K4M5FEOQD3QMVCTTSCHZOBANCNFSM4QJDBRCQ.
-- Be Hungry - Stay Foolish! Åke Hedman, Grodans Paradis AB / Paradise of the Frog Brattbergavägen 17, 82050 LOS, SWEDEN, +46 8 40011835 http://www.grodansparadis.com http://www.vscp.org http://www.akehedman.se
I tried several things. I left the "interface" part blank and didn't specify a filter.
[{"id":"a530e0c6.7120d","type":"vscp-tcp-in","z":"27dd85db.b33fba","name":"VSCP in","host":"3da05007.219a6","username":"admin","password":"__PWRD__","filter":"","keyctx":"test","x":120,"y":140,"wires":[["4446f369.ea7c9c"]]},{"id":"4446f369.ea7c9c","type":"debug","z":"27dd85db.b33fba","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":330,"y":140,"wires":[]},{"id":"3da05007.219a6","type":"vscp-tcp-config-host","z":"","name":"Johan","host":"192.168.42.50","port":"9598","timeout":"10000","interface":"","keepalive":""}]
I've also create a filter with all "0", but that didn't work either.
[{"id":"a530e0c6.7120d","type":"vscp-tcp-in","z":"27dd85db.b33fba","name":"VSCP in","host":"3da05007.219a6","username":"admin","password":"__PWRD__","filter":"efedea4c.617ea8","keyctx":"test","x":120,"y":140,"wires":[["4446f369.ea7c9c"]]},{"id":"4446f369.ea7c9c","type":"debug","z":"27dd85db.b33fba","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":330,"y":140,"wires":[]},{"id":"3da05007.219a6","type":"vscp-tcp-config-host","z":"","name":"Johan","host":"192.168.42.50","port":"9598","timeout":"10000","interface":"","keepalive":""},{"id":"efedea4c.617ea8","type":"vscp-tcp-config-filter","z":"","name":"No filter","filterPriority":"0","maskPriority":"0","filterClass":"0","maskClass":"0","filterType":"0","maskType":"0","filterGuid":"00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00","maskGuid":"00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00"}]
Strange it is. I can import your flow, change the remote host to one of mine and it works as expected. What puzzles me is that you get only the heartbeats from the server. In my experience the most common cause for just getting them is that the a driver does not work on the daemon and is not delivering any events. But if rcvloop in telnet give you the missing events I actually have no clue for the cause of this. If you didn't get any events at all I would have suspected the filter but as you do it must be something else.
Need to think about this one. It's not obvious to be what make this behavior.
On 2020-08-24 08:37, JohanBraeken wrote:
I tried several things. I left the "interface" part blank and didn't specify a filter.
|[{"id":"a530e0c6.7120d","type":"vscp-tcp-in","z":"27dd85db.b33fba","name":"VSCP in","host":"3da05007.219a6","username":"admin","password":"PWRD","filter":"","keyctx":"test","x":120,"y":140,"wires":[["4446f369.ea7c9c"]]},{"id":"4446f369.ea7c9c","type":"debug","z":"27dd85db.b33fba","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":330,"y":140,"wires":[]},{"id":"3da05007.219a6","type":"vscp-tcp-config-host","z":"","name":"Johan","host":"192.168.42.50","port":"9598","timeout":"10000","interface":"","keepalive":""}]|
I've also create a filter with all "0", but that didn't work either.
|[{"id":"a530e0c6.7120d","type":"vscp-tcp-in","z":"27dd85db.b33fba","name":"VSCP in","host":"3da05007.219a6","username":"admin","password":"PWRD","filter":"efedea4c.617ea8","keyctx":"test","x":120,"y":140,"wires":[["4446f369.ea7c9c"]]},{"id":"4446f369.ea7c9c","type":"debug","z":"27dd85db.b33fba","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":330,"y":140,"wires":[]},{"id":"3da05007.219a6","type":"vscp-tcp-config-host","z":"","name":"Johan","host":"192.168.42.50","port":"9598","timeout":"10000","interface":"","keepalive":""},{"id":"efedea4c.617ea8","type":"vscp-tcp-config-filter","z":"","name":"No filter","filterPriority":"0","maskPriority":"0","filterClass":"0","maskClass":"0","filterType":"0","maskType":"0","filterGuid":"00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00","maskGuid":"00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00"}]|
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grodansparadis/node-red-contrib-vscp-tcp/issues/3#issuecomment-678934563, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKLYI6AW3JQCAU34IWMERTSCIDA3ANCNFSM4QJDBRCQ.
-- Be Hungry - Stay Foolish! Åke Hedman, Grodans Paradis AB / Paradise of the Frog Brattbergavägen 17, 82050 LOS, SWEDEN, +46 8 40011835 http://www.grodansparadis.com http://www.vscp.org http://www.akehedman.se
Hi again,
still trying to repeat this. You write you use node-red version 7.1.0 do you mean the version of node there? What version of node-red are you running?
Cheers /Ake
On 2020-08-24 07:15, JohanBraeken wrote:
I have a VSCP daemon (v14.0.4, latest release) connected to a CAN bus. The CAN bus is fully functional and VSCPworks displays all events on the CAN interface correctly.
I'm trying to get all VSCP events from this CAN bus into Node-RED through the "vscp tcp in" node. (v1.2.1, on Node-RED 7.1.0) However, it seems I only get events originating from the VSCP demon itself. (Heartbeat, Node_heartbeat, and SEGCTRL_hearbeat.)
As described on https://grodansparadis.com/wordpress/?p=4517 I assume I should be able to see the VSCP events from the CAN bus.
Node-RED and the VSCP daemon are not on the same machine, however the connection seems OK. Investigating the traffic between both systems reveals all events from the CAN bus are effectively forwarded from the VSCP daemon to the Node-RED system after the "rcvloop"-command is issued, so it looks like these messages are filtered on the Node-RED side.
Playing with the interface setting on the node configuration doesn't seem to make any difference. Specifically setting the interface to the CAN interface of the VSCP daemon, still gets me the VSCP events from the daemon itself, and not the events on that interface. Even when setting the interface to one where there shouldn't be any traffic, I continue to get the events from the daemon itself. So I suspect something is not working correctly.
How can I troubleshoot this further?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/grodansparadis/node-red-contrib-vscp-tcp/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKLYI7K4M5FEOQD3QMVCTTSCHZOBANCNFSM4QJDBRCQ.
-- Be Hungry - Stay Foolish! Åke Hedman, Grodans Paradis AB / Paradise of the Frog Brattbergavägen 17, 82050 LOS, SWEDEN, +46 8 40011835 http://www.grodansparadis.com http://www.vscp.org http://www.akehedman.se
Hi,
For Node-RED, it is actually version 1.1.3. I'm running it as an add-on within HomeAssistant and I communicated the add-on version.
Also, it turned out I was actually using VSCP version 12, instead of 14. 14 was installed, but the old binary was still being used. I'm in the process of upgrading, but have some issues with the socketcan driver now.
If it is normal the nodes for Node-RED are not supposed to work with VSCP v12, then it is not a bug.
On 2020-08-30 14:32, JohanBraeken wrote:
Hi,
For Node-RED, it is actually version 1.1.3. I'm running it as an add-on within HomeAssistant and I communicated the add-on version.
Also, it turned out I was actually using VSCP version 12, instead of
- 14 was installed, but the old binary was still being used. I'm in the process of upgrading, but have some issues with the socketcan driver now.
If it is normal the nodes for Node-RED are not supposed to work with VSCP v12, then it is not a bug.
OK Thanks. I think the node-red stuff should work with version 12 also. I make a note about that. Thanks
/Ake
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grodansparadis/node-red-contrib-vscp-tcp/issues/3#issuecomment-683414977, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKLYI4BOTWTPJW5YPTFX2LSDJBEPANCNFSM4QJDBRCQ.
-- Be Hungry - Stay Foolish! Åke Hedman, Grodans Paradis AB / Paradise of the Frog Brattbergavägen 17, 82050 LOS, SWEDEN, +46 8 40011835 http://www.grodansparadis.com http://www.vscp.org http://www.akehedman.se
FYI:
This is what is being sent between VSCP 1.12.4.0 (Magnesium) and Node-RED and how it is displayed. (All taken roughly at the same time.)
It seems the GUID displayed in Node-RED (vscpGuid) is actually the byte after the actual GUID.
Example: The event with Class 1026, type 2 seems to come from GUID '85' in Node-RED. In the datadump '85' happens to be the data that is sent after the actual GUID. The same for vscpGuid "30", etc...
I can confirm the Node-RED integration for "vscp-tcp-in" works correctly with version 14 (Silicon) of VSCP daemon. So looks like the dataformat has changed slightly.
(If it is relevant: I also switched from SocketCAN level 2 in version 12 to SocketCAN level 1 in version 14.)
Welcome to the VSCP daemon. Version: 1.12.4.0 Magnesium Copyright (C) 2000-2016, Grodans Paradis AB, http://www.paradiseofthefrog.com +OK - Success. user admin +OK - User name accepted, password please pass secret +OK - Success. noop +OK - Success. chid 52 +OK - Success. getguid FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:34:00:00 +OK - Success. setfilter 0x0,0x0,0x0,00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 +OK - Success. setmask 0x0,0x0,0x0,00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 +OK - Success. rcvloop +OK - Receive loop entered. QUITLOOP to terminate. 0,0,11,7,525687946,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,6,2,0 0,20,4,2,525687952,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,0,6,1 0,0,10,2,525687953,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,2,0 0,0,11,7,525688136,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,6,4,0 0,20,4,2,525688140,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,2,6,3 0,0,10,2,525688140,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,4,0 0,0,11,7,525688340,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,8,0 0,20,4,2,525688345,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,6,6,7 0,0,10,2,525688345,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,8,0 0,0,11,7,525688533,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,9,2,0 0,20,4,2,525688541,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:09,0,6,0 0,0,10,2,525688542,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:09,2,0 0,0,11,7,525688719,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,6,0 0,20,4,2,525688724,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,4,6,5 0,0,10,2,525688725,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,6,0 0,0,11,7,525688907,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,6,7,0 0,20,4,2,525688914,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,5,6,6 0,0,10,2,525688915,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,7,0 0,0,11,7,525688985,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,6,3,1 0,20,3,2,525688992,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,1,6,2 0,0,10,2,525688992,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,3,1 0,0,11,7,525689120,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,6,8,0 0,20,4,2,525689128,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,6,6,7 0,0,10,2,525689129,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,8,0 0,0,11,7,525689195,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,6,5,1 0,20,3,2,525689200,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,3,6,4 0,0,10,2,525689201,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,5,1 0,0,11,7,525689326,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,5,0 0,20,4,2,525689334,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,3,6,12 0,0,10,2,525689334,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,5,0 0,0,11,7,525689400,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,9,1 0,20,3,2,525689406,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,7,6,8 0,0,10,2,525689406,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,9,1 0,0,11,7,525689533,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,6,0 0,20,4,2,525689548,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,4,6,13 0,0,10,2,525689548,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,6,0 0,0,11,7,525689552,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,9,3,1 0,20,3,2,525689561,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:09,1,6,0 0,0,10,2,525689562,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:09,3,1 0,0,11,7,525689740,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,8,0 +OK 0,20,4,2,525689763,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,6,6,15 0,0,10,2,525689763,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,8,0 0,0,11,7,525689776,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,7,1 0,20,3,2,525689781,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,5,6,6 0,0,10,2,525689782,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,7,1 0,0,11,7,525689966,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,2,0 0,20,4,2,525689975,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,0,6,1 0,0,10,2,525689975,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,2,0 0,0,11,7,525690163,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,4,0 0,20,4,2,525690168,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,2,6,3 0,0,10,2,525690169,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,4,0 0,20,9,2,525690174,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:21,0,16,0 0,0,11,7,525690362,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,2,0 0,20,4,2,525690370,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,0,6,9 0,0,10,2,525690371,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,2,0 0,0,11,7,525690602,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,7,1 0,20,3,2,525690606,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,5,6,14 0,0,10,2,525690606,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,7,1 0,0,11,7,525690790,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,9,1 0,20,3,2,525690797,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,7,6,16 0,0,10,2,525690797,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,9,1 0,0,11,7,525691022,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,3,1 0,20,3,2,525691030,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,1,6,2 0,0,10,2,525691031,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,3,1 0,0,11,7,525691197,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,5,1 0,20,3,2,525691205,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,3,6,4 0,0,10,2,525691205,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,5,1 0,0,11,7,525691384,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,3,1 0,20,3,2,525691391,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,1,6,10 0,0,10,2,525691391,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,3,1 0,20,9,2,525691684,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:25,0,16,0 +OK 0,20,9,2,525694014,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:2E,0,0,0 +OK 0,20,9,2,525696915,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:30,0,0,0 +OK 0,20,4,2,525700871,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,4,6,5 0,20,4,2,525700873,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,6,6,7 +OK 0,20,9,2,525704135,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:29,0,16,0 0,20,9,2,525704785,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:0A,0,16,0 +OK 0,20,9,2,525705911,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,0,6,0 +OK +OK 0,20,4,2,525710951,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,1,6,2 0,20,9,2,525711760,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:0E,0,0,0 0,20,9,2,525713456,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:0D,0,16,0 +OK 0,20,9,2,525715764,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:23,0,16,0 +OK 0,20,9,2,525718273,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:2A,0,16,0 0,20,9,2,525718684,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:26,0,16,0 +OK 0,20,9,2,525720501,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:2B,0,0,0 0,20,4,2,525722479,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,1,6,2 0,20,4,2,525722479,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,3,6,4 0,20,9,2,525722745,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:32,0,16,0 +OK 0,20,4,2,525722956,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:09,1,6,0 0,20,4,2,525723046,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,5,6,6 0,20,4,2,525723047,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,7,6,8 0,20,9,1,8,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:01:00:00,0,1,2 0,1026,2,1,8,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:01:00:00,85,110,105,120,32,86,83,67,80,32,83,101,114,118,101,114,0,0,1,0,0,0,0,0,69,0,0,0,0,0,0,0,120,151,102,0,0,0,0,0,24,1,0,16,108,127,0,0,80,212,0,16,108,127,0,0,16,215,0,16,108,127,0,0 0,20,9,2,525724087,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:31,0,16,0 0,0,1,1,8,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:01:00:00,30,95,67,180,246 0,20,4,2,525724440,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,1,6,10 0,20,4,2,525724443,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,7,6,16 0,20,4,2,525724443,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,5,6,14 0,20,4,2,525725062,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,3,6,4 +OK 0,20,9,2,525726912,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:2D,0,16,0 0,20,9,2,525727464,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,0,6,0 +OK 0,20,9,2,525729003,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:09,0,16,0 0,20,9,2,525729424,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:0B,0,16,0
Thanks, valuable info. I will look into this.
Cheers /Ake
On 2020-08-31 10:04, JohanBraeken wrote:
FYI:
This is what is being sent between VSCP 1.12.4.0 (Magnesium) and Node-RED and how it is displayed. (All taken roughly at the same time.)
It seems the GUID displayed in Node-RED (vscpGuid) is actually the byte after the actual GUID.
Example: The event with Class 1026, type 2 seems to come from GUID '85' in Node-RED. In the datadump '85' happens to be the data that is sent after the actual GUID. The same for vscpGuid "30", etc...
I can confirm the Node-RED integration for "vscp-tcp-in" works correctly with version 14 (Silicon) of VSCP daemon. So looks like the dataformat has changed slightly.
(If it is relevant: I also switched from SocketCAN level 2 in version 12 to SocketCAN level 1 in version 14.)
|Welcome to the VSCP daemon. Version: 1.12.4.0 Magnesium Copyright (C) 2000-2016, Grodans Paradis AB, http://www.paradiseofthefrog.com +OK - Success. user admin +OK - User name accepted, password please pass secret +OK - Success. noop +OK - Success. chid 52 +OK - Success. getguid FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:34:00:00 +OK - Success. setfilter 0x0,0x0,0x0,00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 +OK - Success. setmask 0x0,0x0,0x0,00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 +OK - Success. rcvloop +OK - Receive loop entered. QUITLOOP to terminate. 0,0,11,7,525687946,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,6,2,0 0,20,4,2,525687952,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,0,6,1 0,0,10,2,525687953,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,2,0 0,0,11,7,525688136,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,6,4,0 0,20,4,2,525688140,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,2,6,3 0,0,10,2,525688140,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,4,0 0,0,11,7,525688340,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,8,0 0,20,4,2,525688345,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,6,6,7 0,0,10,2,525688345,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,8,0 0,0,11,7,525688533,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,9,2,0 0,20,4,2,525688541,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:09,0,6,0 0,0,10,2,525688542,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:09,2,0 0,0,11,7,525688719,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,6,0 0,20,4,2,525688724,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,4,6,5 0,0,10,2,525688725,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,6,0 0,0,11,7,525688907,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,6,7,0 0,20,4,2,525688914,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,5,6,6 0,0,10,2,525688915,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,7,0 0,0,11,7,525688985,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,6,3,1 0,20,3,2,525688992,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,1,6,2 0,0,10,2,525688992,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,3,1 0,0,11,7,525689120,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,6,8,0 0,20,4,2,525689128,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,6,6,7 0,0,10,2,525689129,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,8,0 0,0,11,7,525689195,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,6,5,1 0,20,3,2,525689200,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,3,6,4 0,0,10,2,525689201,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,5,1 0,0,11,7,525689326,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,5,0 0,20,4,2,525689334,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,3,6,12 0,0,10,2,525689334,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,5,0 0,0,11,7,525689400,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,9,1 0,20,3,2,525689406,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,7,6,8 0,0,10,2,525689406,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,9,1 0,0,11,7,525689533,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,6,0 0,20,4,2,525689548,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,4,6,13 0,0,10,2,525689548,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,6,0 0,0,11,7,525689552,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,9,3,1 0,20,3,2,525689561,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:09,1,6,0 0,0,10,2,525689562,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:09,3,1 0,0,11,7,525689740,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,8,0 +OK 0,20,4,2,525689763,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,6,6,15 0,0,10,2,525689763,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,8,0 0,0,11,7,525689776,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,7,1 0,20,3,2,525689781,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,5,6,6 0,0,10,2,525689782,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,7,1 0,0,11,7,525689966,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,2,0 0,20,4,2,525689975,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,0,6,1 0,0,10,2,525689975,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,2,0 0,0,11,7,525690163,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,4,0 0,20,4,2,525690168,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,2,6,3 0,0,10,2,525690169,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,4,0 0,20,9,2,525690174,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:21,0,16,0 0,0,11,7,525690362,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,2,0 0,20,4,2,525690370,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,0,6,9 0,0,10,2,525690371,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,2,0 0,0,11,7,525690602,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,7,1 0,20,3,2,525690606,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,5,6,14 0,0,10,2,525690606,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,7,1 0,0,11,7,525690790,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,9,1 0,20,3,2,525690797,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,7,6,16 0,0,10,2,525690797,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,9,1 0,0,11,7,525691022,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,3,1 0,20,3,2,525691030,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,1,6,2 0,0,10,2,525691031,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,3,1 0,0,11,7,525691197,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,8,5,1 0,20,3,2,525691205,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,3,6,4 0,0,10,2,525691205,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,5,1 0,0,11,7,525691384,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:07:00:00,7,3,1 0,20,3,2,525691391,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,1,6,10 0,0,10,2,525691391,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,3,1 0,20,9,2,525691684,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:25,0,16,0 +OK 0,20,9,2,525694014,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:2E,0,0,0 +OK 0,20,9,2,525696915,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:30,0,0,0 +OK 0,20,4,2,525700871,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,4,6,5 0,20,4,2,525700873,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,6,6,7 +OK 0,20,9,2,525704135,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:29,0,16,0 0,20,9,2,525704785,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:0A,0,16,0 +OK 0,20,9,2,525705911,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,0,6,0 +OK +OK 0,20,4,2,525710951,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,1,6,2 0,20,9,2,525711760,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:0E,0,0,0 0,20,9,2,525713456,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:0D,0,16,0 +OK 0,20,9,2,525715764,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:23,0,16,0 +OK 0,20,9,2,525718273,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:2A,0,16,0 0,20,9,2,525718684,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:26,0,16,0 +OK 0,20,9,2,525720501,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:2B,0,0,0 0,20,4,2,525722479,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,1,6,2 0,20,4,2,525722479,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:06,3,6,4 0,20,9,2,525722745,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:32,0,16,0 +OK 0,20,4,2,525722956,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:09,1,6,0 0,20,4,2,525723046,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,5,6,6 0,20,4,2,525723047,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,7,6,8 0,20,9,1,8,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:01:00:00,0,1,2 0,1026,2,1,8,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:01:00:00,85,110,105,120,32,86,83,67,80,32,83,101,114,118,101,114,0,0,1,0,0,0,0,0,69,0,0,0,0,0,0,0,120,151,102,0,0,0,0,0,24,1,0,16,108,127,0,0,80,212,0,16,108,127,0,0,16,215,0,16,108,127,0,0 0,20,9,2,525724087,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:31,0,16,0 0,0,1,1,8,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:01:00:00,30,95,67,180,246 0,20,4,2,525724440,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,1,6,10 0,20,4,2,525724443,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,7,6,16 0,20,4,2,525724443,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,5,6,14 0,20,4,2,525725062,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:08,3,6,4 +OK 0,20,9,2,525726912,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:2D,0,16,0 0,20,9,2,525727464,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:07,0,6,0 +OK 0,20,9,2,525729003,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:09,0,16,0 0,20,9,2,525729424,FF:FF:FF:FF:FF:FF:FF:FE:F4:6D:04:70:00:02:00:0B,0,16,0|
node-red_screenshot https://user-images.githubusercontent.com/5647216/91695735-e50d3780-eb6e-11ea-8c4d-38e9d8660bc3.PNG
vscpworks_screenshot https://user-images.githubusercontent.com/5647216/91695714-dd4d9300-eb6e-11ea-8f7c-497c2f02c5bc.PNG
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/grodansparadis/node-red-contrib-vscp-tcp/issues/3#issuecomment-683630599, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKLYI65MYSDPJUCXGOPAOLSDNKPRANCNFSM4QJDBRCQ.
-- Be Hungry - Stay Foolish! Åke Hedman, Grodans Paradis AB / Paradise of the Frog Brattbergavägen 17, 82050 LOS, SWEDEN, +46 8 40011835 http://www.grodansparadis.com http://www.vscp.org http://www.akehedman.se
I have a VSCP daemon (v14.0.4, latest release) connected to a CAN bus. The CAN bus is fully functional and VSCPworks displays all events on the CAN interface correctly.
I'm trying to get all VSCP events from this CAN bus into Node-RED through the "vscp tcp in" node. (v1.2.1, on Node-RED 7.1.0) However, it seems I only get events originating from the VSCP demon itself. (Heartbeat, Node_heartbeat, and SEGCTRL_hearbeat.)
As described on https://grodansparadis.com/wordpress/?p=4517 I assume I should be able to see the VSCP events from the CAN bus.
Node-RED and the VSCP daemon are not on the same machine, however the connection seems OK. Investigating the traffic between both systems reveals all events from the CAN bus are effectively forwarded from the VSCP daemon to the Node-RED system after the "rcvloop"-command is issued, so it looks like these messages are filtered on the Node-RED side.
Playing with the interface setting on the node configuration doesn't seem to make any difference. Specifically setting the interface to the CAN interface of the VSCP daemon, still gets me the VSCP events from the daemon itself, and not the events on that interface. Even when setting the interface to one where there shouldn't be any traffic, I continue to get the events from the daemon itself. So I suspect something is not working correctly.
How can I troubleshoot this further?