Shop OBEX P1 Docs P2 Docs Learn Events
Propeller communicating over bluetooth to python? — Parallax Forums

Propeller communicating over bluetooth to python?

CameronMCameronM Posts: 57
edited 2010-10-18 12:37 in Propeller 1
Hi, I am trying to get the propeller to “talk” to python over bluetooth using RFCOMM. I am not trying any thing fancy I just want the propeller to send a string to a python program and have python display it. But I am having trouble on the propeller side. I am using Micah's bluetooth stack for the propeller, and pybluez stack for the python side. I have a few questions, is it even possible to “talk” to python over bluetooth? In Micah's bluetooth stack how do I set the port number or what is the port number used in the provided examples, and what is the Bluetooth spec that is brought up in the object bluetooth-host, I did a search and I could not find any thing.

Thank you,

CameronM

Comments

  • Heater.Heater. Posts: 21,230
    edited 2010-10-18 00:25
    Are you doing this on Windows or Linux?

    Using Bluetooth with RFCOMM should get you a serial port showing up in your operating system what ever it is.

    Python can of course open/close and read/write a serial device, like any other file, so there should be no problem working with a serial device provided by RFCOMM.

    No idea about Micah's bluetooth software yet but I keep meaning to give it a try.
  • CameronMCameronM Posts: 57
    edited 2010-10-18 12:37
    Okay cool, so i probably don't even need to use pybluez stack for python. I am using windows as my os, but i might fire up a virtual machine of Linux and play around with it.

    Thank you,

    CameronM
Sign In or Register to comment.