×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    20

    I'm becoming desperate

    hello,

    I'm a student and have to make my final project.
    The content of my project is that i have to make connection between a sensor and a mobile phone. The interaction will be done using bluetooth.
    other aspects of my project are:
    1) I must be able to write and read data to the memory of the phone
    2) I must be able to control when the phone should vibrate
    3) I must be able to play music in the MP3 format
    4) I must be able to display a logo/picture (.jpeg,.gif) on the display

    I've been reading alot the last month but i don't seem to find solution, only problems and more questions.
    about bluetooth:
    I want to know if it possible that the phone can be used as a server. or do I have to make a general server on my pc.

    1) Is it possible to read and write to the memory of the phone?? I've read on an other forum that you don't have acces to it?

    2) I will be using a Nokia S60 phone. I've already read that that serie does not support vibrate(). Is there a more universal way to implement the vibration of the phone?

    3 & 4) what are the best classes to use for that aspect

    I would be very gratefull if anyone could help me
    I mean it

    thx for listening
    Stijn

  2. #2
    Super Contributor
    Join Date
    Feb 2006
    Posts
    689

    Re: I'm becoming desperate

    Hi,
    Some of the S60 first edition phones wont support fileconnection.hence i am afraid whether you can write files into the phones filesystem.also as you u told in the case of vibration some S60 phones will support vibration.also check for the image supports of the phonme you are using.Go for a phone with the latest jsr support.

    Thanx
    Soku

  3. #3
    Regular Contributor
    Join Date
    Nov 2004
    Posts
    105

    Re: I'm becoming desperate

    It depends what type of sensor you are using. If your sensor supports bluetooth than connecting to the phone shouldnt be a problem. However if it works on some other protocol, you will have to make your pc a central server.

    With regards to loading an image and displaying it on the screen, you can either load an image via the filesystem, internet or inbuild it into your project with the 3rd option being the easiest. Then you have to convert it into the Image class and then draw it onto the Canvas class.

  4. #4
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: I'm becoming desperate

    Hi gorsken,

    Which phone model are u going to use for the testing. It all depends on that phone model.

    Wang

  5. #5
    Regular Contributor
    Join Date
    Nov 2004
    Posts
    105

    Re: I'm becoming desperate

    I guess we didnt make it in time and he overshot his deadline =)

  6. #6
    Registered User
    Join Date
    Jun 2006
    Posts
    20

    Re: I'm becoming desperate

    no i have only 2 weeks left
    so it's becoming very stressfully

    The image and music problem is more or less solved. The vibrate and read/write problem still exist.
    The problem is also that i don't really know what phone we will be using because i'm still waiting for it :s
    I'm sure it will be one of the S60 models.

    But now i have an other problem with the S60 emulator:
    I use NetBeans 5.0 and this is what i get:

    Code:
    failed to connect to emulator
    Caught exeption:
    java.lang.RuntimeExeption:comand failed with Symbian error code:-4
    at com.symbian.tools.j2me.sei.emulator.session.commands.SessionCommand.load(SessionCommand.java:70)
    at com.symbian.tools.j2me.sei.emulator.session.commands.InstallCommand.load(InstallCommand.java:116)
    at com.symbian.tools.j2me.sei.emulator.session.commands.SessionCommand.execute(SessionCommand.java:86)
    at com.symbian.tools.j2me.sei.emulator.session.RemoteSession.installMIDLetSuite(RemoteSession.java:212)
    at com.symbian.tools.j2me.sei.emulator.EmulatorLauncher.launchMIDLet(EmulatorLauncher.java:527)
    at com.symbian.tools.j2me.sei.emulator.EmulatorLauncher.launch(EmulatorLauncher.java:304)
    at com.symbian.tools.j2me.sei.emulator.Main.main(Main.java:47)

  7. #7
    Regular Contributor
    Join Date
    Nov 2004
    Posts
    105

    Re: I'm becoming desperate

    Display.getDisplay(this).vibrate(500); <-- vibrate

    With regards to writing/reading look at the PIM/FileConnection API Jsr-75
    e..g Fileconnection fc = (FileConnection) Connector.open("file://localhost/e:/test.txt");
    OutputStream os = fc.openOutputStream();
    os.write("hi".getBytes());
    os.close();
    fc.close()

  8. #8
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: I'm becoming desperate

    Hi gorsken,

    This error is:

    KErrNoMemory -4 Not enough memory

    It sounds strange to me, which SDK are you using? Try increasing your heap size.

    BR,

    Juarez Junior

  9. #9
    Registered User
    Join Date
    Apr 2006
    Posts
    4

    Plzzzz help me : probs wth Carbide_vs 2.0.1

    hi
    i m using carbide 2.0.1 as an IDE, first whn i install it it works properlly bt after uninstalling it i reinstall it thn it gives an error Carbide 2.0.1 is already detected i also remove it fr registry after it gives the same error i m totally struck in tht plzz help me i have done ths process many times bt i cant plz ????????????????????????

    thx in advance

  10. #10
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: I'm becoming desperate

    Hi 22abhinav82,

    Please do not hijack other user's thread. Start your questions on their own, please, let's keep this forum organized

    I've never used Carbide.vs, cannot help unfortunately.

    BR,

    Juarez Junior

  11. #11
    Registered User
    Join Date
    Jun 2006
    Posts
    20

    Re: I'm becoming desperate

    hello everyone,

    thx for all the support.
    the bigest problem is probebly the sever/client implementation with bluetooth, isn't it? Does anyone know if there is e sample code where a cell phone is the server and the pc is the client. I think it is not so simple. The most things I've red where implementation with bluetooth stack of windows. I don't think it's an option on the 6630(I finally know what type of cell phone i will be using).

  12. #12
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: I'm becoming desperate

    Hi gorsken,

    Take a look at BlueCove, the links are below:

    http://bluecove.sourceforge.net/

    http://www.benhui.net/modules.php?na...ne_Part_1.html

    http://sourceforge.net/projects/bluecove/

    Hope it helps!

    BR,

    Juarez Junior

  13. #13
    Registered User
    Join Date
    Jun 2006
    Posts
    20

    Re: I'm becoming desperate

    if downloaded the examples but i cannot compile the source code

    it cannot find these methods:

    commands.add ( string s );
    BufferdReader in = new BufferedReader (new InputStreamReader(System.in));

  14. #14
    Registered User
    Join Date
    Jan 2004
    Posts
    5

    Re: I'm becoming desperate

    You know you might be able just use the RecordStore Class instead of whatever FileAPI you are using. Depending on how much data you need to store it can work just as well and is standard in J2ME.

    GABE

  15. #15
    Regular Contributor
    Join Date
    Nov 2004
    Posts
    105

    Re: I'm becoming desperate

    gorsken try importing java.io.*;
    since normally I import both java.io.*; and javax.microedition.io.*;
    BufferdReader in = new BufferedReader (new InputStreamReader(System.in)); <-

    and what is commands.add ? thats not even standard since we dont know what commands is.

    but gabe is right in saying that recordstore usually works better than the FileConnection API since if you dont plan on sharing the file with other applications, it would be much easier to use the recordstore.

Similar Threads

  1. HTTP Client - desperate need
    By t_amar in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2005-09-17, 01:11
  2. help with playing audio!! desperate!
    By tequilasunrise in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-01-03, 20:13
  3. desperate to get help
    By amaher98 in forum Mobile Java General
    Replies: 3
    Last Post: 2004-02-02, 10:33
  4. Desperate, please Help.
    By fmhunter in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2003-06-03, 03:50

Posting Permissions

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