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:
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.
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
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.
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
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?
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?
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?
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.
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):
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
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):
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).
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?
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.
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.
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.
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?
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?
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
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.
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.
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.
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.
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?
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.
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?
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.