- Configuring LinuxCNC
- Advanced Configuration
- Mesa smart serial or PktUART or serial over RS232 or udp for robot joints
Mesa smart serial or PktUART or serial over RS232 or udp for robot joints
- boksi
- Offline
- Junior Member
-
Less
More
- Posts: 25
- Thank you received: 0
25 Oct 2025 11:07 - 25 Oct 2025 11:25 #337120
by boksi
Replied by boksi on topic Mesa smart serial or PktUART or serial over RS232 or udp for robot joints
It's good thing to know.
Do you know are there some configs with stmbl driving robots available around?
I saw some integrations with robots but encoders are read by mesa cards directly.
I would be more interested in this part which you mentioned if stmbls are set up in this way that they send position over smart serial.
Do you happen to know on higher level how this position report over smart serial works if we want to read 6 robot joints positions?
Correct me if I am wrong, but possibly in HAL we would have 6 sequential position requests, one request per each joint. We would wait for each one stmbl to report its position. So request + stmbl processing time + reply over smart serial and this happens 6 times. From fast look earlier not 100% sure but I think that there are 2 mcu in stmbl, so possibly one of them fast handles communication.
Do you know are there some configs with stmbl driving robots available around?
I saw some integrations with robots but encoders are read by mesa cards directly.
I would be more interested in this part which you mentioned if stmbls are set up in this way that they send position over smart serial.
Do you happen to know on higher level how this position report over smart serial works if we want to read 6 robot joints positions?
Correct me if I am wrong, but possibly in HAL we would have 6 sequential position requests, one request per each joint. We would wait for each one stmbl to report its position. So request + stmbl processing time + reply over smart serial and this happens 6 times. From fast look earlier not 100% sure but I think that there are 2 mcu in stmbl, so possibly one of them fast handles communication.
Last edit: 25 Oct 2025 11:25 by boksi.
Please Log in or Create an account to join the conversation.
- heaven
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 1
25 Oct 2025 13:43 #337134
by heaven
Replied by heaven on topic Mesa smart serial or PktUART or serial over RS232 or udp for robot joints
As I know, you can use a smart serial UART to read the Yaskawa ABS encoder, but you need to make a custom component to handle it, including 2 elements: a UART channel and an increment encoder channel.
1st: read the ABS encoder at the initial state
2nd: set the abs position by summing up the abs and increment
1st: read the ABS encoder at the initial state
2nd: set the abs position by summing up the abs and increment
Please Log in or Create an account to join the conversation.
- boksi
- Offline
- Junior Member
-
Less
More
- Posts: 25
- Thank you received: 0
26 Oct 2025 15:28 #337211
by boksi
Replied by boksi on topic Mesa smart serial or PktUART or serial over RS232 or udp for robot joints
Okey, are you referring to make custom firmware/component for FPGA for UART + quadrature encoder logic or referring to hal component?
Please Log in or Create an account to join the conversation.
- heaven
- Offline
- Junior Member
-
Less
More
- Posts: 31
- Thank you received: 1
26 Oct 2025 15:45 #337212
by heaven
Replied by heaven on topic Mesa smart serial or PktUART or serial over RS232 or udp for robot joints
Just a hal component to take data from the UART and encoder channel then handle it
The following user(s) said Thank You: boksi
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 19677
- Thank you received: 4552
26 Oct 2025 16:46 #337221
by andypugh
Replied by andypugh on topic Mesa smart serial or PktUART or serial over RS232 or udp for robot joints
There is an example .comp here:
github.com/LinuxCNC/linuxcnc/blob/master...ivers/mesa_uart.comp
Or if the PktUART is a better fit (it probably is) have a look at:
github.com/LinuxCNC/linuxcnc/blob/master...sa_pktgyro_test.comp
github.com/LinuxCNC/linuxcnc/blob/master...ivers/mesa_uart.comp
Or if the PktUART is a better fit (it probably is) have a look at:
github.com/LinuxCNC/linuxcnc/blob/master...sa_pktgyro_test.comp
Please Log in or Create an account to join the conversation.
- boksi
- Offline
- Junior Member
-
Less
More
- Posts: 25
- Thank you received: 0
26 Oct 2025 19:47 - 26 Oct 2025 19:49 #337242
by boksi
Replied by boksi on topic Mesa smart serial or PktUART or serial over RS232 or udp for robot joints
Thanks both on suggestions, I see, checked both links quickly.
Have a question on principal level.
I need to have in fpga both uart component and quadrature enc component.
In order to work enc reading, first enc input pins should be connected to fpga input uart pins and then via some logic/demux this pins needs to be routed to quadrature logic in order to get inc pulses and also there is need to issue select signals on this demux after uart transfer sequence is finished.
Or other way, enc pins are connected to both uart and quadrature module components inside fpga but enable signals of both components are separately controlled via some conditions/logic.
Is this working this way or?
Have a question on principal level.
I need to have in fpga both uart component and quadrature enc component.
In order to work enc reading, first enc input pins should be connected to fpga input uart pins and then via some logic/demux this pins needs to be routed to quadrature logic in order to get inc pulses and also there is need to issue select signals on this demux after uart transfer sequence is finished.
Or other way, enc pins are connected to both uart and quadrature module components inside fpga but enable signals of both components are separately controlled via some conditions/logic.
Is this working this way or?
Last edit: 26 Oct 2025 19:49 by boksi.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17347
- Thank you received: 5053
26 Oct 2025 20:24 - 26 Oct 2025 20:31 #337249
by PCW
Replied by PCW on topic Mesa smart serial or PktUART or serial over RS232 or udp for robot joints
Actually I took a look at this in the past and had some example firmware source, I will take a look on Monday.
And yes, it requires grafting on a simple UART connected to the "A" encoder pin (the UART can be quite basic as its
parameters are fixed)
And yes, it requires grafting on a simple UART connected to the "A" encoder pin (the UART can be quite basic as its
parameters are fixed)
Last edit: 26 Oct 2025 20:31 by PCW.
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- Mesa smart serial or PktUART or serial over RS232 or udp for robot joints
Time to create page: 0.087 seconds