Hi,
I tried to use the "node-red-contrib-ctrlx-automation" nodes to setup a connection between node-red dashboard and the Datalayer.
It works Flawlessly in the CtrlX-core using localhost as IP:
I have some problem when i try to do the same thing using node-red in another device (external to ctrlx)
Is there something i am missing? Do i have to set some permissions in the CtrlX side?
Solved! Go to Solution.
There are quite less information about your settings of the communication. How did you set the Rexroth communication node?
In the ctrlX CORE there has nothing special to be done. You just need a user with the necessary rights but that's the same than on localhost.
Hi,
The CtrlX ip address is the default one : 192.168.1.1.
The user is the default "boschrexroth" which is the one working in localhost
Node-red is able to ping 192.168.1.1
Edit: the node-version is 1.2.1
Edit2: I was able to request a token and use plain rest api from node-red, without using the official nodes set. Thus the problem is inside the
node-red nodes or i have done some wrong configuration.
Do you have the possibility to look into the log files of Node-RED? Maybe we can find additional hints there.
Depending on where you installed (linux, node-red) this might look different. E.g. on raspberry pi you can enter 'node-red-log'.
On linux you can also show the log by entering
sudo journalctl -f -u nodered -o cat
EDIT: It might also be interesting to know which nodejs version is installed on your system. Use 'node --version" for this.
I have done the following tries:
-standard node-red snap node-red 1.1.3, nodejs? something like 10, easily repeatable.
-my node-red snap: node-red 1.2.9, nodejs 10.22 (version catched while compiling)
-windows node-red 1.2.9 node-js 14
EDIT:
The windows node-red starded working after a reboot. so i decided to investigate. moving from
nodejs 10 to 14.15.4 in my snap solved the problem!
Here my snapcraft.yaml in case someone has same problem.
https://github.com/mauringo/node-red-industrial-snap/blob/master/snapcraft.yaml
sudo snap node-red logs:
I am attaching also windows log in new2.txt and as screenshoot
Thanks for the investigations and the detailed info. 👍
Will add a note to the readme, that at least nodejs 12.x is needed. This is also recommended by node-RED (https://nodered.org/docs/faq/node-versions).
Hi ,
In these days i am testing The node-red nodes because i am going to use them for a production demo with a customer.
The nodes works flawlessly and they are also working after several uptime hours, great job! 🚀
The only problem is that sometimes the Node-Red snap is booting just before the Datalayer is ready and the nodes have difficulty to autenticate (i'm attaching a video and a picture). This happens with Node-red installed inside the CtrlX core and the behavior is happening 1 time over 5 reboots.
is it possibe to add a node to trigger an autentication?
is it possible to add a node to get the authentication state? E.g that sends true if the system is authenticated or not?
This could be helpful also to manage the connection il the Node-red snap is not installed insidethe device.
Really thanks for your time 😊
Hello,
I agree with @Mauro, it could be useful to be able to perform authentication on demand.
I looked in the code but I haven't touched it, I would like to know your opinion so I write an issue on GitHub:
https://github.com/boschrexroth/node-red-contrib-ctrlx-automation/issues/14
btw: I really like the node it will be a very good tool for our customer, thanks!
Best regards
Carlo
Hey guys,
thanks for the feedback.
Regarding the authentication:
Regards
Sebastian
Hello,
good to know that the node will be robust and will keep on trying to reconnect.
I was thinking more to allow authentication without using the node-red frontend (the config part of the node). How about giving the credentials through a message? I wrote an example and a more detailed description on GitHub.
Thanks
Regards
Carlo
Hey Carlo,
let's continue the discussion in the github issue:
https://github.com/boschrexroth/node-red-contrib-ctrlx-automation/issues/14
Best Regards,
Sebastian