Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am beginner in device driver. i can make simple character device driver with simple apis (eg. open,close,read,write). so i have basic knowledge of char device driver. and i want to make driver for Parallel port DB25.
Chapter 9 of the Linux Device Drivers book [1] has concrete examples for hardware control and I/O. It also covers implementing a simple parallel port driver. Later chapters cover interrupts, DMA, and PCI devices, which would be a good next step afterward.
[1] Linux Device Drivers -- Chapter 9: Communicating with Hardware
http://lwn.net/Kernel/LDD3/
Linux already has a driver for the parallel port; it's called parport, and you can find it here:
https://github.com/torvalds/linux/tree/master/drivers/parport
Note that parport isn't a character device on its own. That's handled by lp:
https://github.com/torvalds/linux/blob/master/drivers/char/lp.c
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am working on Ingedev to implement a Telium application in C.
How can I read the Application Protocol Data Unit (APDU) from a contactless EMV card transaction with an Ingenico device?
Can the APDU be retrieved from the TLV tree data exchanged between the device and the card? If so, how would this be accomplished?
KJ,
to view APDU commands, you have two options :
If you are developing the embedded software running on the terminal, enable logging for your ContactLess kernel, then collect the logs from your Ingenico terminal.
If you don't have access to the embedded software, you'll need a third party contactless sniffer, like Fime SmartSpy. It will record the exact transaction, and will let you analyze in details the ADPUs and the whole dialog.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Good day, I just want to ask some help about connecting to a device using TCP/IP and how to properly read() and write() command to it.
Any sample codes or references would be a very big help. I don't have any idea in this particular matter but I have some knowledge in C programming and serial ports.
By the way, I'm currently using ubuntu. Thanks
I do not know what you mean by device (any device located in /dev?), but here is a tutorial on c sockets using write and read:
https://vcansimplify.wordpress.com/2013/03/14/c-socket-tutorial-echo-server/
If you would like to gain access to a device in /dev then you just need to open it like a file and also treat it like a file (read / write from it like you would from a file).
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
i am bit confused between device driver and source code. what is the necessity of device driver.for eg. suppose i want to interface LPC2148 to LCD so do i need to develop driver for it?? or i need to write only a source code.
When it is required to write device driver for microcontroller.
and what is meant by linux device driver? do i need to port linux kernel in microcontroller?
is there any resource on internet, or any book from which i can learn these all things?
Thank you friends.
Source code and device driver are two different things..
device drivers required for controlling the device ...in case of micro-controller device drivers are used for accessing registers, bit wise functionality and ports in general...
source code can be for any software -written in low or high level language.
on the question of device driver-- many times driver is provided in linux or available from device manufacturer...u don't need to write device driver unless u r a developer or making a project...
there are many resources available on the internet for interfacing any micro-controller with lcd...just google it..
hope this helps...
cheers and regards dip-ak
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am a beginner to windows device driver development. So far I read Windows Internals book. I would like to know about any good resources available online so that I can start writing kernel drivers on my own.
Go to How To Write a Windows Driver. Apart from guiding you towards the windows driver kit, it also has good documentation on the various aspects of windows driver development.
Edit: Similar to this question.
You've probably already figured this out, but you will need the Windows Driver Kit to develop drivers for windows. There is also many tools and documentation as well to go with it.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Can you please recommend any E-Book Reader which can execute a third-party software, so that anybody can create software for such device?
Well there's two I know of:
The OpenInkPot Linux distribution for e-reader devices, which works on a few e-ink readers (and should be ported to more as time goes on). You shouldn't have much trouble writing third party software for that;
The iRex DR1000. Take a look at this forum thread where someone has created a VMware image for doing development targetted at this e-reader.
The Nook from Barnes and Noble has its system software installed on a removable 2GB micro SD card. Since it runs Android, it should be easy to develop your own software for it.
There's web based e-paper development platform thats offered by Visionect. The devices are nice looking yet rugged and waterproof 6" e-paper tablets and the development documentation is fully available (see docs.visionect.com).