On Wed, 6 May 2020, Leonardo Marsaglia wrote:
Date: Wed, 6 May 2020 09:01:02 -0300
From: Leonardo Marsaglia <ldmarsag...@gmail.com>
Reply-To: "Enhanced Machine Controller (EMC)"
<emc-users@lists.sourceforge.net>
To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
Subject: Re: [Emc-users] Mesa 7i73 keypad question/issue
Sorry I meant to say I unplugged P1.
Just tested here with minimal test setup and no problem found
halcmd: loadrt matrix_kb config=8x8
halcmd: addf matrix_kb.0 servo-thread
halcmd: net char hm2_7i96.0.7i73.0.0.keycode matrix_kb.0.keycode
halcmd: show param hm2_7i96.0.7i73.0.0.keymode
Parameters:
Owner Type Dir Value Name
26 u32 RW 0x00000002 hm2_7i96.0.7i73.0.0.keymode
halcmd: show param hm2_7i96.0.7i73.0.0.swrevision
Parameters:
Owner Type Dir Value Name
26 u32 RW 0x0000000E hm2_7i96.0.7i73.0.0.swrevision
halcmd: show pin
matrix_kb.0
Component Pins:
Owner Type Dir Value Name
42 bit OUT FALSE matrix_kb.0.key.r0c0
42 bit OUT FALSE matrix_kb.0.key.r0c1
42 bit OUT FALSE matrix_kb.0.key.r0c2
42 bit OUT FALSE matrix_kb.0.key.r0c3
42 bit OUT FALSE matrix_kb.0.key.r0c4
42 bit OUT FALSE matrix_kb.0.key.r0c5
42 bit OUT FALSE matrix_kb.0.key.r0c6
42 bit OUT FALSE matrix_kb.0.key.r0c7
42 bit OUT FALSE matrix_kb.0.key.r1c0
42 bit OUT FALSE matrix_kb.0.key.r1c1
42 bit OUT FALSE matrix_kb.0.key.r1c2
42 bit OUT FALSE matrix_kb.0.key.r1c3
42 bit OUT FALSE matrix_kb.0.key.r1c4
42 bit OUT FALSE matrix_kb.0.key.r1c5
42 bit OUT FALSE matrix_kb.0.key.r1c6
42 bit OUT FALSE matrix_kb.0.key.r1c7
42 bit OUT FALSE matrix_kb.0.key.r2c0
42 bit OUT FALSE matrix_kb.0.key.r2c1
42 bit OUT FALSE matrix_kb.0.key.r2c2
42 bit OUT FALSE matrix_kb.0.key.r2c3
42 bit OUT FALSE matrix_kb.0.key.r2c4
42 bit OUT FALSE matrix_kb.0.key.r2c5
42 bit OUT FALSE matrix_kb.0.key.r2c6
42 bit OUT FALSE matrix_kb.0.key.r2c7
42 bit OUT FALSE matrix_kb.0.key.r3c0
42 bit OUT FALSE matrix_kb.0.key.r3c1
42 bit OUT FALSE matrix_kb.0.key.r3c2
42 bit OUT FALSE matrix_kb.0.key.r3c3
42 bit OUT FALSE matrix_kb.0.key.r3c4
42 bit OUT FALSE matrix_kb.0.key.r3c5
42 bit OUT FALSE matrix_kb.0.key.r3c6
42 bit OUT FALSE matrix_kb.0.key.r3c7
42 bit OUT FALSE matrix_kb.0.key.r4c0
42 bit OUT FALSE matrix_kb.0.key.r4c1
42 bit OUT FALSE matrix_kb.0.key.r4c2
42 bit OUT FALSE matrix_kb.0.key.r4c3
42 bit OUT FALSE matrix_kb.0.key.r4c4
42 bit OUT FALSE matrix_kb.0.key.r4c5
42 bit OUT FALSE matrix_kb.0.key.r4c6
42 bit OUT FALSE matrix_kb.0.key.r4c7
42 bit OUT FALSE matrix_kb.0.key.r5c0
42 bit OUT FALSE matrix_kb.0.key.r5c1
42 bit OUT FALSE matrix_kb.0.key.r5c2
42 bit OUT FALSE matrix_kb.0.key.r5c3
42 bit OUT FALSE matrix_kb.0.key.r5c4
42 bit OUT FALSE matrix_kb.0.key.r5c5
42 bit OUT FALSE matrix_kb.0.key.r5c6
42 bit OUT FALSE matrix_kb.0.key.r5c7
42 bit OUT FALSE matrix_kb.0.key.r6c0
42 bit OUT FALSE matrix_kb.0.key.r6c1
42 bit OUT FALSE matrix_kb.0.key.r6c2
42 bit OUT FALSE matrix_kb.0.key.r6c3
42 bit OUT FALSE matrix_kb.0.key.r6c4
42 bit OUT FALSE matrix_kb.0.key.r6c5
42 bit OUT FALSE matrix_kb.0.key.r6c6
42 bit OUT FALSE matrix_kb.0.key.r6c7
42 bit OUT FALSE matrix_kb.0.key.r7c0
42 bit OUT FALSE matrix_kb.0.key.r7c1
42 bit OUT FALSE matrix_kb.0.key.r7c2
42 bit OUT FALSE matrix_kb.0.key.r7c3
42 bit OUT FALSE matrix_kb.0.key.r7c4
42 bit OUT FALSE matrix_kb.0.key.r7c5
42 bit OUT FALSE matrix_kb.0.key.r7c6
42 bit OUT FALSE matrix_kb.0.key.r7c7
42 u32 IN 0x00000040 matrix_kb.0.keycode <== char
42 s32 OUT 28 matrix_kb.0.time
El mi??., 6 may. 2020 09:00, Leonardo Marsaglia <ldmarsag...@gmail.com>
escribi??:
Well I just checked things with halscope and some keys are working
perfectly but others are not.
Another problem I find is that matrix_kb is always sensing row 3/col 1 as
true. I unplugged the connector from the P2 port on the 7i73 and the same
happens. I have firmware number 14 installed on the board. Jumpers are ok
for 8x8 matrix (w5 up and w6 down).
Should I upgrade the firmware just to check ?
What I find strange is that halscope is detecting the change in the
keycode pin.
Leonardo Marsaglia
El mar., 5 may. 2020 22:56, Peter C. Wallace <p...@mesanet.com> escribi??:
On Tue, 5 May 2020, Leonardo Marsaglia wrote:
> Date: Tue, 5 May 2020 22:11:11 -0300
> From: Leonardo Marsaglia <ldmarsag...@gmail.com>
> Reply-To: "Enhanced Machine Controller (EMC)"
> <emc-users@lists.sourceforge.net>
> To: "Enhanced Machine Controller (EMC)" <
emc-users@lists.sourceforge.net>
> Subject: Re: [Emc-users] Mesa 7i73 keypad question/issue
>
> Thank you Peter for your quick response,
So if I understand correctly, the 7i73.keycode pin is too fast to simply
check it with halmeter by eye. But should I see the changes in halscope?
Yes halscope will see any changes
El mar., 5 may. 2020 a las 19:41, Peter C. Wallace (<p...@mesanet.com>)
escribi????:
> On Tue, 5 May 2020, Leonardo Marsaglia wrote:
>
> > Date: Tue, 5 May 2020 19:09:29 -0300
> > From: Leonardo Marsaglia <ldmarsag...@gmail.com>
> > Reply-To: "Enhanced Machine Controller (EMC)"
> > <emc-users@lists.sourceforge.net>
> > To: "Enhanced Machine Controller (EMC)" <
emc-users@lists.sourceforge.net
> >
> > Subject: [Emc-users] Mesa 7i73 keypad question/issue
> >
> > Hello guys,
> >
> > I'm almost done with the config on the Mazak. The last thing I'm
trying
> to
> > set up is the front panel keyboard. I'm using a 7i73 wich is already
> > working with the MPG and the lever to move the X and Z axis.
> >
> > The problem I have is, I can't make the keypad input to work. In HAL
I'm
> > always reading the 64 value . I've tried to manually short the pins of
> one
> > column and one row to see if there's any change and nothing. I'm sure
I'm
> > missing something something here, but I didn't want to experiment
without
> > your opinion.
> >
> > I don't know If I'm forgetting to ground something, or to move a
jumper.
> > Anyway, the P2 port of the board is working well. Please let me know
what
> > you think.
> >
> > Thanks as always!
> >
>
> You cannot in general use the keycode as it only reports deltas (and
only
> for 1
> servo thread period) and a no-op code of 64 when idle (no changes) so
you
> will
> miss the deltas in hal watch. Normally tye "matrix_kb" component is used
> to
> process the deltas into a static representaion of the keypad state
>
>
> > _______________________________________________
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> >
>
> Peter Wallace
> Mesa Electronics
>
> (\__/)
> (='.'=) This is Bunny. Copy and paste bunny into your
> (")_(") signature to help him gain world domination.
>
>
>
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
Peter Wallace
Mesa Electronics
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
Peter Wallace
Mesa Electronics
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users