Programming :: Character Device Driver For Communication Between Two Pc's In Code?

Apr 3, 2010

i woul like to know if i could get help in writing a charater device driver for communication between two pc's in linux using RS-232 serial port.

View 5 Replies


ADVERTISEMENT

Programming :: Character Device Driver And Mknod?

Mar 31, 2010

I've a problem with character device mounting. I've a character device module code. Here is the code

Code: /* chardev.c: Creates a read-only char device that says how many times
* you've read from the dev file
*/
#if defined(CONFIG_MODVERSIONS) && ! defined(MODVERSIONS)
#include <linux/modversions.h>
#define MODVERSIONS

[Code]...

View 1 Replies View Related

Programming :: Analyzing USB Driver Source Code?

Nov 29, 2010

For one of my class projects, we have to analyze a usb keyboard driver source code and be able to understand it and present it to the class. Me and a few other people are working together by breaking up the code into sections so each person can analyze a section of code.Now I've ran into a section of this code that I am a little confused about. It seems fairly simple but I just wanted to double check since I wasn't able to find a solid answer.

Code:
static const unsigned char usb_kbd_keycode[256] = {
0, 0, 0, 0, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38,

[code]....

View 10 Replies View Related

Programming :: Searching For Video Or Screen Cast Which Shows Device Driver Programming?

May 30, 2010

I did searched you tube but my results were not great.I have 2 books on KernelProgramming.I feel I need if some where I can get a video tutorial which can help me to understand how to develop a Linux Device driver that will be great.I had a look at Greg Kroah Hartmans video lecture of developing patches on ......I have been reading books and a lot of stuff.So I wish if I could get a video lecture that would be better

View 1 Replies View Related

Networking :: Communication Without Loopback Device

Jan 13, 2010

I have two ethernet card on my computer, I want to make a TCP or UDP communication between these two cards, so I disable loopback: #ifconfig lo down. but with out loopback I can't even ping an eth from another one. how should I do? I want traffic to really pass eth cards.

View 2 Replies View Related

Software :: Communication With Some Small SPI Driver

Mar 15, 2010

I am moving some code for to work with SPI interface from windows to Linux SUSE platform and for to make it working I have to communicate with some small SPI driver.

I have few libraries generated by that driver:
libi2cbrdg.a
libi2cbrdg.la
libi2cbrdg.so
libi2cbrdg.so.1
libi2cbrdg.so.1.1.0

I am compiling my project with following makefile:
comp: ErrorCodes.h Errors.h FrameDll.h FrameDllHeader.h Framework.h Functions.h TargetProcessor.h Layout1.h ModCommon.h ModScalerDB.h ProxyIDs.h SPIProxy.h SPITuning.cpp ModBiquad.h ModCommon.h ModDeinterleave.h ModFloatToFract32.h
g++ -g -L./lib -li2cbrdg ErrorCodes.h Errors.h FrameDll.h FrameDllHeader.h Framework.h Functions.h TargetProcessor.h Layout1.h ModCommon.h ModScalerDB.h ProxyIDs.h SPIProxy.h SPITuning.cpp -o comp.o

Output:
SPIProxy.h: In member function "virtual int CSPIProxy::_Read(void*, int)":
SPIProxy.h:55: error: "U2C_IoWrite" was not declared in this scope
SPIProxy.h:56: error: "U2C_SpiRead" was not declared in this scope
SPIProxy.h: In member function "virtual int CSPIProxy::_Write(const void*, int)":
SPIProxy.h:65: error: "U2C_IoWrite" was not declared in this scope
SPIProxy.h:66: error: "U2C_SpiWrite" was not declared in this scope .....

But still as u see I have some functions missed I know that they are in these libraries.

View 2 Replies View Related

Networking :: Communication Manager Daemon And HP Laptops With Synaptics Pointing Device?

Nov 7, 2010

I have installed 10.04 on several machines as well as imbedded inside VISTA. All of these installs work fine except the one on my HP Pavillion dv9000. The synaptics device on these machines is very touchy in all operating systems, but caused a strange issue in ubuntu 10.10. While connected to the internet and working fine I barely touched the pad and everything quit. I rebooted and found no way to reconnect to the internet. On the panel there was a little icon about the connection manager. Hovering over this icon gave the message "Connection Manager daemon not working". The usual tab to "enable networking" was dim and could not be activated.

I searched for several hours and found no reference regarding this daemon. Is there a source of the op sys names for such daemons and what sort of terminal command would I use to restart it if I knew what it was called? I ended up scrubbing the partition and reinstalling. Even the recovery process would not get the daemon to restart.

View 1 Replies View Related

Programming :: Write USB Device Driver?

Oct 11, 2010

I know, I know..."How long is a piece of string"?

I have one of these devices:

[URL]

Of course, it's Windows only, and XP only at that. However, the data that needs transferred between the device and the computer should be fairly basic, unless it offloads a lot of processing to the computer. I'm not a programmer, nor do I play one on TV, but I have written some fairly complicated microcontroller programs and some basic Java GUIs. Besides writing the actual code, how hard is it to do whatever needs done to make a Linux device driver, apart from the code to make the device work?

View 2 Replies View Related

Programming :: Block Device Driver ?

Nov 30, 2010

Is there an easy example of a block device driver I could follow as a guide to write my own module?

View 5 Replies View Related

Ubuntu :: How To Do Device Driver Programming

Jan 14, 2011

How to do device driver programming in Ubuntu 10.04?

View 2 Replies View Related

Ubuntu :: Deskjet 940c Wouldn't Print - Errors With Communication And The Initial Device?

Apr 19, 2011

[i use Ubuntu linux 10.04 LTS - the Lucid Lynx] i tried to print a document and i got the following message from the "document print status (my jobs)": "There was a problem processing document 'take it easy' (job 400)" i tried to print other things but i got the same error. after any print request i sent the printer asked me to release the paper it took, and when i release it, it printed this:"Unable to open the initial device, quitting." i have "HP Device Manager" installed on my computer, and lately i tried to install a wireless printer (officejet 4500 g510n-z) through it, and it failed because the connection between the printer and my computer disconnected before the terminal finished the installation. i didn't try to print with the deskjet right after it but now when i try- it doesn't work, so it might have something to do with my current problem... also when i looked at the HP Device Manager i saw the deskjet printer icon marked with X so i used this program's option "Setup Device" and the X mark disappeared.. and it still doesn't work.

View 2 Replies View Related

General :: Sed Code To Replace Character?

May 17, 2011

This is what i doing to remove ( and ) sed 's/(//'|sed 's/)//') Can you offer me some better sed code that remove ( and ) with blank without using pipe (|) . I mean sed code that check ( or ) and replace that with blank character.

