7i43 200k firmware for serials and encoders

More
22 Sep 2013 19:36 #39107 by nilpferd_noedel
Replied by nilpferd_noedel on topic 7i43 200k firmware for serials and encoders
Today I have seen that the module matrix_kb isnt`t available in the appropriate folder.

Can I add this easily or is it solved when I make an update to 2.5.3 (currently 2.5.0)?

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

More
23 Sep 2013 00:40 #39109 by andypugh
Replied by andypugh on topic 7i43 200k firmware for serials and encoders

Today I have seen that the module matrix_kb isnt`t available in the appropriate folder.

Can I add this easily or is it solved when I make an update to 2.5.3 (currently 2.5.0)?


It isn't in the 2.5 branch, it should appear in the 2.6 release. (Whenever that is).

The file is here: git.linuxcnc.org/gitweb?p=linuxcnc.git;a.../matrix_kb.c;hb=HEAD
You can compile and install it on your version of linuxCNC using the "comp" tool.

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

More
09 Oct 2013 02:36 #39656 by nilpferd_noedel
Replied by nilpferd_noedel on topic 7i43 200k firmware for serials and encoders
Hello again,
I have copied the matrix_kb.ko out of master and pushed it into my 2.5.3 on
the machine after trying to compile the .C file without success (my incompetence).

But I have still a problem with the setup for my keypad.
The pin hm2_7i43.0.7i73.0.0.keycode shows the value "0x00000040" but when I
push a button on the matrix (for example a path from column 1 to row 0 is closed)
this value doesn`t change.
I have tested sserial software modes 0,1 and 2 but nothing changed.
The jumpers on the board are set for 8x8 matrix with no LCD.
Can this be a problem with the hardware or with my wiring?

Thanks alot
You have helped me so far

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

More
09 Oct 2013 03:06 #39657 by PCW
It could be a wiring issue but I'm pretty sure you will not see any
changes in the keycode except by rare chance.

This is because the 7I73 only sends key events once per keyup/keydown event
so the keycode pin will be in the idle state (0x40) more than 99% of the time
and only contain key change information for a single servo period.

This is the purpose of the matrix_kb. It records the keycode changes every servo period
and keeps an internal map of which keys are up and which are down so static pins for each
key can be provided to HAL

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

More
09 Oct 2013 03:25 #39659 by nilpferd_noedel
Replied by nilpferd_noedel on topic 7i43 200k firmware for serials and encoders
I have linked the "matrix_kb.N.keycode" to the output of the keycode pin of the 7i73.
So the component must change the corresponding bit out pin. But all pins are down.

I have just copied the matrix_kb.ko from master into the folder in 2.5.3
Do I have to "install" the component? My knowledge in this topic is unfortunately limited.
The component and the corresponding function is visible in HAL show.

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

More
09 Oct 2013 05:21 #39661 by PCW
Did you addf the matrix_kb.0 function to the servo thread?

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

More
10 Oct 2013 01:32 - 10 Oct 2013 01:36 #39707 by PCW
Here are the things I needed to add to my hal file to get the matrix_kb comp to work with the 7I73:
loadrt matrix_kb config=8x8
addf matrix_kb.0 servo-thread
net  keycode hm2_5i25.0.7i73.0.2.keycode matrix_kb.0.keycode

Seems to all work as expected.
(the details may differ depending on what channel your 7I73 is connected to)
Last edit: 10 Oct 2013 01:36 by PCW.

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

Moderators: PCWjmelson
Time to create page: 0.066 seconds
Powered by Kunena Forum