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

Similar Messages

  • GemPlus GemPC430 USB and Java

    Hi all.
    I guess this is a good place to send a question I have about GemPlus GemPC430 USB and Java.
    I have installed the USB hardware and my Windows 2000 (with J2SE 1.4.1) recognizes it. The problem I've got is that I have a nice card with (I guess) a Secure Certificate in it and I have to read it and to operate with it. And I don't know how.
    Even, the problem grows because I have to access the reader/card from an applet.
    I've been taking a look into OpenCard.org but I'm still lost.
    Any idea where to start from?
    Any sample of code that can help me?
    Thanks in advance.
    Arturo Garcia

    You should contact Gem+.
    They should have provided a PKCS 11 implementation for PKI management. ( Keep in mind this might require a Microsoft Cryptographic Service Provider to exist on your machine )
    If they don't have a PKCS 11 implementation, you need to ask them the APDU to get the cert. This would require you to perform all validation on that cert as well.

  • USB Portable Java SDK?

    Has anyone made a USB portable version of the Java SDK for compiling on the go? Windows version only. If somone has not, how could I go about doing this?

    Not sure about a completely portable one, but I run Eclipse off my USB and it works fine. The occasional cough-up and screen freeze, but it all works.
    However - not sure about it being completely portable. I run it on my school's lab computers, which have Netbeans and the JDK already installed on it. Haven't tried it on any computers without a JDK.

  • Using javax.usb to read usb using java

    hai friends
    iam trying to read data from usb and i had tried over javax,usb package it asks for the implemntation og javax.usb.UsbServices interface. wt is the solution
    with regards hbk

    I want to do it in windows

  • USB Reader/Java Card RMI

    Hi everybody,
    I am using ACS USB Smart card Reader.
    1) I am using apdutool for downloading scripts into card.
    But that is working just for Serial Ports and not USB ports.
    Can anybody help me out in this issue?
    2) If i deploy my applet by other programs than also selectApplet()
    method gives SEstablishConnection Exception.
    3) Also, should we use JavaCardRMI for developing card apps, as it hides us from all low level issues? I'vent seen anybody discussing about JCRMI so far in this forum. I dont know abt current trend. Can u plz guide me?
    Can anybody answer me in this issue..
    Thx in advance.
    Nikunj.

    Thx very much Joseph !!!
    Now I am able to send some apdu and obtaining responses from it !!
    But I've made my whole application(server+client) by using JCRMI, which i am running on simulator cref.exe.
    1)It runs fine with simulator. But how to deploy my Card Applet on the ACS U30 MicoController card ??
    I failed to use both of following ways:
    A) apdutool does not accept option for USB port.
    B) If i send script generated by scriptgen to the card
    it fails on the very first Applet Selection APDU:
    APDU: 00 A4 A4 00 00 AID...
    RESPONSE: 6E 00 Fail :-((
    Can you plzz tell am i on the right path?
    2)Regarding design point of view, can't I use JCRMI fully and never use CardFileServices etc.. Is JCRMI card specific? How can i know my card is supporting it?
    3)KeyBuilder,Cipher etc.. These cryptographic classes are implemented by JCDK or Card Vendor? Are they Card specific?
    Thx in advance!!

  • Can't open Serial port in notebook (use Serial to USB)

    OTL
    use Serial to USB and java communication 2.0, windows 2003
    and notebook which has no RS232C port
    testing desktop it is done.
    notebook does not work....
    How can i open serial port in notebook ...

    Saludos
    tengo el mismo problema, aunque he encontrado algunas
    API pero solo tienen soporte para LINUX:
    * jsr80 y
    * jUSB API
    Si tienen alguna solucion haganmela saber.In English via Babelfish (and a little common sense), in case anyone knows a solution:
    Greetings, I have the same problem, although I have found some API but they only have support for LINUX:
    * jsr80
    and
    * jUSB API
    If they have some solution I'd like to know.

  • JavaComm Getting it to work / USB

    I can't seem to get my JCAPI apps to work. I always get an exception that no ports were found.
    Now, my program is trying to communicate with a Sony portable music player via a USB connection.
    Any ideas?

    I wasn't aware that the Java Comm API worked with USB.
    There are supposed to be other packages for USB in Java.

  • Using an additional Keyboard as inputs

    Hello, I hope this is the place to post this. I have never used a forum before. Anyway, I am creating sort of a monitor and control system, or home alarm system. I have been trying to find the best way to have inputs, experimenting with parrellel input ect. And then I took apart an old keyboard I had and there it was. The tell all of imputs. I can create over 200 differnt key codes with only 28 wires, there is a matrix of 9 and 17 on the keyboard I am working on. But anyway, key [d] could be the doorbell input, and key [m] could be the motion sensor ect. The only problem is that if I program it with just the one keyboard we all normally have, you have to disconnect the keyboard and plug in the other one after you start up the program. I am wanting to add maybe a usb keyboard to the computer and have 2 keyboards, one ps2 keyboard(normal operation) and one usb keyboard (inputs). Does anyone know how to approach this and tell java to listen for keyboard inputs in the secondary (usb) keyboard? Any thoughts would be greatly appreciated.
    pFumk76

    First you'll need a hardware USB interface - http://www.altavista.com/web/results?itag=ody&q=usb+interface+module
    And then check out the jUSB project - http://jusb.sourceforge.net/
    There may be other options for communicating with USB from Java. I haven't actually done this yet. Snazzy idea, though. :)

  • How to print directly to printer using USB and Bluetooth from Java (J2ME) app.

    I write mobile phone apps in Java (J2ME). I want to print directly to a printer via USB and via Bluetooth. I cannot use a print job with the Java available to me. Once upon a time you could just send text and print control characters to a printer. I would like to be able to do that again. Alternatively could you provide a 'skeleton' data stream into which I could insert my code to produce what is sent to the printer when a print job is used with Java on a laptop or PC. I just want to sent simple text with a little formatting. 

    Hi,
    As far as printing to devices not all devices support Bluetooth. Many devices support Bonjour protocal, IPP. The main print port is 9100. Additionally you can see what IO protocols are supported on a product by looking at the EWS (Embedded WebServer) there should be a networking page with that information.  Port 9100 is your basic print port and different devices will support different formats (PDF, JPEG, PCL5, PCL6). If there is an API you can find (i am not familiar with J2ME availible calls, then you can use those and send the data to port 9100. Again that is the basic path most printers will accept. not all devices support bonjour not all device support bluetooth etc... Hope that helps and good luck.
    I am an HP Employee.

  • How to read a data from USB port using JAVA

    hi all,
    i need to know how to read a data from USB port using java. any API are available for java ?.........please give your valuable ideas !!!!!!!!!
    Advance Thanks!!

    You can do this. Please use this link
    [http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=uHu&q=java+read+data+from+usb+port&btnG=Search&meta=&aq=f&oq=]
    What research did you do of your own? Have you done some testing application and tried yourself??

  • Cannot print on a USB printer with Java PrintService in Windows 2000. Why?

    I want to print a simple ASCII file on a USB printer under Win2K and
    found 2 problems. Here is the 2nd one.
    Even though
    PrintServiceLookup.lookupPrintServices(<DocFlavor>, <AttributeSet>)
    returns nothing when I specify any AttributeSet, I can still print on the default printer, which I get by
    PrintService defServicedefService = PrintServiceLookup.lookupDefaultPrintService();
    but only on a parallel printer (HP Laserjet 4 Plus), either directly attached or over the network. When I try the very same code on a locally USB-attached printer, the printer is obviously reacting, but nothing is printed.
    In case of a Lexmark 730 (an ink printer), the driver even lies, it has printed 100%,
    on a Samsung CLP-510 (a color laser) the ready light flashes twice, that's all.
    The file to be printed has 5 lines and a "0C"X at the end in order to force a page eject at the end.
    I tried it with JDK 1.4.2 and with Java 6, same problem.
    I should mention that I can print that little file out of the editor Textpad without any problem.

    Thanks a lot for the quick hint, but it did not help.
    I used BasicPrint.java and PrintJobWatcher.java of the samples for testing.
    Printing a GIF file works both to a parallel printer and a USB printer.
    Then I changed only the DocFlavor from DocFlavor.INPUT_STREAM.GIF to DocFlavor.INPUT_STREAM.AUTOSENSE, and that one works with my parallel printer, but on the USB printer the Ready light flashes twice, that's all.
    The ASCII file must have a "0C"X at the end to force a page eject on the parallel printer
    Maybe it is a matter of the DocFlavor, but which one?
    DocFlavor("application/octet-stream", "java.io.InputStream") works like DocFlavor.INPUT_STREAM.AUTOSENSE.
    DocFlavor.INPUT_STREAM.TEXT_PLAIN_HOST and DocFlavor.INPUT_STREAM.TEXT_HTML_US_ASCII cause sun.print.PrintJobFlavorException, and with DocFlavor.INPUT_STREAM.TEXT_PLAIN_US_ASCII just nothing happens on either printer, not even an error message.
    I am getting the impression that nobody of the developers ever cared for testing such a simple thing as a plain ASCII file under Windows.
    My printers I am using for the tests are
    1. an old parallel-attached HP Laserjet 4 Plus and
    2. a borrowed USB-attached Samsung CLP-510 color laser

  • Cannot print on a USB printer with Java PrintService in Windows 2000

    I want to print a simple ASCII file on a USB printer under Win2K and
    found 2 problems. Here is the 2nd one.
    Even though
    PrintServiceLookup.lookupPrintServices(<DocFlavor>, <AttributeSet>)
    returns nothing when I specify any AttributeSet, I can still print on the default printer, which I get by
    PrintService defServicedefService = PrintServiceLookup.lookupDefaultPrintService();
    but only on a parallel printer (HP Laserjet 4 Plus), either directly attached or over the network. When I try the very same code on a locally USB-attached printer, the printer is obviously reacting, but nothing is printed.
    In case of a Lexmark 730 (an ink printer), the driver even lies, it has printed 100%,
    on a Samsung CLP-510 (a color laser) the ready light flashes twice, that's all.
    The file to be printed has 5 lines and a "0C"X at the end in order to force a page eject at the end.
    I tried it with JDK 1.4.2 and with Java 6, same problem.
    I should mention that I can print that little file out of the editor Textpad without any problem.
    Edited by: eSchobbert on Jan 24, 2008 11:34 AM
    By mistake I entered the same message another time after modifying the Subject instead of replacing the message. Sorry for that. If I knew how to delete it, I would. So please just ignore this one

    Thanks a lot for the quick hint, but it did not help.
    I used BasicPrint.java and PrintJobWatcher.java of the samples for testing.
    Printing a GIF file works both to a parallel printer and a USB printer.
    Then I changed only the DocFlavor from DocFlavor.INPUT_STREAM.GIF to DocFlavor.INPUT_STREAM.AUTOSENSE, and that one works with my parallel printer, but on the USB printer the Ready light flashes twice, that's all.
    The ASCII file must have a "0C"X at the end to force a page eject on the parallel printer
    Maybe it is a matter of the DocFlavor, but which one?
    DocFlavor("application/octet-stream", "java.io.InputStream") works like DocFlavor.INPUT_STREAM.AUTOSENSE.
    DocFlavor.INPUT_STREAM.TEXT_PLAIN_HOST and DocFlavor.INPUT_STREAM.TEXT_HTML_US_ASCII cause sun.print.PrintJobFlavorException, and with DocFlavor.INPUT_STREAM.TEXT_PLAIN_US_ASCII just nothing happens on either printer, not even an error message.
    I am getting the impression that nobody of the developers ever cared for testing such a simple thing as a plain ASCII file under Windows.
    My printers I am using for the tests are
    1. an old parallel-attached HP Laserjet 4 Plus and
    2. a borrowed USB-attached Samsung CLP-510 color laser

  • 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

  • Java - USB I/O

    Hello,
    I have problems with the running of my USB app.  I get a error of "Exception in thread "main" javax.usb.UsbException: Properties file javax.usb.properties not found."...
    Well, I have killed Google with this error, but still no luck. This is the only answer I could find : http://javax-usb.org/faq.html#what_is_properties_file.
    I have already setup my CLASSPATH.  And I have all the needed packages. My code doesn't give any error on compiling, but only on running the app.
    Please Help me?? Its very, VERY urgent!!
    Thanks you.
    Jo

    JaVaSpiKe wrote:
    I thought this was the place to come for help... But instead you are over looking my question and telling me how to ask it... Thanks for nothing.Stamping you feet like a petulant child won't help either.
    There are at least two ways java supports USB - some USB devices manifest themselves as other devices e.g. serial ports, disk drives LAN cards etc. These devices may be addressed using the java support for those classes of device.
    Otherwise there are some third-party libraries - such as the one you have found - which may or may not work in you particular circumstance. But you best support for those libraries is the libraries own web site/support board.

  • Java text editor usb

    Hi i am a java student and i dont really know where this question but my question is
    Is there a java text editor and java programs compiler for a usb drive?

    It is possible, though a bit of a hack. You can install the JDK on your computer at home and copy the directory to your USB drive. When you want to use it at school, simply add the bin directory of the JDK to the system path and you can use the commandline to compile and run your applications.

Maybe you are looking for

  • Updated to iTunes 7 - artwork no longer shows on ipod

    After upgradeing to iTunes 7 and firmware upgrade to 1.2 on my 60gb video ipod, I no longer see artwork on my ipod. In fact, everything was pretty messed up, so I restored my ipod, but retained the 1.2 firmware version and iTunes 7 on my PC (Win XP P

  • 1099 amounts not being combined when more than one vendor same TIN

    I have multiple vendors within the same company code with the same tax id number. When the 1099's are generated, the amounts for both vendore are not getting combined. So if for one of the vendors, he has been paid $4850.00 on one vendor number, and

  • Create a program, based on a report painter query issue continues

    Hi! I would like to create a program, which contains the same data, what I can get from a report, which is made by report painter in transaction GRR2. The given report is for checking the service orders. This report has a key (order number) and addit

  • Error handling in XI

    Hi All, I am implementing several scenarios in XI. They are mainly dealing with RFC, JDBC adapter, file. The main communication is between SAP R/3 and Oracle via XI, both to and fro. Pls tell me what are the standard error handling mechanisms in XI.

  • How do I recover files

    file recovery