Mesa modbus and pktUart
- vre
- Online
- Platinum Member
-
Less
More
- Posts: 600
- Thank you received: 16
13 Mar 2025 18:50 - 13 Mar 2025 18:55 #323859
by vre
Replied by vre on topic Mesa modbus and pktUart
Yes correct does not work reliably to 115200 the problem appears to 9600 default speed and 32 i/o of module work fine the time bugs appears.
Problem maybe is not noise related because changing the order
of function lines without changing functions or pins in pin file the problem appears elsewhere..
Also appears in encoder of P1 port and eletech is connected to P3 via ttl to modbus adapter.
Chanching the ordering of functions in constant ModuleID : ModuleIDType without changing pin entries
changes the problem.
From that tests i have done is not due noise but software related maybe some data are written or read from wrong place.
Problem maybe is not noise related because changing the order
of function lines without changing functions or pins in pin file the problem appears elsewhere..
Also appears in encoder of P1 port and eletech is connected to P3 via ttl to modbus adapter.
Chanching the ordering of functions in constant ModuleID : ModuleIDType without changing pin entries
changes the problem.
From that tests i have done is not due noise but software related maybe some data are written or read from wrong place.
Last edit: 13 Mar 2025 18:55 by vre.
Please Log in or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 18278
- Thank you received: 4979
13 Mar 2025 19:16 #323861
by PCW
Replied by PCW on topic Mesa modbus and pktUart
OK I'll add this to the list of known Mesa modbus bugs.
Please Log in or Create an account to join the conversation.
- vre
- Online
- Platinum Member
-
Less
More
- Posts: 600
- Thank you received: 16
13 Mar 2025 19:19 #323862
by vre
Replied by vre on topic Mesa modbus and pktUart
Is this due to hostmot2 firmware or hostmot2 driver of linuxcnc ?
Please Log in or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 18278
- Thank you received: 4979
13 Mar 2025 19:21 #323863
by PCW
Replied by PCW on topic Mesa modbus and pktUart
Most likely the driver (that has a number of known bugs)
Please Log in or Create an account to join the conversation.
- vre
- Online
- Platinum Member
-
Less
More
- Posts: 600
- Thank you received: 16
13 Mar 2025 19:36 #323864
by vre
Replied by vre on topic Mesa modbus and pktUart
the test was done with master version
2.9.4 will have the same bug or to try my luck ?
2.9.4 will have the same bug or to try my luck ?
Please Log in or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 18278
- Thank you received: 4979
13 Mar 2025 19:39 #323866
by PCW
Replied by PCW on topic Mesa modbus and pktUart
There have been no changes in mesa modbus that I know of
so all bugs are unchanged. I guess one possible workaround
until this can be fixed is to set the pktuart as the last module.
so all bugs are unchanged. I guess one possible workaround
until this can be fixed is to set the pktuart as the last module.
The following user(s) said Thank You: vre
Please Log in or Create an account to join the conversation.
- vre
- Online
- Platinum Member
-
Less
More
- Posts: 600
- Thank you received: 16
13 Mar 2025 20:26 - 13 Mar 2025 20:26 #323867
by vre
Replied by vre on topic Mesa modbus and pktUart
With this config
I have crazy data to encoder.00.input-a and encoder.00.input-b like the first video
encoder.00.position and encoder.00.velocity seems unaffected it will work if noise is
only to encoder.00.input-a and encoder.00.input-b ?
I have crazy data to encoder.00.input-a and encoder.00.input-b like the first video
encoder.00.position and encoder.00.velocity seems unaffected it will work if noise is
only to encoder.00.input-a and encoder.00.input-b ?
(HM2DPLLTag, x"00", ClockLowTag, x"01", HM2DPLLBaseRateAddr&PadT, HM2DPLLNumRegs, x"00", HM2DPLLMPBitMask),
(WatchDogTag, x"00", ClockLowTag, x"01", WatchDogTimeAddr&PadT, WatchDogNumRegs, x"00", WatchDogMPBitMask),
(IOPortTag, x"00", ClockLowTag, x"03", PortAddr&PadT, IOPortNumRegs, x"00", IOPortMPBitMask),
(QcountTag, x"02", ClockLowTag, x"08", QcounterAddr&PadT, QCounterNumRegs, x"00", QCounterMPBitMask),
(StepGenTag, x"02", ClockLowTag, x"04", StepGenRateAddr&PadT, StepGenNumRegs, x"00", StepGenMPBitMask),
(PWMTag, x"00", ClockHighTag, x"08", PWMValAddr&PadT, PWMNumRegs, x"00", PWMMPBitMask),
(LEDTag, x"00", ClockLowTag, x"01", LEDAddr&PadT, LEDNumRegs, x"00", LEDMPBitMask),
(PktUARTTTag, x"02", ClockLowTag, x"01", PktUARTTDataAddr&PadT, PktUARTTNumRegs, x"00", PktUARTTMPBitMask),
(PktUARTRTag, x"02", ClockLowTag, x"01", PktUARTRDataAddr&PadT, PktUARTRNumRegs, x"00", PktUARTRMPBitMask),
Last edit: 13 Mar 2025 20:26 by vre.
Please Log in or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 18278
- Thank you received: 4979
13 Mar 2025 20:37 #323868
by PCW
Replied by PCW on topic Mesa modbus and pktUart
I doubt it, if any read data is corrupted, all data is suspect.
Can you run this command when LinuxCNC and modbus is running:
sudo tcpdump -c 100 -xx -i eno1 > dump.txt
( substitute your Ethernet device name for eno1 )
and post dump.txt here?
Can you run this command when LinuxCNC and modbus is running:
sudo tcpdump -c 100 -xx -i eno1 > dump.txt
( substitute your Ethernet device name for eno1 )
and post dump.txt here?
Please Log in or Create an account to join the conversation.
- vre
- Online
- Platinum Member
-
Less
More
- Posts: 600
- Thank you received: 16
13 Mar 2025 20:54 - 13 Mar 2025 22:05 #323870
by vre
Replied by vre on topic Mesa modbus and pktUart
This is dump
Also in this thread seems to have same problem(encoder reads crazy data with pktuart enabled and in working state)
forum.linuxcnc.org/24-hal-components/527...r-count-interference
Also in this thread seems to have same problem(encoder reads crazy data with pktuart enabled and in working state)
forum.linuxcnc.org/24-hal-components/527...r-count-interference
Last edit: 13 Mar 2025 22:05 by vre.
Please Log in or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 18278
- Thank you received: 4979
14 Mar 2025 00:41 #323879
by PCW
Replied by PCW on topic Mesa modbus and pktUart
Can you also include the exact .mod file that you are using?
Please Log in or Create an account to join the conversation.
Time to create page: 0.088 seconds