I took a look at the official node red serial node implementation. https://github.com/node-red/node-red-nodes/blob/master/io/serialport/25-serial.js
There is the same package used as I do. Also node.port.on('data', function (data) { is used. They use a serial pool with a configuration node.
I want to do it without a configuration node, because when you share the flow, you have to configure the node. I want to avoid this.
Hope somebody can help me to get this running. As I said running this code solely in node.js works, so it must be something NodeRed specific.