In this case with this device, I think you might not need the python script. You could start to try to use the serial node in Node-RED directly. Maybe that will work to get the communication going?
Configure to connect to /dev/ttyUSB0 with the params recommended in the doc
I think that is a port connection problem. When you connect the device, do you then find the port listed in /dev folder? If so, does it go away when you disconnect?
If I remember from manual correctly you have to start the communication with a specific command. If you send something randomly, it might be the device disconnects the port
What are you sending with the inject node?
PS with correct settings of baudrate, other params etc
I got the usb hub and the connection ist now stable, so the power was the problem.
At first my infect node was "msg.payload = timestamp", but I tried to send different strings like in the SB_MAVO-USB.pdf mentioned, but I still get the same error "error 008".
When I send "msg.payload=msg.payload" with the inject node I got no report at all.
So a good start, I think the error messages are coming from the device, it is not understanding your command
According to documentation you have to start the communication by sending the string *IDN? so this is what you have to put into your inject node
Then also as stated in the document you have to add line feed after the command. Check your setting for ”Versand”, ”Zeichen zu Ausgangsnachrichten hinzufugen”, add \n here
Now try again, if it works you should see a response coming in like IDN GOSSEN …..
Thank you!
So I tried what you said and I still get the same report. Did I do anything wrong ?
( I also tried *IDN, *idn, idn?, IDN?, idn and IDN, but same report