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

Click For Summary

Discussion Overview

The discussion revolves around seeking advice on USB communications, particularly in relation to programming environments, libraries, and tutorials. Participants are exploring options for sandbox environments similar to serial port programming, as well as specific libraries and resources for USB programming in various languages.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant inquires about sandbox environments for USB communications that allow for command string transmission, similar to serial programming.
  • Another participant asserts that most major programming languages have USB libraries, suggesting that PHP, Perl, and Ada may not be the best choices for applications programming.
  • A participant expresses surprise that relevant resources for "Java USB library" did not appear in their search results.
  • A user requests guidance on installing and using a Java USB API for Windows, detailing issues encountered with class not found errors in NetBeans and seeking help on integrating necessary files.

Areas of Agreement / Disagreement

Participants generally agree that USB libraries are available for major programming languages, but there is no consensus on the best options or the specific challenges faced in implementing them.

Contextual Notes

The discussion includes unresolved technical issues related to Java USB API integration, such as file placement and error handling in development environments.

Who May Find This Useful

Individuals interested in USB communications programming, particularly those working with Java or seeking to understand library options and installation processes.

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
 

Similar threads

Replies
1
Views
3K
Replies
1
Views
1K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
3
Views
5K
Replies
1
Views
2K
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
16K
  • · Replies 1 ·
Replies
1
Views
2K