M118 send message to second UART
-
I want to send UART command from IO port. This command is not for Duet Panel. It is for special device. How do I do?
-
Which Duet are you using? A second UART is supported on Duet 3 MB6HC and Duet 3 Mini.
To use the second UART on those machines, you first need to configure it using M575. After that you can use M118 with parameter P5 to send messages to it.
-
@dc42 Interesting , so you can send commands from the second UART to something like a arduino ? , But can you send command from a arduino back to the duet for something like a external trigger ?
-
@dc42 I have configured M575 P1 B115200 with different parameter S, then use M118 with parameter P5. The console show "M118 : Invalid message type : 5"
-
@jimmykc the second aux port is P2 in M575, not P1.
-
I can work on second UART port, thanks. I have another question. I want to send UART command (G code or M code) to the second UART port. Does the second UART port get all G code and M code that like as USB port?
-
@jimmykc said in M118 send message to second UART:
I can work on second UART port, thanks. I have another question. I want to send UART command (G code or M code) to the second UART port. Does the second UART port get all G code and M code that like as USB port?
Yes, the second aux port should respond to G- and M-commands received from a connected device.
-
@dc42 said in M118 send message to second UART:
Yes, the second aux port should respond to G- and M-commands received from a connected device.
Can I also send
set global.variablename = nn.nn
that would probably be the answer to
@peter247 said in M118 send message to second UART:But can you send command from an arduino back to the duet for something like a external trigger ?
-
@dc42 o.k a little confused , so on the mini 5+ p0 is the usb , p1 is io_0 / PanelDue ? , where is p2 ?
-
@peter247 P2 is on IO_1.