Software :: Code A Host Application To Talk To A HID Device In Debian?

Dec 11, 2009

I got a trouble about communicating between host application and HID device (with a button) in a embedded Debian Linux OS. The both of them are working fine on ubuntu. When I insert my HID device on my embedded debian linux Unit, following message show up:

# usb 1-1: new low speed USB device using ehci_marvell and address 3
usb 1-1: configuration #1 chosen from 1 choice
HID device not claimed by input or hiddev

and in /dev folder some usbdev files are generated:

usbdev1.3
usbdev1.3_ep00
usbdev1.3_ep02
usbdev1.3_ep81
usbdev1.3_ep83

When I run my host app, and press the button, no any data transferring happened (check with CATc captured data). I know the host app run fine on uBuntu, because I know how to open /dev/usb/hiddev0 in my code. I don't know how to open this kind of file in debian linux. I tried use each files above, the button still doesn't work. Can anyone help me to point out if it is HID driver issue or coding issue.

View 1 Replies


ADVERTISEMENT

Debian Configuration :: Visudo To Authorize User To Start Only One Application With Sudo On One Peculiar Host

Jul 14, 2015

I would like to configure visudo to authorize user to start only one application with sudo on one peculiar host and forbid everything else so, after reading the man, I came up with :

Code:

Select alluser       ALL = (ALL:ALL) !ALL
user       host_name = /usr/bin/application

But it does not seem to work.

View 2 Replies View Related

Debian Configuration :: Cannot Get Machines To Talk To Each Other Over NFS

Jan 27, 2016

I have read the wiki and several online tutorials and still cannot get my machines to talk to each other over NFS.Both are amd64 with Debian testing. Tutorials invoke programs that do not exist in testing, instructions are inadequate or too old.

View 10 Replies View Related

Debian Hardware :: DVD Slower System - Error Benchmarking: "helper Exited With Exit Code 1: Device /dev/sr0 Is Too Slow To Benchmark"

Oct 25, 2010

when i want copy something from dvd my debian squeeze is total slow cpu ussage is 100% and write 2.2 mb/s and musick is stop and play. This same is on burning cd /dvd the device buffer is an about 10-15% this dvd is Pionier 116D on windows xp work perfect. I try benchmark dvd form gnome-disk-utility but i got Error benchmarking: helper exited with exit code 1: Device /dev/sr0 is too slow to benchmark

[Code]....

( everything works on debian lenny on the old kernel 2.6.26 ) I instaling a few kernel and compiling 2.6.35.7 with .config file form ubuntu on finaly didn't help

View 1 Replies View Related

Ubuntu Servers :: Insert The Code Into The Virtual Host File?

Feb 19, 2010

Im looking to use the Apache2 GeoIP mod to block countries from accessing a website. I've searched, but cannot seem to find any information on how to insert the code into the virtual host file. Does anyone know how to get this working or can point me in the right direction?

View 2 Replies View Related

Networking :: C Source Code For Scanning A Shared Directory Of A Host

Mar 31, 2011

c source code for scanning a shared directory of a host ?

View 3 Replies View Related

Software :: Source Code For Application Installed Thru Apt-Get

Dec 18, 2008

I have installed some applications thru 'apt-get' command. I found that it is much different with Windows where normally the installed program is in one folder while in Ubuntu, the program will located in many folders. I wonder whether I can get the full source code for the application I have installed thru 'apt-get'? Where to locate them?

This is because I have faced problem in using the Kphone installed thru 'apt-get' and installed thru compilation of source code from tarball. I get quite bad voice quality when I called using Kphone SI 'sudo make install' from the source tarball downloaded from sourceforge.net. However, good voice quality is obtained when I used Kphone installed thru 'sudo apt-get' command. Is that the source code different or is that because of Kphone is differs with Kphone SI?

View 11 Replies View Related

Programming :: Application Sometimes Hang When Executing This C Code

Nov 2, 2010

I have an application, probably cpu-intensive because sometimes it leaves the cpu with 0% idle (in top). Sometimes it hangs ("Done" does not print) when executing this part, but most of the time it executes just fine. Is there any wrong with this code?

View 2 Replies View Related

CentOS 5 :: Cannot Find Source Code For Application?

Jun 21, 2010

I am new to centOS and one of my application need linux source code as such I am failed to find suitable link for that. Any suitable link for Linux kernel version: 2.6.18-194.el5.

View 2 Replies View Related

Programming :: Wrote Code For An Application Called Nagios?

Sep 3, 2010

I suspect this will be beyond my abilities but thought I'd give it a try. A few months ago I wrote code for an application called nagios which would send me tweets when a system within my network ran into a problem (code below):

