473,883 Members | 2,177 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4973
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ästerli ch. Ich vermute, dass diese falschen Theorien genau
deshalb so geliebt werden." -- Prophet und Visionär Hans Joss aka
HJP in de.sci.mathemat ik <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
12761
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, about 10 to 15 numbers per measurement. This operation is performed frequently and I would like to implement an automatic solution that moves this data across a windows network and into the fields of an Access database application. The device...
7
8882
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 want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and save it to the user's machine. I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
11
6620
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 where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am not logged into the server, Access is not able to print to the printer. The error is pretty...
56
6000
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 to a 2nd office 15 minutes down the road. Only one office will be open at a time, so theoretically it'd be possible to copy the back-end manually every night from one office to another, but frankly, that's pretty annoying.
5
3271
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 could get was getting key values like "F7 key", or "Shift key"... can someone tell me how to retrieve data from a bar code scanner please? or at least how to retrieve data from ps/2 keyboard... maybe a handle or so... thanx for reading this post...
12
8642
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 pins. Any Java people know a good solution? I'm trying to use JNI and create my own library, but building the library gives me these errors: ld: warning: cannot find entry symbol _start; defaulting to 0000000008048094 ParallelPort.o: In...
15
4663
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 communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
6
547
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. how can i do? many thanks Gia
4
2665
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 vbkeySeparator in the forms Keypress event. However, both Enter keys return KeyCode 13. MS Q188550 (below) offers a workaround for VB only it does not claim to fix VBA. On this basis you might expect that the bug is fixed in Access/VBA but it isnt. I...
0
9945
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
11160
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10766
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10863
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7978
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6007
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4622
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4230
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3241
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.