EmbLogic's Blog

Author Archives: Abhishek Choubey

EIA/TIA RS 232 -E specification for data transfer over serial channel( Sending large amount of data ~7MB)

Summary : – Successful hand shaking as per RS 232 protocol between the DTE and DCE. – ~7MB of data transferred in 13 min. 7 sec. – Data transfer rate is approximately 900 bytes per second. – Circular buffer implemented … Continue reading

Posted in Serial Port Driver | Leave a comment

IEEE EIA/TIA-232-E specification and associated serial port device driver

Summary : The project uses RS 232 protocol to transfer a single byte of data between two host systems over a serial communication channel. Following are the rcs files : 1. Intialization module : RCS file: ./initialization.c,v Working file: initialization.c … Continue reading

Posted in Serial Port Driver | Leave a comment

IEEE Std 1284 – 1994 : Standard Signalling Method for a bi-directional parallel peripheral interface for personal computers (Nibble Mode) and associated device driver

This project implements the protocol, for data transfer between a personal computer and a parallel peripheral interface, under NIBBLE MODE. The protocol has been implemented by using polling method for checking the status of the peripheral device and the host. … Continue reading

Posted in Parallel Port Driver | Leave a comment

IEEE Std 1284 – 1994 : Standard Signalling Method for a bi-directional parallel peripheral interface for personal computers ( Byte Mode) and associated device driver

Writing a driver for 74LS244 parallel port and implementing read and write operations under compatability mode. Following are the rcs files : 1. initialization : RCS file: ./initialization.c,v Working file: initialization.c head: 1.4 branch: locks: strict root: 1.4 access list: … Continue reading

Posted in Parallel Port Driver | Leave a comment

Character Driver ( Registration, Open, Write, Cleanup) along with proc

Character driver completed and successfully tested with registration, open, write and cleanup modules and debugged using proc file system. The logfiles are as under : RCS file: initialization.c,v 3 Working file: initialization.c 4 head: 1.5 5 branch: 6 locks: strict … Continue reading

Posted in Character Driver | Leave a comment

MULTI-THREADED FTP SERVER

Hi guys, I’ve tried to implement a multi-threaded FTP server that enables the clients to download files from the server. I will be posting the project on git-hub along with all its source code. You are most welcome to test … Continue reading

Posted in Project 04: FTP based Client Server using Threads and Sockets | Leave a comment

Server rcs ( TCP, AF_UNIX)

1 2 RCS file: server.c,v 3 Working file: server.c 4 head: 1.2 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 2; selected revisions: 2 11 description: 12 Implementation of server. … Continue reading

Posted in Uncategorized | Leave a comment

Server rcs ( UDP, AF_UNIX)

1 2 RCS file: server.c,v 3 Working file: server.c 4 head: 1.2 5 branch: 6 locks: strict 7 root: 1.2 8 access list: 9 symbolic names: 10 keyword substitution: kv 11 total revisions: 2; selected revisions: 2 12 description: 13 … Continue reading

Posted in Uncategorized | Leave a comment

Server Implementation ( UDP , AF_INET)

1 2 RCS file: server.c,v 3 Working file: server.c 4 head: 1.2 5 branch: 6 locks: strict 7 root: 1.2 8 access list: 9 symbolic names: 10 keyword substitution: kv 11 total revisions: 2; selected revisions: 2 12 description: 13 … Continue reading

Posted in Uncategorized | Leave a comment

Socket Programming : ( Server Implementation for TCP under AF_INET domain )

1 2 RCS file: server.c,v 3 Working file: server.c 4 head: 1.2 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 2; selected revisions: 2 11 description: 12 Implementation of server … Continue reading

Posted in Uncategorized | Leave a comment

A chat client ( to chat between two terminals) : Source code snippet

ret_msnd = msgsnd(ret_mget, &m_p, sizeof(struct content), 0); 89 if(strcmp(m_p.con.msg, “exit”) == 10) 90 { 91 printf(“Client 1 says bye\n”); 92 kill(pid, SIGINT); /* kill the child generated for reading the inbox, before parent goe s off */ 93 exit(EXIT_SUCCESS); 94 … Continue reading

Posted in Uncategorized | Leave a comment

IPC (Using FIFOS , without semaphores)

1 2 RCS file: server.c,v 3 Working file: server.c 4 head: 1.5 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 5; selected revisions: 5 11 description: 12 Implementing ipc using … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

IPC (USING PIPES, WITHOUT SYNCHRNISATION)

1 2 RCS file: server.c,v 3 Working file: server.c 4 head: 1.5 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 5; selected revisions: 5 11 description: 12 Implementing ipc using … Continue reading

Posted in Project 03: Client Server Communication using Linux and IPC | Leave a comment

Header file for double linklist : (All functions implemented except for a few in the misc menu)

1 #include<stdio.h> 2 #include<stdlib.h> 3 4 struct node 5 { 6         int info; 7         struct node *next; 8         struct node *prev; 9 }; 10 11 12 void mem_fail();                          // report failure of memory allocation and exit the program. 13 void … Continue reading

Posted in Uncategorized | Leave a comment

Queue : using array (enque, deque, search, traverse)

1 2 RCS file: main.c,v 3 Working file: main.c 4 head: 1.8 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 8;     selected revisions: 8 11 description: 12 Implementing queue operations … Continue reading

Posted in Project 2: Multiple Data Compression and Encryption | Leave a comment