View 2 Replies View Related

Programming :: Device Driver Is Dropping Characters?

Sep 23, 2010

I wrote a small hello world type of character device driver. When I type echo -n "abcdef" > /dev/bond and do a cat /dev/bond then only last "f" of above input abcdef is displayed rest nothing is displayed. I asked this question earlier and some people suggested me some modifications I have done and experimented all that but I am unable to catch the error.

Here is the code

Code:
/* Necessary includes for device drivers */
#include <linux/init.h>
//#include <linux/config.h>
#include <linux/module.h>

[Code].....

View 3 Replies View Related

Programming :: Create A Device Driver For User Applications?

Feb 7, 2010

I have a user Application for transferring the data from one PC to the other PC using Ethernet Port, can we create a device driver for that ?? that means it should act like a virtual device, if we write data into /dev/some file, it should go the other PC

View 3 Replies View Related

General :: Insert Character Code Into Text Editor?

Aug 11, 2010

I need a lightweight GUI text editor on my Ubuntu Lucid system which lets me specify a Unicode code point (e.g. U+1234), and inserts that character to a UTF-8 text document. I know that gedit can't do it (not even with the Character Map plugin).

I'm not interested in solutions involving any kind of emacs or vi. I'm also not interested in text editors running in the terminal (such as joe, which has this functionality). I need the absolute simplest, smallest and fastest plain text editor for Linux which lets me type a few letters, insert a few characters by their code, type some more letters, and then save the .txt file as UTF-8-encoded.

View 1 Replies View Related

General :: Use The Man / Info / Apropos Pages - Character Instructed The Shell To Interpret A Special Character As An Ordinary Character?

Mar 27, 2010

1.What character instructd the shell to interpret a special character as an ordinary character?

2.What directory contains some of the utilities available on the system in the form of binary files?

3. What command is used to search the location of a utility?

4. What command is used to instruct the editor to write the file and quit the editor?

5. What key quits the more utility and displays the shell prompt?

6. What command starts a child shell as the super user, taking on root's identity and environment?

7. Which wildcard characters can be used for searching all the files in the system that start with "A"?

8. The user name or login name of the super user is????

[Code]....

View 10 Replies View Related

Ubuntu :: Program Kernel Modules And Smoothly Transition In Device Driver Programming?

Apr 27, 2011

i am trying learn to program linux kernel modules and smoothly transition in device driver programming. I have a year and a half worth of programming in C and have been using linux for years!! But my question is how do i compile a module? I got as far as coding it but am stuck as of now.

