Pokeys
- JR1050
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 450
- Thank you received: 33
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23320
- Thank you received: 4946
Please Log in or Create an account to join the conversation.
- JR1050
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 450
- Thank you received: 33
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.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
John
Please Log in or Create an account to join the conversation.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
John
Please Log in or Create an account to join the conversation.
- JR1050
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 450
- Thank you received: 33
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.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23320
- Thank you received: 4946
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
-
Topic Author
- Offline
- Platinum Member
-
- Posts: 450
- Thank you received: 33
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.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23320
- Thank you received: 4946
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.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
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.