Comments (3)
Did you call open on device after you 'found' it. I had problem like that.
I got device from manager and than just tried to use it without opening it
(opening was not be needed on version 0.3.1 of library).
Andy
On Sun, Jul 24, 2016, 04:54 VmKid [email protected] wrote:
I am attempting to open a device (A Buzz! controller) to be written to.
Unfortunately, the writes don't seem to be working, Upon printing the last
error message, it tells me "Device not Initialized". The String
representation of the device is like this:HidDevice
[path=?\hid#vid_054c&pid_0002#6&1795862b&2&0000#{4d1e55b2-f16f-11cf-88cb-001111000030},
vendorId=0x54c, productId=0x2, serialNumber=null, releaseNumber=0x1101,
manufacturer=Logitech, product=Logitech Buzz(tm) Controller V1,
usagePage=0x1, usage=0x4, interfaceNumber=-1]Any help would be appreciated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#44, or mute the thread
https://github.com/notifications/unsubscribe-auth/AFPs5ShK443Fv8wAQDVgLaTeykkhhq0zks5qYuIOgaJpZM4JTfz5
.
from hid4java.
Yes, I did. The code that I'm using in this case is below:
if(controllerDevice != null){
if(!controllerDevice.isOpen()) controllerDevice.open();
System.out.println(controllerDevice.getLastErrorMessage());
controllerDevice.write(message, MESSAGE_LENGTH, (byte)0);
}
else System.out.println("Couldn't change lighting!");
from hid4java.
Closing as this is likely covered in #81.
from hid4java.
Related Issues (20)
- Add module name HOT 3
- I am not scanning my device using UsbHidEnumerationExample. Do I need to do anything to set the MAC? HOT 6
- Event hidDataReceived not working. HOT 2
- Option to open device in non-exclusive mode HOT 1
- When will 0.8.0 be released as example code doesn't compile when tried with latest published jar? HOT 7
- Support for Raspberry pi 4 HOT 4
- MacOS ARM incompatible HOT 3
- Unable to open connection to multiple identical devices HOT 1
- HidApi.read returning -2(DEVICE_ERROR) and "Device not initialised" seen when trying to fetch SN, PID HOT 4
- Specify minimum JNA version required HOT 1
- hid4java always uses the libusb variant of libhidapi on linux-x86-64 HOT 1
- support hidapi 0.14.0 HOT 2
- Branch cleanup HOT 1
- Update MVN repository content
- USB HID Set Report and Get Report HOT 10
- How can i read the scanner data. HOT 3
- Pre-release checklist for 0.8.0
- Regression in `hidApiLibrary.hid_open_path(path)` v 0.8 HOT 6
- On Ubuntu 22.04 64bit `WideStringBuffer` is not applicable for `hid_error`
- Support RPi OS "bullseye" aarch64; support old glibc versions HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hid4java.