×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2007
    Posts
    43

    Question How can I use PC to connect phone via Bluetooth?

    Hi, All:
    I'm a new guy for PyS60, but I have some python experience before.
    Now I want to develop an application with PyS60. And a part of this application should connect PC to mobile phone(mine is Nokia6630) via Bluetooth, and users can send text information to phone. Note: the direction of connection is from PC to phone, but not reverse.
    Any expert can help me about above question, either description or sample codes(both will be better), thanks a lot.
    Last edited by jfml; 2007-02-19 at 06:17.

  2. #2
    Registered User
    Join Date
    Feb 2007
    Posts
    43

    Re: How can I use PC to connect phone?

    I already found a sample codes in document which shows me how to establish connection from phone to PC via Bluetooth protocol, but I can not get the reverse sample anywhere.

  3. #3
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: How can I use PC to connect phone?

    Quote Originally Posted by jfml
    I already found a sample codes in document which shows me how to establish connection from phone to PC via Bluetooth protocol, but I can not get the reverse sample anywhere.
    Welcome jfml to Python Forum

    You can try the free Putools and install pyserial on your PC to communicate with phone. Other tools useful are here ...

    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  4. #4
    Registered User
    Join Date
    Feb 2007
    Posts
    43

    Re: How can I use PC to connect phone?

    I'd download pybluez 0.9.1 for Windows XP and installed it, the example codes can run normally, but it can not find any bluetooth-enabled mobile phone nearby my PC(My Nokia6630 is activated bluetooth yet).

    I'm very very very confused, anyone help me out, GOD!

    Here is the sample codes of pybluez to discovery bluetooth devices:
    import bluetooth

    nearby_devices = bluetooth.discover_devices()

    for bdaddr in nearby_devices:
    ""do something

    The result of nearby_devices is alway 0, even my nokia 6630 is enable bluetooth nearby my laptop.

  5. #5
    Registered User
    Join Date
    Feb 2007
    Posts
    43

    Re: How can I use PC to connect phone?

    Quote Originally Posted by cyke64
    Welcome jfml to Python Forum

    You can try the free Putools and install pyserial on your PC to communicate with phone. Other tools useful are here ...

    Cyke64
    Thanks your reply!!! I will check your given resources firstly, later I'll come back.

  6. #6
    Registered User
    Join Date
    Feb 2007
    Posts
    43

    Exclamation Re: How can I use PC to connect phone?

    Hi, I'm back now.

    I'd installed pyserial, pywin32 and putools yet. And I do the operations which descripted in http://people.csail.mit.edu/kapu/symbian/python.html step by step.

    When I arrived this step in above web page:
    On the phone

    Start Python.
    Select Run Script, run phpush.py (it may be in the "my" directory). Select Connect to Other..., Find your PC, select the service that uses the same COM port as in your sync.config (if the PC offers only one service, that one is selected automatically).
    Now the push window on PC (see image below) should pop up.

    I can not find any "push window" appear.

    The command console in windows just shows "Connecting to serial port \\.\COM40"

    The python console in mobile just shows "Discovered: 00:10:c6:ee:a5:77. {u'COM7\x00':1}"

    And here is nothing more.

    What's wrong with my putool?

Similar Threads

  1. How to connect phone with pc via socket
    By ononokung in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2004-10-30, 07:09
  2. 3650 PC SuiteCannot use bluetooth to connect with phone
    By madarin in forum Bluetooth Technology
    Replies: 0
    Last Post: 2004-09-22, 08:40
  3. Replies: 5
    Last Post: 2003-02-07, 11:25
  4. Can I connect the Nokia 31 to a landline phone?
    By Nokia_FAQ in forum Nokia M2M
    Replies: 1
    Last Post: 2002-05-14, 15:23
  5. Can I connect the Nokia 30 to a landline phone?
    By Nokia_FAQ in forum Nokia M2M
    Replies: 1
    Last Post: 2002-05-14, 14:58

Posting Permissions

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