MATRIX_KB in 2.8.0

More
08 Aug 2020 19:18 - 08 Aug 2020 19:19 #177701 by Daniel_D_Punkt
Hi guys,

I control my WABECO F1410 LF HS with LinuxCNC and MESA 7i76e + 7i85 + 7i73 and am actually very satisfied.
I have loaded a 4x8 matrix_kb for the 7i73. Works in principle, but I think I found a bug in version 2.8.0 pre1 6085:

The output signal of the key.r1c1 button is 'ON' after starting LinuxCNC even though the button is not pressed. If I press it once and release it again, the output of key.r1c1 goes 'LOW' as expected and behaves like all other outputs. Can this be an error during initialization?
I have tested this configuration with version 2.7.14. Here this error does not occur and everything behaves as expected.
I know that LinuxCNC 2.8 is not released yet. Can someone confirm this bug before I downgrade to 2.7.15?

# >>>> Keypad >>>
loadrt matrix_kb config=4x8
addf matrix_kb.0 servo thread -2
net keypad hm2_7i76e.0.7i73.0.2.keycode => matrix_kb.0.keycode
# <<< Keypad #<

Best regards
Last edit: 08 Aug 2020 19:19 by Daniel_D_Punkt.

Please Log in or Create an account to join the conversation.

More
08 Aug 2020 20:32 #177711 by PCW
Replied by PCW on topic MATRIX_KB in 2.8.0
I cannot duplicate this in master
Your might want to upgrade to the latest 2.8 version

Please Log in or Create an account to join the conversation.

More
09 Aug 2020 09:53 #177740 by Daniel_D_Punkt
Replied by Daniel_D_Punkt on topic MATRIX_KB in 2.8.0
Thanks for trying and the quick answer.

I have now updated to 2.8.0-pre1-6125 and got the same error.
I had actually excluded the 7i73 as the cause, since it behaves correctly with the same hardware and version 2.7.14.
I have also tried 10k pull-up resistors on the scan inputs of the 7i73, without success.

I start LinuxCNC and add all key-outputs of the 7i73 to the observation window. All are FALSE except r1c1. If I now press r1c1, it stays HIGH and changes to LOW when I release it. After that it behaves normally. When I restart LinuxCNC it is the same game.

Does anyone have any idea what else I could try? Especially after PCW could not reproduce this error I am helpless.

Thanks

Please Log in or Create an account to join the conversation.

More
09 Aug 2020 11:35 #177744 by Daniel_D_Punkt
Replied by Daniel_D_Punkt on topic MATRIX_KB in 2.8.0
I just created a new configuration with pncconf and this is also the problem.

I have attached the configurations of the MESA boards.
Attachments:

Please Log in or Create an account to join the conversation.

More
09 Aug 2020 13:21 #177746 by PCW
Replied by PCW on topic MATRIX_KB in 2.8.0
Your thread order is not right, the hardware read should be the first addf
and the hardware write should be the last, something like this:

# ################################################
# THREADS
# ################################################

addf hm2_[HOSTMOT2](BOARD).0.read         servo-thread
addf mux2.0                               servo-thread
addf mux2.1                               servo-thread
addf mux2.2                               servo-thread
addf mux2.3                               servo-thread
addf motion-command-handler               servo-thread
addf motion-controller                    servo-thread
addf pid.0.do-pid-calcs                   servo-thread
addf pid.1.do-pid-calcs                   servo-thread
addf pid.2.do-pid-calcs                   servo-thread
addf pid.3.do-pid-calcs                   servo-thread
addf matrix_kb.0 servo-thread
addf hm2_[HOSTMOT2](BOARD).0.write        servo-thread
The following user(s) said Thank You: Daniel_D_Punkt

Please Log in or Create an account to join the conversation.

More
09 Aug 2020 14:15 #177749 by Daniel_D_Punkt
Replied by Daniel_D_Punkt on topic MATRIX_KB in 2.8.0
Ohhh, very good point, thank you very much. I changed that... but unfortunately it doesn't fix anything on this button problem

Please Log in or Create an account to join the conversation.

More
09 Aug 2020 14:17 #177750 by PCW
Replied by PCW on topic MATRIX_KB in 2.8.0
Do you have the matrix_kb addf between read and write?

Please Log in or Create an account to join the conversation.

More
09 Aug 2020 14:23 - 09 Aug 2020 14:42 #177751 by Daniel_D_Punkt
Replied by Daniel_D_Punkt on topic MATRIX_KB in 2.8.0
Jep, rearranged the HAL a little bit for better readability .
Attachments:
Last edit: 09 Aug 2020 14:42 by Daniel_D_Punkt.

Please Log in or Create an account to join the conversation.

More
09 Aug 2020 14:47 #177752 by PCW
Replied by PCW on topic MATRIX_KB in 2.8.0
Hmm I just tried 2.8 and don't see a problem either
Do all the keys work?
(4x8 mode scanner columns are P1 pins 7,8,9,10)

Please Log in or Create an account to join the conversation.

More
09 Aug 2020 15:07 #177755 by Daniel_D_Punkt
Replied by Daniel_D_Punkt on topic MATRIX_KB in 2.8.0
Yes, all keys are wirking fine. Key r1c1 works too, but it starts in pressed state.
If I use 2.7.14 key r1c1 starts in inactive state like all the others do. Because of that i thought it is an issue in 2.8.

Please Log in or Create an account to join the conversation.

Time to create page: 0.081 seconds
Powered by Kunena Forum