12/6/2017 11:12 PM | |
Posts: 439 Rating:
|
Hello Turner42, First of all, thank you very much for the help. I tried to import your flow, but only the "Switch node" is in your export clipboard. The result: I followed your procedure:
Here is what I made:
I suppose you are testing with a UART code reader (right? I went to the MV320 manual and can't see anything related to UART. USB or RS-232 is the only available communication protocol. There is a RS-232 cable need for RS-232 communication and at this point if I use it I can connect it directly to a PLC module like the COMMUNICATION MODULE CM 1241, RS232.
It's at this point you are using the switch node to connect between output 3 of "exec" node and its input, right? Like that? I added the "#" to the file, but can't get out of my mind you are using a UART reader and me a USB reader. Have a good day! Hugo |
12/8/2017 10:45 PM | |
Posts: 37 Rating:
|
Hi HugoD,
As long as the "cat" command is active in Node-Red, you can't access the tty1 from any other command, so you have to stop the flow. Make sure that no other process is using /dev/tty1 using this command:
Normally you would use "fuser" for this purpose, but I think this is not part of the IoT2000 image. The next step is to look, which console has the input focus. On my machine this is tty1, on a normal PC this is a text console on the VGA card. On the IoT2000 it still exists but without VGA/HDMI output you will never see it. Normally you would use "fgconsole" but this is also not part of the IoT2000 image. With the tool "chvt" and using <ALT>-<1> to <8> you could switch the focus between tty1..tty8 (maybe even more), so avoid to press this key combination. Here the output how it looks like when cat is already running in the Node-Red flow:
Now use cat /dev/tty1, enter some characters on the keyboard and press return. Before pressing return, you will see nothing.
I built my image myself and added some of the tools I mentioned. Maybe it is a different version, or different setting. my /proc/tty/drivers and my /sys/class/vtconsole/vtcon0 and kernel cmdline:
I found some interesting documentation about the vts in https://www.kernel.org/doc/Documentation/console/console.txt and https://www.kernel.org/doc/Documentation/fb/fbcon.txt Michael |
Last edited by: turner42 at: 12/8/2017 11:34:44 PMLast edited by: turner42 at: 12/9/2017 12:43:31 PMLast edited by: turner42 at: 12/9/2017 2:35:44 PM |
|
This contribution was helpful to
3 thankful Users |
12/12/2017 6:52 PM | |
Posts: 439 Rating:
|
Michael, WOW Thank you soooo much! Here is what I did:
You should now see the result in the "Debug" windows. Backspace button also works, this is amazing! Thanks again Michael! Have a good day! Hugo |
Last edited by: HugoD at: 12/12/2017 6:55:00 PM |
|
This contribution was helpful to
3 thankful Users |
4/4/2018 1:25 PM | |
Posts: 1 Rating:
|
Hello everyone, I'm using a barcode reader from SICK (IDM160-300S), and I've managed to set it up as a USB-serial device and receiving scanned input through Node-red. I believe the same process can be used for any barcode reader that supports to be used as a rs232/serial device over USB. Attached is a couple of images describing the process. Best regards, AttachmentSetup_USB_serial_nodered.zip (786 Downloads) |
This contribution was helpful to
1 thankful Users |
3/21/2023 9:36 AM | |
Joined: 6/19/2017 Last visit: 9/6/2024 Posts: 8175 Rating:
|
New question published by Arkom P. is split to a separate thread with the subject IOT2050 USB Node-red. Best regards |
Follow us on