EmbLogic's Blog

Category Archives: Device Drivers

Project Status.

Working fine for singal Writer(Machine 1), Singal Reader(Machine 2), open/close file(Machine 3), and server(Machine 4). using sockets for IPC.

Posted in Character Driver, Uncategorized | Leave a comment

Thread synchronization done.

Running 100 applications in background writing and reading on Device… working absolutely fine.  

Posted in Character Driver, Linux Internals and System Programming | Leave a comment

driver’s problem…

driver is registered when i tried it in single file… but when i split the file in start.o and stop.o then it gives error ” -1 file exist “

Posted in Device Drivers | 1 Comment

todays work…

Implemented Drivers (Initialization & Registration), Implemented Posix Threads.  

Posted in Device Drivers | Leave a comment

Writing device drivers in Linux

Pre-requisites In order to develop Linux device drivers, it is necessary to have an understanding of the following: C programming. Some in-depth knowledge of C programming is needed, like pointer usage, bit manipulating functions, etc. Microprocessor programming. It is necessary … Continue reading

Posted in Character Driver | Leave a comment

loop counting 1 extra…why?

char *a,*b; int c,n,i; printf(“enter the word to be find: “); a=malloc(10*sizeof(char)); b=malloc(100*sizeof(char)); printf(“Address of b %d”,b); fgets(a,10,stdin); puts(a); i=0; printf(“len of the str:%d \n”,strlen(a)); //for(i=0;*(a+i)!=”;i++) while(*(a+i)!=”) { printf(“length= %d\n”,i); printf(“length======== %c\n”,*(a+i)); i++; }

Posted in Device Drivers | 1 Comment

Serial Port Driver

Following is the code prepared by me.Only interrupt is left working on it.It is done for a loop back process.Any mistake … leave the comments #include”header.h” static int my_proc (char * buf, char ** start,off_t off, int count) { int … Continue reading

Posted in Serial Port Driver | Leave a comment

Stepper Motor Interfacing with Parallel Port

We have Successfully Interfaced stepper motor with parallel port and tested following modes of operation: 1. Half step sequence Clockwise and Anti-clockwise. 2.Full step sequence Clockwise and Anti-clockwise. 3.Eight step sequence Clockwise and Anti-clockwise and successfully controlled the speed of motor … Continue reading

Posted in Parallel Port Driver | Tagged | 5 Comments

Update of assignment

I have completed the 3 modes of parallel device driver i.e compatibility mode, byte mode and nibble mode. Working on the ECP and EPP mode. Successfully implemented man page creation and development. Working on customizing them as per the needs. … Continue reading

Posted in Parallel Port Driver | Leave a comment

What is Device Drivers

People new to Linux often hear that it has excellent support for all kinds of cards and that the device drivers are stable and fast. Sometimes, though, setting up devices under Linux is often not all plug-and-play. Everything is a … Continue reading

Posted in Device Drivers | Tagged , , | 1 Comment