473,803 Members | 3,518 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 4968
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
12756
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
8875
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
6607
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
5979
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
3268
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
8634
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
4648
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
2663
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 form’s 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 isn’t. I...
0
9699
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10542
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
10309
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
10289
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
7600
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
6840
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4274
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

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.