- Posts: 598
- Thank you received: 0
Mesa modbus and pktUart
1 year 7 months ago #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.
Please Log in to join the conversation.
1 year 7 months ago #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 to join the conversation.
1 year 7 months ago #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 to join the conversation.
1 year 7 months ago #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 to join the conversation.
1 year 7 months ago #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 to join the conversation.
1 year 7 months ago #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.
Please Log in to join the conversation.
1 year 7 months ago #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 ?
Code:
(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),
Please Log in to join the conversation.
1 year 7 months ago #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 to join the conversation.
1 year 7 months ago #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
Please Log in to join the conversation.
Time to create page: 0.206 seconds
