USB Communications - Looking for Advice on Sandbox, Libraries, Tutorials

AI Thread Summary
The discussion revolves around seeking a suitable environment for USB communications similar to serial port programming. Users are looking for sandbox environments or libraries that facilitate USB communication, particularly in languages like Java, PHP, Perl, and Ada. While PHP, Perl, and Ada are deemed less relevant for application programming, Java has several third-party USB libraries available. One user specifically mentions challenges in setting up the javax-usb library in a Java application using NetBeans, encountering class not found errors. They seek guidance on properly integrating the necessary jar and properties files to develop a simple USB application, emphasizing the need for clear installation steps akin to those used for RS232 communication.
Fubini
Messages
13
Reaction score
0
I have a odds and ends question for anyone who wants to share knowledge. I just got done with a project doing serial port programming, and I want to take what I learned and expand that.

Is there any environment that is more or less a sandbox for USB communications? If you're familiar with serial programming, this is kind of what I'm looking for... something where you can select a USB port and send command strings over the line.

Alternately, are there any libraries available (particularly in maybe Java, PHP, Perl, Ada) that allow for USB communications?

I guess finally alternately, does anyone know of a good tutorial to the Windows API for USB programming (I assume there must be such a thing).

I've looked for the above and can't come up with anything.
 
Computer science news on Phys.org
Every major applications programming language has a USB library these days. Skip PHP, Perl, and Ada, since they are not generally considered applications programming languages. Java has several thid-party USB libraries which come up as the first result in a Google search for "Java USB."

- Warren
 
Wow, thanks.

Funny that stuff doesn't come up when you search "Java USB library".
 
java usb programming for windows

hello frnz
im working with java application programming for USB...i need steps to install java USB based API for windows...i have downloaded javax-usb-ri.rar
i need to know how to proceed further to develop application.i found one application named RunUSBControllerTest which came along with api downloads worked well when i run in command promt it created class files and executed properly,but under netbeans the same code showed multiple errors mentioning class not found on following lines
import usb.core.*;
import usb.windows.*;
import java.io.IOException;
import usb.test.ControllerUSBListener;
i can't run any other applications in command mode other than the one that came along with the package of usb api...
can anyone tell me how and where should i put jar file,properties file, jsr80...simply saying i need help to develop simeple application to test usb port.
steps to put jar file and properties file...just like working with rs232
 
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Back
Top