473,387 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to access the keyboard ps/2 port directly?

hi
i need to send an HEX String to th ps/2 keyboard port.
i have a special keyboard and i need to control his tone indicator
building an .EXE file.
using c or c++ in linux os how can i do?

many thanks
Gia
Nov 26 '07 #1
6 4943
skam schrieb:
using c or c++ in linux os how can i do?
This is nothing the C or C++ language provies.

If you want a solution using Linux you can try to get the ioperm() for
the keyboard controller register and send stuff directly - don't know
how that will interfere with the kernel keyboard handling routines, however.

Greetings,
Johannes

--
"Viele der Theorien der Mathematiker sind falsch und klar
Gotteslästerlich. Ich vermute, dass diese falschen Theorien genau
deshalb so geliebt werden." -- Prophet und Visionär Hans Joss aka
HJP in de.sci.mathematik <47**********************@news.sunrise.ch>
Nov 26 '07 #2
skam wrote:
hi
i need to send an HEX String to th ps/2 keyboard port.
There are no such things as ps/2 keyboards in c or c++
i have a special keyboard and i need to control his tone indicator
building an .EXE file.
What is an .EXE file in linux???
using c or c++ in linux os how can i do?
HINTS:
1) post to correct news group
2) use the device driver for your special keyboard, or write your own
device driver and use it
Nov 26 '07 #3
hi
thanks for your reply
There are no such things as ps/2 keyboards in c or c++
i have a keyboard connected to the ps/2 port and i want to send it
some stuff.
What is an .EXE file in linux???
ops, i mean somenthing like an .EXE but for linux. it hanst any
extension but is executable.
HINTS:
1) post to correct news group
inst this the right one? maybe comp.lang.c is better?
2) use the device driver for your special keyboard, or write your own
device driver and use it
the keboard doesnt have a driver.

thanks Johannes Bauer , now i look for that ioperm().

regards
Gia


Nov 26 '07 #4
On 2007-11-26 18:06, skam wrote:
>HINTS:
1) post to correct news group
inst this the right one? maybe comp.lang.c is better?
No, somewhere like comp.os.linux.* would be better.

--
Erik Wikström
Nov 26 '07 #5
Erik Wikstrom wrote:
On 2007-11-26 18:06, skam wrote:
HINTS:
1) post to correct news group
inst this the right one? maybe comp.lang.c is better?

No, somewhere like comp.os.linux.* would be better.
Too late, he posted it over in CLC.

Brian
Nov 26 '07 #6
skam wrote:
hi
thanks for your reply
>There are no such things as ps/2 keyboards in c or c++
i have a keyboard connected to the ps/2 port and i want to send it
some stuff.
....
>
>HINTS:
1) post to correct news group
inst this the right one? maybe comp.lang.c is better?
As Erik suggested something with Linux
>2) use the device driver for your special keyboard, or write your own
device driver and use it
the keboard doesnt have a driver.
Write one. It needs to access something in
/sys/bus/...
or
/sys/devices/...
I never did it, so have no idea
>
thanks Johannes Bauer , now i look for that ioperm().
Who is Johannes Bauer??

BTW this is from ioperm() man pages:
1) The use of ioperm() requires root privileges.
2) This call is mostly for the i386 architecture. On many other
architectures it does not exist or will always return an error.
Nov 27 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Chris | last post by:
Here's the situation: I work at a scientific institution and I have a portable electronic device which is used to take measurements. The device produces a very small amount of numerical data,...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
56
by: Raphi | last post by:
Hi, I've been using an Access application I wrote for an office with the front-end stored on all computers and the back-end on one of them serving as an Access file server. Now we're moving...
5
by: Serdar C. | last post by:
hello everyone, i have a question about retrieving data from a bar code reader plugged in keyboard port (ps/2) i really dont know how to retrieve data from keyboard, i tried some methods but all i...
12
by: david.brown.0 | last post by:
I'm trying to make a Java program access a parallel port. Java's comm API does not provide me with the control I need. I need to be able to write to the data and control pins and read the status...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
6
by: skam | last post by:
hi i need to send an HEX String to the ps/2 port. i have a special keyboard connected to the ps/2 port and i want to send it some stuff to control his tone indicator. using c or c++ in linux os....
4
by: daved | last post by:
SOLUTION NEEDED FOR ACCESS 2003 / VBA, NOT FOR ANY VERSION OF VB. I need to differentiate between the Enter key on the main keyboard and the numeric keypad and obviously tried using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.