Pokeys

  • JR1050
  • JR1050's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
17 Jul 2012 04:33 #22055 by JR1050
Pokeys was created by JR1050
I just got finished loading hal_input to run a pokeys 55.The pins show up in Halshow,but as all these wacky game controller names,most with integer and float values attached to them.I configured the pokeys to be all inputs.Did I mess something? Should they be assigned keyboard values so they all come up as buttons?

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

More
17 Jul 2012 14:54 #22083 by andypugh
Replied by andypugh on topic Re:Pokeys
Do the values change when you press buttons? Do the values change in a logical way?

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

  • JR1050
  • JR1050's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
17 Jul 2012 15:46 #22094 by JR1050
Replied by JR1050 on topic Re:Pokeys
They do not change at all.Permissions?
I have the following in ect/undev/rules as a file

SYSFS{1001}=="c00e",SYSFS{1dc3}=="046D",MODE="0660",GROUP="plugdev"

emc wont load with the pokeys removed,so my guess is it see's the device.Suggestions

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

More
17 Jul 2012 16:02 #22098 by BigJohnT
Replied by BigJohnT on topic Re:Pokeys
IIRC when I connected up my pokeys the names were all like the game pad type of names. Is there a problem using that type of name?

John

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

More
17 Jul 2012 16:07 #22099 by BigJohnT
Replied by BigJohnT on topic Re:Pokeys
If you want to connect a matrix keyboard you have to select that and enable matrix keyboard.

John

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

  • JR1050
  • JR1050's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
17 Jul 2012 21:35 #22107 by JR1050
Replied by JR1050 on topic Re:Pokeys
John,

The names of the pins dont really matter .I do however need them all to be inputs.The first half of all the pins have s32 values attached instead of bitsThey all show as inputs and will change in the pokeys program that runs on my XP box..How did you set your pokeys up?Thanks


JR

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

More
18 Jul 2012 12:35 #22126 by andypugh
Replied by andypugh on topic Re:Pokeys
JR1050 wrote:

The names of the pins dont really matter .I do however need them all to be inputs.The first half of all the pins have s32 values attached instead of bitsThey all show as inputs and will change in the pokeys program that runs on my XP box..How did you set your pokeys up?Thanks


Is the problem that they are S32, or that they don't change when you press buttons?

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

  • JR1050
  • JR1050's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
18 Jul 2012 14:18 #22129 by JR1050
Replied by JR1050 on topic Re:Pokeys
Andy,

After playing with the thing for a while,I set the EV options for hal input to -k and loaded two pokeys as thats what the system saw,like so

loadusr -W hal_input -K PoKeys:0 PoKeys:1

In halshow i get instance 0,which is about 20-30 buttons and instance 1 which is keys.


They do not change when a button would be pressed(right now im just grounding the the pin out,which causes its state to change in the pokeys i/o window in XP).Ive been watching in hal show.

I suspect a permissions thing.I added rule file to the ect/udev/rules.d like so

SYSFS=="1001", SYSFS=="1dc3", MODE="0660", GROUP="plugdev"

and another one like so


SUBSYSTEM=="input",MODE="0660",GROUP="plugdev"

Info on getting emc and pokeys to get along seems scarce at best.Got any suggestions?Thanks

JR

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

More
18 Jul 2012 14:22 #22131 by andypugh
Replied by andypugh on topic Re:Pokeys
JR1050 wrote:

In halshow i get instance 0,which is about 20-30 buttons and instance 1 which is keys.
They do not change when a button would be pressed


One thing to check, you are using the "watch" tab, not the other one? Only the "watch" tab shows live data.

I don't think it ought to be permissions given that it loads OK.

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

More
18 Jul 2012 14:27 #22133 by BigJohnT
Replied by BigJohnT on topic Re:Pokeys
I plugged my pokeys in and did a

loadusr -W hal_input -KRAL PoLabs

The HAL pins show up but don't change states with any regularity... I found the old pokeys config file where I had the analog pins working but not my old emc config.

I'll see if I can work on it some more later today.

John

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

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