Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User Jazsh's Avatar
    Join Date
    Mar 2006
    Posts
    15
    Currently, i am developing a j2me application to do printing to IrDA-enabled printer via Infrared(Required protocol). I am still new to j2me, so i am looking for some example code for establishing IrDA connection and parsing print content to the printer.
    Would anyone please help me by sending me some example or post some useful link for me to learn?
    my email:sniperh@gmail.com

  2. #2
    Super Contributor Jason Glass's Avatar
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556
    can you connect to the comm port, and just send data using properly formatted/protocolled data?

    if you can at least connect to it, then you might look for some non-j2me examples to get the protocol down and correct, i.e. that is if you cannot find any j2me examples

    this might get you going, or at least give you a clue, as I havent one...

    http://developer.sonyericsson.com/si...exprotocol.jsp
    Jason Glass
    http://IChiBanComputers.Com

  3. #3
    Registered User Jazsh's Avatar
    Join Date
    Mar 2006
    Posts
    15
    Quote Originally Posted by Jason Glass
    can you connect to the comm port, and just send data using properly formatted/protocolled data?

    if you can at least connect to it, then you might look for some non-j2me examples to get the protocol down and correct, i.e. that is if you cannot find any j2me examples

    this might get you going, or at least give you a clue, as I havent one...

    http://developer.sonyericsson.com/si...exprotocol.jsp

    thks for the reply.. i have try to code.. but the port return as "null" on 3230(i develop on this mobile phone). below is part of my code.

    String ports= System.getProperty("microedition.commports");

    String url = "nokiacomm:IR"+ports+"";
    TextBox i = new TextBox("IR port", url, 256, 0);

    i.addCommand(exitCommand);
    i.setCommandListener(this);
    display.setCurrent(i);

  4. #4
    Super Contributor Jason Glass's Avatar
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556
    suprised no one else is helping you, you might post again to forums, with new dilemma.

    You could try code signing, just in case it is protected, i have read that some system.getproperties properties are protected, but unsure as to which.

    you caould also try guessing, but probably unfeasible!

    If you post elsewhere and they figure it out, or if you figure it out, please let me know!

    Good luck,
    Jason Glass
    http://IChiBanComputers.Com

  5. #5
    Registered User Jazsh's Avatar
    Join Date
    Mar 2006
    Posts
    15
    Quote Originally Posted by Jason Glass
    suprised no one else is helping you, you might post again to forums, with new dilemma.

    You could try code signing, just in case it is protected, i have read that some system.getproperties properties are protected, but unsure as to which.

    you caould also try guessing, but probably unfeasible!

    If you post elsewhere and they figure it out, or if you figure it out, please let me know!

    Good luck,
    haiz... i have switched to bluetooth printing.. can you help me then? sample code? or links that i can learn..
    thank you..

  6. #6
    Super Contributor Jason Glass's Avatar
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556
    I would search the forum for bluetooth

    there has been a lot of recent posts, but I havent dealt with either irda or bluetooth

    look for bluetooth and example, and you should find the only link i could quickly come up with, where in i just searched google for "j2me" bluetooth and example

    good luck
    Jason Glass
    http://IChiBanComputers.Com

Similar Threads

  1. Nokia PC Connectivity能否链接到cdma手机上发送短信和其他操作?
    By bborn in forum Web Technologies and Multimedia Content- Web 技术和多媒体内容
    Replies: 2
    Last Post: 2004-05-04, 11:06
  2. Supported Phones in SDK v3.0
    By Zamba in forum PC Suite API and PC Connectivity SDK
    Replies: 4
    Last Post: 2003-12-17, 18:47
  3. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46
  4. Printing from 9210 via irda to BJC-55
    By gimyam in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2002-11-27, 09:25
  5. Can I use notebook IrDA hardware with emulator, or only IrDA POD?
    By Tymchyshyn in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved