×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    5

    usb communication

    Dear All,

    I've just started with Java ME to develop a usb communication program on S40.
    To start, I have read MIDP_Using_Cable_Connection_In_Nokia_Devices_v1_0
    but it does not work, the display remains empty...
    and in a usb sniffer there is no trace of the "hello ComComm" message to the pc,
    I think the problem is that I use a DKE-2 cable (usb to mini usb) and not rs232!

    how to change this for usb:

    Code:
    comm = (CommConnection)Connector.open("comm:com0");
    os = comm.openOutputStream();
    String text = "Hello ComComm! Anybody there at COM0?...";
    os.write(text.getBytes());
    Thanks!
    willy

  2. #2
    Nokia Developer Expert
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351

    Re: usb communication

    Hello

    1. What phone are you using?
    2. Try it with

    Code:
    comm = (CommConnection)Connector.open("comm:USB0");
    :Ruben

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    5

    Re: usb communication

    comm = (CommConnection)Connector.open("comm:USB0");
    does not work

    phone is a Nokia 5200 (S40 3th edition, MIDP 2.0, CLDC 1.1)

    how get a usb communication?

  4. #4
    Registered User
    Join Date
    Jul 2008
    Posts
    5

    Re: usb communication

    problem solved, as easy as this:

    System.out.println("hello usb");

    thanks for looking in!

Similar Threads

  1. MSCOMM AND USB
    By herat007 in forum General Messaging
    Replies: 3
    Last Post: 2008-01-16, 04:38
  2. Communication between Mobile and PC with USB cable
    By maan_navtej in forum Symbian
    Replies: 0
    Last Post: 2007-07-05, 12:38
  3. Serial communication over USB on S60 3rd Edition devices not working
    By ovoda in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2007-04-27, 10:29
  4. Ir or USB communication
    By sunder.j in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-12-29, 04:55
  5. Mobile communication through USB
    By hammadkb in forum Mobile Java General
    Replies: 0
    Last Post: 2003-06-26, 15:24

Posting Permissions

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