USB API

Is there any 'standard' implementation of JSR80 for 64 bit Linux. Is the code at javax-usb.org widely used, and does it work in this environment. Is there now anything in the core API.
Edited by: hamiljf on 07-Nov-2010 08:19

I just did a quick google for "java usb" and it looks like there are a lot of APIs and tutorials. Here is one that looks promising, and it looks like it works on Windows: jUSB.
Hope that helps!
- Tomas
My Blog - [tea time with meowkins|http://blogs.windwardreports.com/tomasr]

Similar Messages

  • USB API?  Solaris 8 or in 9?

    I am looking for any information on the USB api for Solaris. In the early docs on Solaris 8, it was mentioned that the api would be in a future release, but I cannot find it. Does anyone have information about its inclusion (or exclusion) in Solaris 8?
    Thanks in advance,
    John

    Have a look at the manpages (in s8) for uhci, ohci, hubd, usb_mid, hid and scsa2usb. The document "Writing Device Drivers" (see docs.sun.com) is also useful, as is the documentation on USB located at http://www.usb.org/developers/home.php3

  • Javax.usb api

    Hi there, I am used to programming in java since some months but only with simple things. I need to communicate with a usb via my GUI. I found this websites for javax.usb, and also found the some tar files and zip files. http://sf.gds.tuwien.ac.at/j/ja/javax-usb/
    Can somebody explain me how to implement this files and where will the files be stored in the system? I will greatlly appreciate if somebody can show me how the topology works and how many files i need to just get the data from usb into m system gui. I am looking for a common platform code if any out there.
    thanks for the help...

    Hi there, I am used to programming in java since some
    months but only with simple things. I need to
    communicate with a usb via my GUI. I found this
    websites for javax.usb, and also found the some tar
    files and zip files.
    http://sf.gds.tuwien.ac.at/j/ja/javax-usb/
    Can somebody explain me how to implement this files
    and where will the files be stored in the system? I
    will greatlly appreciate if somebody can show me how
    the topology works and how many files i need to just
    get the data from usb into m system gui. I am looking
    for a common platform code if any out there.
    thanks for the help...

  • Java to check USB HD

    Have anyone ever used java to check if a USB HD is connected?
    Where can I get reference or lib?
    Is it possible to check if the USB HD is connected as D: or E: or F:?
    Thanks in advance for any information!!
    Dino

    Thanks for your reply very much.
    Currently, I got Java USB API from http://www-124.ibm.com/developerworks/projects/javaxusb
    But still need some efforts to make it works.
    I don't know if the API can check which drive USB HD exists.
    Welcome to exchange experiences with the USB API.
    Dino

  • USB in Java

    So there is an API for linix, but what about windows? I'm trying to find anything on the use of USB through java. I've got a palm pilot I'm trying to communicate with.
    I'm finding theories and low level USB info, but java info on USB's
    whimper

    try
    http://www.serialio.com/
    its not free but probably does what you want
    until the USB spec is ironed out (or jUSB is ported to windows) it
    is unlikely that you will find a free solution. You could of course
    write your own usb API for java (or port jUSB)
    matfud

  • Mapping Windows API to Java - JNA

    I am trying to use JNA to implement the functions in the Win32 USB API (http://www2.hawaii.edu/~hermany/api.htm)
    I am trying to figure out how to map the following "HDEVINFO" which is defined as "typedef PVOID", which in turn is defined as typedef void* PVOID; (http://msdn2.microsoft.com/en-us/library/bb401729.aspx)
    ===================================================================================
         * From the API provided by Microsoft (http://msdn2.microsoft.com/en-us/library/ms792959.aspx)
         * HDEVINFO
         * SetupDiGetClassDevs(
         * IN LPGUID ClassGuid, OPTIONAL
         * IN PCTSTR Enumerator, OPTIONAL
         * IN HWND hwndParent, OPTIONAL
         * IN DWORD Flags
    http://www.alanmacek.com/usb/DDKFiles/setupapi.h
    typedef PVOID HDEVINFO;
    ====================================================================================
    HDEVINFO is supposed to be an array of structures for the device information set. How do I map HDEVINFO on to the Java class that mirrors the SetupDiGetClassDevs function in the API?

    Well I am using JNA (jna.jar) to make the call to the function available in the setupapi.dll. In the following code: Setupapi INSTANCE = (Setupapi) Native.loadLibrary("setupapi", Setupapi.class);*, this is what is being done. I am new to using JNA. Also, It would be great to have a resource that lists all the available functions for a Windows DLL. MSDN, of course is a good resource but it does not provide search results for a dll. One has to know the function to be called.
    public interface Setupapi extends StdCallLibrary {
          * Allocating an instance of the native library using the Native.loadLibrary(Class) method,
          * providing the native library interface
          * This instance is for convenient reuse. Alternatively, we can load the library into a
          * local variable so that it will be available for garbage collection when it goes out of scope
         Setupapi INSTANCE = (Setupapi) Native.loadLibrary("setupapi", Setupapi.class);
          * Declaring native structures to pass to  native functions.
          * To do this, create a class that extends Structure (https://jna.dev.java.net/javadoc/com/sun/jna/Structure.html)
          * and add public fields
          * (which may include arrays or nested structures).
          * Declaring methods that mirror the functions in the target library by defining Java methods with
          * the same name and argument types as the native function
          * (refer to the basic mappings (https://jna.dev.java.net/#mapping) or the
          * detailed table of type mappings (https://jna.dev.java.net/javadoc/overview-summary.html#marshalling) ).
          * From the API provided by Microsoft (http://msdn2.microsoft.com/en-us/library/ms792959.aspx)
          * HDEVINFO
          * SetupDiGetClassDevs(
          * IN LPGUID  ClassGuid,  OPTIONAL
          * IN PCTSTR  Enumerator,  OPTIONAL
          * IN HWND  hwndParent,  OPTIONAL
          * IN DWORD  Flags
          // TODO: public HDEVINFO SetupDiGetClassDevs(
    }

  • J2se and USB

    So...i'm puzzled! after searching for ways to use USB devices( webcam at the moment ) I found out that:
    -there is JMF, but it's not under development any more, or no longer supported
    -there is jUSB, but it's only for UNIX/LINUX (and Mac I think)
    -there is little chance for usb support included in J2SE because it would be considered a security issue /:)
    my dilemmas are:
    -how to get data from USB devices? I'm interested in a general way of streaming from USB because I plan to implement the algorithm in hardware. So i'm not interested in functions such as: getFrameFromWebcam() :p
    -the guy who said that direct access to a physical device is a security issue also said that the best way is to write a file of some type somewhere and the OS should do the rest...I guess under linux this is possible, but is there such a thing under windows? ...how?where?when?
    -I suppose at some point I will have to make my own usb api. I there some place I could find something similar to this: http://today.java.net/pub/a/today/2006/07/06/java-and-usb.html?page=2#create-your-own-javausb-api ? ...I understood that this guy wrote a C++ api. I'm interested in a J2SE version because I kinda hate C++ .
    Thanks
    PS: ...using Windows
    Edited by: breakbone on Oct 31, 2008 12:39 AM

    anyone?anything? :-s

  • USB Port support?

    Hi,
    There is JavaComm API for Serial and Parallel Port in Java.
    What about the USB Port? How Can communicate through USB Port?
    plz, suggest me the sides, code
    Thanks
    Pramod Kadam

    I believe there is a JSR called Java for USB API or IBM has a Java API for USB or a package called javax.usb....something like that !

  • Project not working after upgrade to Kura 1.2.0

    Hello everyone, newcomer in the kura world here.
    Recently got a project working with kura and OSGi framework in my working place, but as we re-factored some code and decided to upgrade to kura 1.2.0, the project in my machine it no longer working whereas my co-worker's does.
    my current system is:
    OS: elementary OS 0.2.1 luna
    Kernel: i686 Linux 3.8.0-44-generic
    CPU: Intel Core i3-2348M CPU @ 2.3GHz
    RAM: 4Gb
    Eclipse Version: Luna Service Release 2 (4.4.2)
    Eclipse Build id: 20150219-0600
    the log is full of not resolved references even though I imported the project as per https://www.eclipse.org/forums/index.php/t/1067345/ (he has a similar machine setup)

    Hello,
    Dependencies are missing from your Kura_Emulator_Linux.launch file. To correct these errors:
    1. Right click on Kura_Emulator_Linux.launch and select: Run As -> Run Configurations...
    2. On the Bundles tab, under Target-Platform, be sure the needed bundles are checked
    It looks like the main problem is javax.usb. Ensure that these bundles are enabled:
    javax.usb.api
    javax.usb.common
    javax.usb.linux
    If you continue to have problems, post the contents of your launch file and I can review it.
    Thanks,
    --Dave

  • Infra -Red via Java

    Right, here goes!
    I am looking to program an infra red transmitter to do various tasks. Initially (to get me started) I would like to be able to send TV remote control commands (e.g. change channel!). So where do I begin?!
    I've seen a USB infra-red transmitter, but it looks as though USB programming in Java isn't so straightforward.
    The end game is to be able to send signals via my web site, but that seems a long way off right now!
    Thanks
    Richard

    Right, here goes!
    I am looking to program an infra red transmitter to do
    various tasks. Initially (to get me started) I would
    like to be able to send TV remote control commands
    (e.g. change channel!). So where do I begin?!
    I've seen a USB infra-red transmitter, but it looks as
    though USB programming in Java isn't so
    straightforward.
    The Java USB API is still in the public draft stage of the Java Community Process, so many aspects of the API are not very clear. The intent of the Java USB API is to provide a unified specification API that would allow developers and vendors to create drivers for their own application. This specification strives to provide a standard library for all platforms and is targeted for the J2ME and J2SE platforms. However we can hope that by the end of the JCP the specification team will provide a good API for USB access. It could throw open a wide range of devices and services into the market.
    But, in the meantime you can search for any third party implementation for usb communication, if there is any.
    good luck!!
    >
    The end game is to be able to send signals via my web
    site, but that seems a long way off right now!
    Thanks
    Richard

  • Video Capture using VFWCapture

    Hi,
    I have been looking in the JMStudio source code for a solution to my problem, but no luck so far. Specifically, I have been concentrating on VFWManual, which uses the VFWCapture class and sets the desired format. However, I never can get any video capture when I run the VFWManual class.
    Anyway, here's my problem: I have a 4-Port USB hub to which I have attached three cameras. The hub itself is connected to one USB port on the computer. So, the computer only vfw://0 as the single source for all three cameras. Now, the first time I ran JMStudio, it gave me a neat little dialog box titled "Video Source" in which I was allowed to choose between the three cameras. The second time I ran it, it decided to use my previously selected camera but that's a different problem entirely.
    Here's my main question: Is there any way I can programatically switch between the cameras connected to the hub? I believe the answer lies in the VFWCapture class, but I don't quite know how to use it. From testing the VFWManual class, I could tell that the dialog which allowing me to choose between cameras was triggered by VFWCapture.capDriverDeviceConnect(). However, since I can't see the source code to VFWCapture, I don't know how those three cameras were found inside VFWCapture.
    I have been looking at the tutorials and sample code, and I finally got video capture to work using the DataSourceReader sample code from Sun's JMF website.
    Any ideas for programatically switching between those three cameras?
    Thanks.

    If your cameras do have a TWAIN driver, one
    possibility is to use the Java Twain packageI have tried the Java Twain package, but it has the same problem. It views the hub connected to three cameras as one source.
    I would prefer JMF because it has a media player, and my theory is that since I could use a JMF GUI to switch between cameras, I should be able to do it programatically. However, this requires inside knowledge about com.sun.media.vfw classes such as VFWCapture.
    One thing that really doesn't help is the fact that JMF source code is "temporarily" unavailable to the community. The other thing that doesn't help is that a USB API for Java is in its beginning stages of development.
    Any other ideas?
    [email protected]

  • Using Java to control external hardware

    Hi all,
    I'm new to the forums, I am an experienced Java developer for the internet and have done various GUI based academic and personal projects.
    What I want to work on at the moment is basically a swing based controller program which will controller some hardware which switches LEDs on and off, moving later to maybe fans and motors and stuff.
    My initial thoughts were get an LED matrix connected using a USB port, and then get a USB API to send commands to this. It would be far better if I somehow got a control board connected (wired or wireless) and then used Java to send over commands for a start to turn LEDs on and off.
    In essence I'm in need of answers to 2 questions:
    1) what hardware controller to use for this project, and how is it to be connected to my pc.
    2) which API?
    Thanks, I look forward to your replies.
    Harry
    Edited by: HPowar on Feb 25, 2008 5:07 AM

    I believe that parallax makes a microcontroller (Javelin ???) with some sort of java vm in firmware.
    Depending on your budget and assuming you want to go the microcontroller route, it might work for you.
    Edited by: johndjr on Feb 25, 2008 8:57 AM

  • Need assistance  to connect wit system ports

    i need ti connect the mobile with system by USB and need to access the messagin service , can any one assist me?

    At least not here. Maybe someone who provides a Java USB API, and someone who knows about your phone's interface.

  • How to connect to a usb cam through acrobat api??

    I have deveopled a plugin for acrobat...and want to initiate a usb cam through my plugin...is there any method available in the api to detect or connect to a usb cam????If yes please explain how to do so...

    ...is there any method available in the api to detect or connect to a usb cam????
    No. You may look at the apis of your operating system.

  • Are there any JAVA APIs that control usb ?

    i can't find any document JAVA APIs that control usb�C
    help me !!

    I think there is an API planned. But I think it is still in the specification state. Search the developer connection.

Maybe you are looking for

  • Error when connecting to IMAP mail server - untrus...

    I am using a Nokia N97 with the v21 firmware. I am connecting to a mail server via IMAP, using the phone's mail client (not mail for exchange). This has previously worked perfectly, however now I cannot update my inbox and view the emails. When I try

  • "Running Oracle Spatial Web Services" tutorial error

    Hi, I am currently working on setting up the WFS service with OC4J. I completed the initial tutorial to set it up and everything went well. I am now trying to run the WFS demos from WSCLIENT and using this tutorial: http://www.oracle.com/technology/o

  • Problem in Vc theme editing

    Hi,            I have a problem in changing vc theme.By using portal theme editor i have changed the theme in FlexRuntimecontrols but its not reflecting in VC.            Currently i am working in VC 7.0  sp13        Regards   Bala

  • Itunes error 8288

    All started with a damaged iTunes library. Fixed that with importing the ITunes Library xml file. Now songs purchased or apps updated will show up in iTunes, but are not available to play or the apps will not update to my iPod touch? With the songs I

  • Problème avec lion

    Bonjour, je souhaite désinstaller mac osx LION de mon mini mac pour réinstaller snow leopard comment faire????