View 2 Replies View Related

Programming :: Communication Between Bash And Firefox

Aug 24, 2010

I have been able to use bash to initiate a google seache via firefox. I would like to either copy the source page to a file via wget or send firefox short cuts to the other terminal's firefox search page to put the html file in a directory. I seem to remember but maybe incorrectly that there exist hexadecimal codes for each keyboard shortcut in firefox. Maybe these could be echo-ed from bash to the firefox search page.

View 2 Replies View Related

Programming :: Communication Data Between Different Process

Nov 22, 2010

I would like to send struct data from process A to process B but I dont known what is the best way. I have read about IPC, but there are a lot of ways to do it.

View 2 Replies View Related

General :: Read From A Character Device?

Oct 5, 2009

i studied the program chardev.c from 'The kernel module programming guide'. The text tells me that by doing a :

1. 'cat' the character device is opened.

2. hi > /dev/hello the character device is written into.

now i wanted to know how to 'read' from the character device !

View 3 Replies View Related

General :: How To Unregister A Character Device

May 17, 2010

I'm reading linux device drivers,
and I'm creating a scull-like driver.

I alloc a chrdev region
with
alloc_chrdev_region(&dev,minor_number,number_of_devs);

how can i deallocate it ? I tried with
unregister_chrdev_region but it does work only for
statically allocated devices.

i want to deallocate it so that only a single major number is assigned to my driver and

cat /dev/devices | grep $dev_name
returns no more than 1 line.

View 4 Replies View Related

Programming :: C++ - Two Way Communication Between Objects If A (obj) Creates An Instance Of B (obj)

Apr 6, 2011

I have two classes, for argument's sake A and B. A implements the core functionality, B is an encapsulated data structure. If you imagine this situation
[code]...

From within B's member functions, I would like to access the public function() in class A. This is not an inheritance issue, they are two discrete classes with radically different functionality. Class A makes an object of B.

View 5 Replies View Related

Programming :: Appropriate Interprocess Communication With Data Preservation?

May 29, 2011

I am searching for an interprocess communication that is platform and language independent and is two way communication among different processes and the most important thing is the ipc should have the ability to store data until the receiver receives it.

View 2 Replies View Related

OpenSUSE :: Find What Device To Use For A Character Something Plugged Into USB

Apr 27, 2011

There are so many system information tools i figure that this one would be in the set. I just can't seen to find it.

View 9 Replies View Related

Programming :: What Supposed To Do With Communication Protocol Reference Guide?

Jan 25, 2011

how am I supposed to use this guide. The doc states different messages lengths and formats, as a programmer, how should I utilize these information?Just fyi, my question is a general qns and does not necessarily target to just using netxms, but could be any other opensource as well.

View 4 Replies View Related

Programming :: Fast Inter-application Communication For Academic Simulator

Dec 1, 2010

I have an academic simulator software and I want to visualize its output at the same time the simulation is happening. However I want to separate visualization and simulation modules. The simulation data will be held in an array of a size around 0.5M and will be read only to visualization software (but updated regularly by simulator).

- In past I have used shared memory to share small variables among two applications.

- TCP/IP adds the option of having the simulator and visualization applications on separate machines but the implementation will be more difficult.

- I have also thought about an abstraction layer which allows to replace the communication/interconnection layer with other methods later (file/network/shared memory/pipe).

View 6 Replies View Related

Programming :: Selenium Java Code Into Equivalent Php Code?

Mar 30, 2011

I need to rewrite the selenium java code into its equivalent php code.

View 5 Replies View Related

Programming :: Serial Port Communication Program Always Lose One Byte Data: 0x00?

Dec 13, 2009

I wrote a serial port communication program to access a equipment.

int main(void)
{
int fd = 0;
int nread = 0,i = 0,nwrite = 0, tmpread = 0, m = 0, n = 0 ;

[code]....

View 2 Replies View Related

Fedora Installation :: Device Driver For Usb To Detect Device?

Sep 19, 2009

I am currently using fedora 11 kernel 2.6.29 version, i wanted to write device driver for usb to detect my own device. My project is radio with computer. My fm radio get connected to usb port so i need to write h/w interfacing program.

View 1 Replies View Related

Hardware :: USB Device Is Not Claimed By Any Active Driver For Every Device

Nov 10, 2010

The error "USB device 6 (vend/prod 0x603/0xf2) is not claimed by any active driver." is in dmesg every time I connect my Logitech keyboard to my system. I also tried (all with the same error):
- Memory stick
- DVD-burner
- Compaq mouse

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved