×

Discussion Board

Results 1 to 8 of 8

Thread: USB port access

  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    8

    USB port access

    Salam!
    I am new to mobile development.
    I want to read some data on nokia usb port or any port that is coming from external sensor ??
    can any one guide me in selecting the port and is it possible to access mobile ports in java??

  2. #2
    Super Contributor
    Join Date
    Mar 2005
    Location
    Paris
    Posts
    814

    Re: USB port access

    good luck with that.

    first, there is a fairly good chance that your usb port is slave only, which means that it will not be able to host a sensor anyway. secondly, i don't know of any documented way to access it, but it may be as simple as Connector.open, provided that you can find the proper URL, as well as it may simply be impossible.

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    8

    Re: USB port access

    simply that i just want to read digital 1 on usb port of symbian mobile ?? when it gets 1, an API will run. Is it possible ??

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105

    Re: USB port access

    In other threads, you mention the Nokia C5. This model does not offer USB-OTG.

  5. #5
    Registered User
    Join Date
    Dec 2009
    Posts
    8

    Re: USB port access

    salam!
    thanks to all for replying me on other threads.
    Actually I am new to mobile development and no helper.
    what i want to do that i wanna read digital 1 at mobile usb port of nokia c5 and based on this notification want to run an API.
    am confused about accessing USB port??
    is this possible in j2me?? or only in symbian??
    digital 1 is coming from analog to digital converter and there is a wired connection between mobile and converter.

    And after reading OTG article what i got that it is required where usb port will be acting as master. But i just want to read a signal (digital 1) on usb port?? is OTG is still required??
    and if am on wrong side kindly guide me.....
    $unl)!l@

  6. #6
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,556

    Re: USB port access

    As I replied here... http://discussion.forum.nokia.com/fo...l=1#post813321

    "No way whatsoever from Java (which is a virtual machine environment isolated from the hardware and the host operating system) to access USB hardware/signals directly."

  7. #7
    Registered User
    Join Date
    Dec 2009
    Posts
    8

    Re: USB port access

    Salam!
    I have one question more.
    For my problem development do I still need to have USB-OTG specification??

    Kindly Reply
    $unl)!l@

  8. #8
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: USB port access

    I doubt that OTG would help you either. You'd still need a specific driver, and a full implementation of USB on the device you're connecting. You cannot treat a USB port just as a TTL input. There is also a comms protocol to support things like device detection and multiple devices on the same port.

    Graham.

Similar Threads

  1. How to access USB port with J2ME code
    By psan23 in forum Wired and Wireless interfaces (Closed)
    Replies: 1
    Last Post: 2011-01-18, 10:49
  2. NEWBIE: Nokia X6 USB-Port --> connect USB-Buzzer
    By ilovetoplaythis in forum Wired and Wireless interfaces (Closed)
    Replies: 0
    Last Post: 2010-11-19, 10:53
  3. USB port access with Pyserial ?
    By pericles mobile in forum Symbian
    Replies: 0
    Last Post: 2005-10-12, 10:17
  4. Using the USB port
    By somervda in forum Mobile Java General
    Replies: 1
    Last Post: 2004-05-10, 21:59

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×