Mesa modbus and pktUart
- vre
- Online
- Platinum Member
-
Less
More
- Posts: 598
- Thank you received: 16
14 Mar 2025 00:50 - 14 Mar 2025 00:54 #323880
by vre
Replied by vre on topic Mesa modbus and pktUart
Seems to be related also to this
forum.linuxcnc.org/27-driver-boards/5432...v2d-firmware?start=0
If after startup set update-hz to 0.0001 or something non zero problem seem to stops..
Is this division by zero bug?
forum.linuxcnc.org/27-driver-boards/5432...v2d-firmware?start=0
If after startup set update-hz to 0.0001 or something non zero problem seem to stops..
Is this division by zero bug?
#define MAX_MSG_LEN 16 // may be increased if necessary to max 251
#define DEBUG 2
static const hm2_modbus_chan_descriptor_t channels = {
/* {TYPE, FUNC, ADDR, COUNT, pin_name} */
{HAL_BIT, 2, 0x0000, 32, "in"},
{HAL_BIT, 15, 0x0000, 32, "out"},
// {HAL_U32, 6, 0x00FE, 1, "setbaud"},
// {HAL_U32, 3, 0x00FE, 1, "baud"},
};
Last edit: 14 Mar 2025 00:54 by vre.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18275
- Thank you received: 4979
14 Mar 2025 00:55 #323882
by PCW
Replied by PCW on topic Mesa modbus and pktUart
Yes, this is a long known bug, never set the update rate to 0.
Please Log in or Create an account to join the conversation.
- vre
- Online
- Platinum Member
-
Less
More
- Posts: 598
- Thank you received: 16
14 Mar 2025 00:57 - 14 Mar 2025 09:59 #323883
by vre
Replied by vre on topic Mesa modbus and pktUart
This is the reason for crazy data readings on encoders ?
I make now a config that encoder.count and encoder.velocity goes crazy to see if it stops by setting update-hz to non zero
Yes problem of noise in encoders resolves by non zero value to update-hz
verified by different configs that produced random data to different encoders.
All random data stop to encoders if update-hz is non zero but stop and modbus device to work.
I make now a config that encoder.count and encoder.velocity goes crazy to see if it stops by setting update-hz to non zero
Yes problem of noise in encoders resolves by non zero value to update-hz
verified by different configs that produced random data to different encoders.
All random data stop to encoders if update-hz is non zero but stop and modbus device to work.
Last edit: 14 Mar 2025 09:59 by vre.
Please Log in or Create an account to join the conversation.
- vre
- Online
- Platinum Member
-
Less
More
- Posts: 598
- Thank you received: 16
14 Mar 2025 09:58 #323901
by vre
Replied by vre on topic Mesa modbus and pktUart
If i set non zero update-hz problem of crazy data reading on encoders stop
but also stops working modbus device so no solution here..
but also stops working modbus device so no solution here..
Please Log in or Create an account to join the conversation.
Time to create page: 0.163 seconds