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

Similar Messages

  • Mount usb in Solaris 10

    Dear friends,
    I am using Sun Sparc solaris 10, I am trying to Mount the usb using the following command and i was successfully & able to mount the usb, but now suprisingly i find problem.
    the command I used in SU mode is
    mount -F pcfs /dev/dsk/c2t0d0s0:c /mnt
    mount : no such file or Directory,
    please can any tell why i occurs,
    Your immediate reply would be more hel[pful for me
    Thanks in Advance
    Raja

    <table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>Quote:</b></td></tr><tr><td class="quote">
    mount -F pcfs /dev/dsk/c2t0d0s0:c /mnt
    mount : no such file or Directory
    </td></tr></table>
    Hello.
    1) Check if the device entry /dev/dsk/c2t0d0s0 exists
    (by typing ls -L /dev/dsk/c2t0d0s0 - a block file must be displayed)
    2) Are you sure the disk is /dev/dsk/c2t0d0s<u><b>0</b></u> and not /dev/dsk/c2t0d0s<u><b>2</b></u>?
    3) Make sure that the /mnt directory exists and is not mounted.
    I hope this helps.
    Martin

  • Cannot mount  USB on Solaris 10 10/08

    I inserted the USB drive, I have tried the following, however it didnt work.
    devfsadm -Cv
    Format>
    In format, Im seeing only 1 disk. (that is my harddisk)
    0 -> c1todo
    I did few more things,
    Mount -F pcfs /dev/dsk/c2t0d0p0:c /mnt
    How I found out its c2, iostat -En output.
    Please someone assist.
    Thanks,
    Sylvester, Prasanth

    & I tried making ZFS file system on pendrive,
    zpool create myusb c2t0d0p0
    zpool list myusb
    Now I can see the file system, however windows doesnt recosgnise it now :( screwd again !!!Right, Windows has no idea what ZFS is so there is no way that it can mount the drive.
    In order for it to work on both Windows and Solaris then you need to format the device with a filesystem in common.
    The most common way to do this is to format it with a FAT32 filesystem or you could use NTFS if you load up the drivers for it on the Solaris side.
    After you format it FAT32 then Windows should have no problems with it since it's a native format and Solaris vold mounts my FAT32 USB devices automatically.
    alan

  • Optical wheel mouse (USB) on Solaris 8

    After following the instruction given in the "Solaris for Intel X86 FAQ" to install XFree86 4.0.2, my Microsoft WheelMouse Optical (on a USB port) doesn't work at all. Furthermore, after adding the CDE fonts in "/usr/openwin/lib/fonts/F3bitmaps/" to XF86Config, the fonts that appear on the CDE login screen look like those bitmap figures that are stretched like craps. What should I do to make my mouse work and how can I configure the CDE so that I see the original fonts that originally comes with SUN? Please advice.

    I have the same problem with my mouse. First I installed Solaris 8 - the mouse worked just fine. Then I installed Xfree86 drivers and after reconfiguring and rebooting my system my mouse doesn't work at all. I use XF86Config utility to configure the new X server. At the beginning it asks you about your mouse, so I choose "Microsoft compatible" or "Microsoft IntelliMouse" - it doesn't work. It also asks to point to the mouse driver but I'm not sure what to choose so I use the default /dev/mouse. Please advise.

  • 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]

  • Usb in Solaris 8

    When doing iostat -En, I see my memory stick as usb_sd0. I am assuming this is my device name. However when I try to mount it using
    mount -F pcfs /dev/dsk/usb_sd0:c/mnt I receive a message indicating the mount point cannot be determined. Can anybody help me?

    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...

  • Jms c api does NOT support multiple threads on solaris?

    It appears that weblogic jms c api (solaris) does not work with multiple threads.
              I wrote a simple test program with multiple threads in the following environment:
              <p>
              <pre>solaris 5.7 Generic_106541-22 sun4u sparc SUNW,Ultra-250,
              weblogic 8.1.3
              jdk 1.4.2_b04
              </pre>
              <b>ONLY the first thread is able to create jms queue senders and send text messages without any problem. The second thread always get the following exception:</b>
              <pre>weblogic.jms.common.JMSException
              at weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncTran(DispatcherWrapperStat
              e.java:440)
              at weblogic.jms.client.JMSProducer.sendInternal(JMSProducer.java:382)
              at weblogic.jms.client.JMSProducer.send(JMSProducer.java:207)
              Caused by: java.lang.ExceptionInInitializerError
              at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:309)
              at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:258)
              at weblogic.j2ee.ApplicationManager.loadClass(ApplicationManager.java:253)
              at weblogic.rjvm.MsgAbbrevInputStream.resolveClass(MsgAbbrevInputStream.java:324)
              at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream
              .java:96)
              at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:117)
              at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:56)
              at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:159)
              at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:138)
              at weblogic.jms.dispatcher.DispatcherImpl_813_WLStub.dispatchSyncTranFuture(Unknown Sour
              ce)
              at weblogic.jms.dispatcher.DispatcherWrapperState.dispatchSyncTran(DispatcherWrapperStat
              e.java:406)
              ... 2 more
              Caused by: <b>java.lang.NullPointerException</b>
              at weblogic.i18ntools.L10nLookup.loadProps(L10nLookup.java:88)
              at weblogic.i18ntools.L10nLookup.<init>(L10nLookup.java:160)
              at weblogic.i18ntools.L10nLookup.init(L10nLookup.java:132)
              at weblogic.i18ntools.L10nLookup.getLocalizer(L10nLookup.java:315)
              at weblogic.management.commo.internal.CommoCommandLineTextFormatter.<init>(CommoCommandL
              ineTextFormatter.java:20)
              at weblogic.management.commo.Commo.<clinit>(Commo.java:89)
              ... 13 more</pre>

    It was caused by the 2nd threads' classloader.
              The 2nd thread uses the bootstrap classloader by default when attached to jvm, which loads the 'core' java classes only, not even extended classes.
              <p>
              This cause JNDI factory initialization failed.
              <p>
              The solution is to set the 2nd thread's context loader as the system class loader using JNI. See java.lang.Thread#setContextLoader and java.lang.ClassLoader#getSystemClassLoader.

  • 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

  • Solaris 10 x86 & DHCP server

    Hello
    I am trying to create a jumpstart server to install some IBM HS20
    blades (usb cdrom is not supported for the installation as I know), so
    I installed Solaris 10 x86 in a vmware virtual machine and I am trying
    to create the jumpstart server, starting by the DHCP server ! this is
    the problem !
    My configuration is really simple, I followed the SUN instructions to
    create the DHCP configuration...
    Any help will be appreciated , thanks in advance
    Here is the output of the dhcp daemon debug mode
    bash-3.00# /usr/lib/inet/in.dhcpd -d -v
    4219f200: Daemon Version: 3.5
    4219f200: Maximum relay hops: 4
    4219f200: Run mode is: DHCP Server Mode.
    4219f200: Datastore resource: SUNWfiles
    4219f200: Location: /var/dhcp
    4219f200: DHCP offer TTL: 10
    4219f200: ICMP validation timeout: 1000 milliseconds, Attempts: 1.
    4219f200: Maximum concurrent clients: 1024
    4219f200: Maximum threads: 256
    4219f200: Read 3 entries from DHCP macro database on Mon Feb 21
    15:36:48 2005
    4219f200: Monitor (0003/pcn0) started...
    4219f200: Thread Id: 0003 - Monitoring Interface: pcn0 *****
    4219f200: MTU: 1500 Type: SOCKET
    4219f200: Broadcast: 172.30.255.255
    4219f200: Netmask: 255.255.0.0
    4219f200: Address: 172.30.150.117
    4219f20a: Datagram received on network device: pcn0(limited
    broadcast)
    4219f20a: Reserved offer: 172.30.110.9
    4219f20b: Sending datagram to broadcast address.
    4219f20b: Updated offer: 172.30.110.9
    4219f20c: Datagram received on network device: pcn0(limited
    broadcast)
    4219f210: Datagram received on network device: pcn0(limited
    broadcast)
    4219f218: Datagram received on network device: pcn0(limited
    broadcast)
    4219f220: Sending datagram to broadcast address.
    4219f220: Updated offer: 172.30.110.9
    4219f220: 0004: Refreshed (0x8088870) to (0x8089880)
    4219f234: Sending datagram to broadcast address.
    4219f234: Updated offer: 172.30.110.9
    ^C4219f24e: Signal: INT received...Exiting
    4219f24e: Freeing offer: 172.30.110.9
    4219f24e: Closing interface: pcn0
    4219f24e: Monitor (0003/pcn0): exiting.
    4219f24e: Interface statistics for: pcn0 **************
    4219f24e: Pending DHCP offers: 0
    4219f24e: Total Packets Transmitted: 3
    4219f24e: Total Packets Received: 4
    4219f24e: Total Packet Duplicates: 1
    4219f24e: Total Packets Dropped: 0
    4219f24e: Total Packets Processed: 3
    4219f24e: Total Protocol Errors: 0
    4219f24e: Daemon terminated.

    what's your DHCP server configuration?
    type dhtadm -P and that will print the configuration of the dhcp table and all your macros.
    On another note, I also have a blade server (3Up CMU-4) that has USB keyboard and mouse, even if the interface is PS/2 (converted internally to USB). Solaris will not recognize the keyboard and mouse when installing or booting, but after the kernel is loaded I can use them OK. I do get the keyboard profile error and I think it is related to the fact that there is no PS/2 k/m enabled. The only way that I found that I could use the mouse in the graphical interface was to use a USB keyboard with a hub and connect a USB mouse to the keyboard, Anybody has any explanation for this behavior?
    Max

  • Solaris 10 x86 package database corruption

    After installing Solaris 10 3/05 s10_74L2a X86 (version as described in /etc/release) I find that the package database file /var/sad/install/contents appears to be corrupt.
    If I do a "pkginfo -l <package name>" command to view the details of a package I get an error like this:
    pkginfo -l SUNWaccr
    pkginfo: ERROR: bad entry read in contents file
    pathname: /usr/apache/tomcat/webapps/tomcat-docs/servletapi/javax/servlet/ServletRequest.html
    problem: unable to read content info
    If I add a package, say from the Companion CD, it to gives the error.
    I cannot remove packages either.
    I have re-installed and tried the pkginfo command immediately - without adding any packages.
    Anybody experienced this?

    what's your DHCP server configuration?
    type dhtadm -P and that will print the configuration of the dhcp table and all your macros.
    On another note, I also have a blade server (3Up CMU-4) that has USB keyboard and mouse, even if the interface is PS/2 (converted internally to USB). Solaris will not recognize the keyboard and mouse when installing or booting, but after the kernel is loaded I can use them OK. I do get the keyboard profile error and I think it is related to the fact that there is no PS/2 k/m enabled. The only way that I found that I could use the mouse in the graphical interface was to use a USB keyboard with a hub and connect a USB mouse to the keyboard, Anybody has any explanation for this behavior?
    Max

  • 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 !

Maybe you are looking for