Code:
define command {
command_name notify-host-twitter

[code]....

View 7 Replies View Related

General :: Sending Application Log To Remote Host?

Feb 25, 2011

How is it done?Right now its just getting written in a local text file(not /var/../.., not using syslog at all).and every day a new file is being created

View 3 Replies View Related

OpenSUSE Install :: Unable To Upgrade To 11.4: Can't Resolve Host / Error Code: Connection Failed?

Apr 1, 2011

I'm currently running 11.3 and decided I'd try upgrading to 11.4 following the instructions here: SDB:System upgrade - openSUSEUnfortunately, my attempts are defeated at the point of trying to refresh the new repos; I get the following message (for the oss repo, in this case):

Download (curl) error for 'url':
Error code: Connection failed
Error message: Couldn't resolve host 'download.opensuse.org'

With 11.4 replaced by 11.3 in the repo url, it refreshes just fine. The only repository that works when I change 11.3 to 11.4 is the Packman repo. I'm not really sure why the connection fails for 11.4 but not 11.3!

Further info: I have an old router with no IPv6 support, but have IPv6 disabled system-wide. I can enter the url for the repositories into firefox and they come up just fine - it's only with zypper/YaST that I get the above error message.I also tried upgrading using the network CD but ran into the same sort of problem. In this case it may be because the CD installer doesn't disable IPv6. (I didn't want to download the DVD at my connection speed, and the KDE live CD is not listed as suitable for upgrade).

View 9 Replies View Related

Software :: Xlib - Run A Graphical Application At A Remote Host ?

Dec 21, 2008

When trying to run a graphical application at a remote host i get the error

Xlib: 'connection to ":0.0" refused by server'

Xlib: No protocol specified

How to address this?

View 1 Replies View Related

Fedora :: How To Pair Bluetooth Device Without Pin Code?

Jul 12, 2010

I have laptop with bluetooth and I bought PS3 bluetooth remote. In windows this remote is working with EventGhost and I would like to use it in Fedora as well. This remote has to be paired without a pin code, which is how I paired it in windows.In Fedora, however, there is no such option "no pin" when using a standard way to connect bluetooth device.How can I pair this remote in Fedora?

View 11 Replies View Related

CentOS 5 :: Accessing The Web Application Running In VirtualBox From Host Machine?

Feb 11, 2009

I installed Tomcat5.5.23 on CentOS5.2 running on Sun xVM Virtual Box2.1.2. When i try to view Tomcat( Running in Vitual Centos)'s home page in the web browser of Host( XP sp2) am getting the "Connection Time out" error.. How to resolve this problem.

View 2 Replies View Related

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 View Related

Ubuntu :: Code To Access Hard Disk Sectors (LoopBack Device)

Jan 26, 2011

I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it has the following configuration.

Code: $> sudo fdisk -l /dev/loop0
Disk /dev/loop0: 10 MB, 10977280 bytes
255 heads, 63 sectors/track, 1 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/loop0 doesn't contain a valid partition table Now what I want to do is develop a c++ program to read & write files to this loop back device,which I'm using to simulate an actual hard disk,at the blocks & sectors level. So far I've come up with the following code. But I'm still unable to read files from the hard disk one block at a time.

Code: #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
char block[512]; int length=0;
cout<<"Implementation of the File Handler Read Method..."<<endl;
FILE *f = fopen("/dev/loop0", "r");
if(f == NULL) {
cout<<"Error In Opening the HardDisk File Retuning Error..."<<endl; return -1; }
//Read One Block of Data to Buffer length = fread(block, 1, sizeof(block), f);
/* Do something with the data */ cout<<"Length : "<<length<<endl;
return 0; }

When I run this Program All what I get is the message for NULL. "Error In Opening the HardDisk File Retuning Error...". So I could open the loopback device as a file an access it at the sectors & block level.

View 1 Replies View Related

General :: USB Host Controller Device Driver Needed For Slax Live CD

Jan 1, 2011

For years I have used a Slax live CD on a laptop to clone internal HDDs to USB HDDs. I recently purchased a Sony VPCF136FM laptop with Intel Core i7 CPU. It apparently has USB 3.0 ports. The problem is the USB ports are dead with Slax. There is a USB devise driver available for Windows 7 from Sony but nothing for Linux operating systems. Can this driver be ported to Linux? It is an exacutable (XXX.exe). The chip for the USB Host is from Renesas Electronics (no help there, either). Where can I find a device driver to use with Slax and how would I install it?

View 3 Replies View Related

Hardware :: Accessing Device Driver From C Application

Jun 14, 2011

I wrote device driver to USB device, I can see it is alive and sending the data that I set it to send from the shell

Code:
cat /dev/myDev
How can I read from the device using C code?
I've tried to open it as a file and read it's content to buffer but noting returns..

Code:
char bufferin[500];
FILE* myDev = fopen("/dev/myDev", "r+");
size = fread(bufferin, 500, 500, myDev);

View 2 Replies View Related

Fedora :: Audacity Without Device / No Sound System To Choose At Preferences/devives/host?

Jun 1, 2011

as audacity comes without MP3 support I tried to compile audacity for Fedora 13 myself. The compilation works fine (configure/make/make install) but there is no sound system to choose at preferences/devives/host.

Does anyone ahve an idea what went wrong with compilation or where I can finde rpm files including MP3 support?

View 4 Replies View Related

OpenSUSE Hardware :: No Application That Can Open Type Block Device (inode/blockdevice)?

Jul 21, 2010

I'm having trouble mounting hard drives and partitions - and am rather nervous about using Yast partitioner to do this. Is there something that would tell me about mount points in Yast partitioner? So far I haven't been able to find that information anywhere. I don't want to lose information on existing drives and partitions but do want to be able to access them.Some of them appear under disk information in "My Computer" but if I try to mount them I get this error message.There is no application installed that can open files of the type block device (inode/blockdevice).I was trying to edit fstab,his didn't seem straightforward either. I've been hacking this about in other Linux distros - so not entirely clueless

View 6 Replies View Related

Fedora :: Copy Text From An Application In The Host Machine And Paste The Text Into A Different App?

Feb 10, 2011

I'm running and XP virtual machine using KVM / QEMU. THere are time when I need to copy text from an application in the Fedora host machine and paste the text into a different app in the XP guest machine. I was able to do this using Vitualbox on an earlier version of Fedora.

View 1 Replies View Related

Ubuntu Networking :: Pairing Bluetooth Device Without Pairing Code?

Nov 8, 2010

I have a simple Bluetooth device I would like to pair with my computer. I detect it in the BlueTooth New Device Setup (from the GNOME pannel), detected as "Unknown", I enter its pairing code (1234) and click on "forward". But then it asks me to enter a code on the BlueTooth device... I don't have anything to enter any code on this device. I would like to simply connect to it! From other OS, I manage to connect to the device as it's not asking to write any pair code in the bluetooth device. The PIN code 1234 is enough to make the connection.

View 3 Replies View Related

Debian Configuration :: Dropbox Install For Debian Squeeze From Source Code

Feb 19, 2011

how to install Dropbox for Debian Squeeze from source.Please read everything before you begin. I prepared it as I installed Dropbox for my own system. Please Note: I use sudo, you may have to use root or 'su' from the command line. If you don't know the difference between sudo and su, then you shouldn't try this until you know. At the time I did this, the lastest dropbox version was 0.6.7.

View 7 Replies View Related

Networking :: Two Subnets Can't Talk To Each Other?

Jul 7, 2010

I have a firewall between two different subnets. The reason for the second subnet within the internal network is because I have a mail server that I want to protect. However, we need to make sure that the mail server can communicate with the internal network as well.

Mail server is 192.168.100.100
Firewall is 192.168.100.1 and 10.110.101.5 (and its gateway is 10.110.101.1 to the router)

I go to another workstation and ping the mail server. I can't. It times out. I do the same from the mail server. It times out as well.

View 1 Replies View Related

Debian Installation :: New Install Debian As VB Host With Kernel Error

Feb 22, 2010

I'm somewhat familiar with Ubuntu (familiar but not sharp!) but have never tried Debian OS until now. I've installed Debian 5 64bit as a guest on a Mac host. I'm impressed how smooth the install went; even installing VB Guest Additions went smoothly. But, I get a "Your system had a kernel failure" error after booting. I have searched the forum & didn't find this error. Everything seems to work okay but is there an update that isn't showing in the Update Manager? Could this have something to do with VirtualBox 3.1.4?

View 4 Replies View Related

Ubuntu :: Moved A VM Server Now VMs Can't Talk

Jun 18, 2010

I'm running Ubuntu 9.10 AMD64 with KVM and several VMs running the same OS. Everything was running fine and the VMs were using the host's network via bridging. The decision was made to move the server to completely different network. I shut it down, the system was moved and hooked up, and I got it up on the new network pretty easily--just modified /etc/network/interfaces and /etc/resolv.conf. No networking problems at all.

Then I fired up virt-manager, powered up one of the VMs, and made the same kinds of changes. It's not talking beyond the VM server. I can ping the host, but can't ping the gateway. "tcpdump -i eth0" shows plenty of traffic.

View 4 Replies View Related

Software :: Use TALK Command In System?

Jan 20, 2010

How to use the TALK command in linux i.e. what is the syntax used to run the TALK command.

View 3 Replies View Related

Programming :: It's Possible To 'talk To' A Website Like Faceboo

Nov 11, 2010

it's possible to "talk to" a website like facebook, and that's how games such as farmville have been built - i was wanting to know how this is architected, i.e. how does a website decide how to "offer up" its data to the outside world?i'd like your favourite web links, or even paper book recommendations, though i don't if those will be available or affordable over here, or, what would be especially great would be video lectures, maybe on videos?

View 4 Replies View Related

OpenSUSE :: Gogle Talk Plugin Crashes

Jan 12, 2011

I seem to be having an issue that started rather suddenly. when i enabled click to play in flags. i tried disabling click and play and google talk and even removing google talk and reinstalling with no luck. can someone give me an idea of what else to look for and try? I'm using Chromium 10.

View 5 Replies View Related







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