×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    5

    How to Read Text File located on PC to Mobile device using serial port Communication

    Hi Guys,

    I have some requirement, I have to read a Text file located in PC from Mobile device Via USB.Is there any way that I could establish a connection between pc and mobile device to read a text file located in pc. Please let me know if you guys have any Idea to establish a connection using Bluetooth or serial port etc.

    I appreciate your valuable inputs.

    Thanks in Advance!

    Smiles,
    Venu.

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: How to Read Text File located on PC to Mobile device using serial port Communicat

    Hi Venu,

    Yes it is possible to establish a Bluetooth Connection between a PC and a phone as long as your PC Bluetooth Adapter is compatible with Bluecove (i.e. with the Mac OS X, WIDCOMM, BlueSoleil and Microsoft Bluetooth stacks). In Windows, check the Device Manager to see the type of your Bluetooth adapter.

    You will first need to download the BlueCove library from here:

    http://code.google.com/p/bluecove/

    create a JavaSE application that runs on your PC and listens for incoming BT connections.
    Then you need to create a client for your mobile that searches for devices and services. As soon as a service is found on the PC running the JavaSE application, a connection can be made.

    A way to start would be to modify the existing client-server Bluetooth example found here:
    http://www.developer.nokia.com/Commu...ces_in_Java_ME (client)
    http://www.developer.nokia.com/Commu...ice_in_Java_ME (server)

    so that the server runs on your PC (built with JavaSE). Instead of sending a message from the client to the server, you can modify the example so that the server reads a file from the computer and sends it to the client.
    For file related operations on your phone, you will need to take a look at the FileConnection API found here:

    http://library.developer.nokia.com/i...A904AFA52.html

    For file related operations on your PC, look at this example:
    http://download.oracle.com/javase/tu...testreams.html

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

    Re: How to Read Text File located on PC to Mobile device using serial port Communicat

    Hi skalogir,

    Thank you very much for your promt reply.I will make changes appropriately as you suggested.Will come back soon if find any difficulties.

    Thank you!

    Smiles,
    Venu.

Similar Threads

  1. How to read file located in memory card?
    By 113115 in forum Symbian C++
    Replies: 4
    Last Post: 2009-03-09, 20:30
  2. Replies: 5
    Last Post: 2007-04-12, 21:23
  3. Replies: 2
    Last Post: 2007-04-12, 18:05
  4. Is it possible to read from the device attached to cell phone at serial port.
    By kiran10182 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-07-06, 14:53
  5. Replies: 0
    Last Post: 2005-09-28, 11:15

Posting Permissions

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