Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>From the Python you look like you are opening any old RFCOMM channel and hoping it will magically take the AT commands and do the messaging.</p> <p>I think (and I could be wrong) that you need to connect to a specific profile/sevice channel and I think for SMS it is the the Messaging Access Profile (MAP), which is not yet standardised so finding a phone with it on, well I won't say impossible but very, very unlikely. Otherwise, some phones will support AT commands for messaging but this is outside the specs e.g. I have it on authority that Sony-Ericson phones will support it though the Dial-Up Networking profile (DUN). </p> <p>So, first of all, does your mobile device support some out of spec AT commands for SMS and if so, on a certain profile or on an ad-hoc proprietary one? Next, you need to connect to that profile.</p> <p>You can browse the supported services etc... using the following Python (checks all surrounding BT devices)...</p> <pre><code>import bluetooth def whats_nearby(): name_by_addr = {} nearby = bluetooth.discover_devices(flush_cache=True) for bd_addr in nearby: name = bluetooth.lookup_name( bd_addr, 5) print bd_addr, name name_by_addr[bd_addr] = name return name_by_addr def what_services( addr, name ): print " %s - %s" % ( addr, name ) for services in bluetooth.find_service(address = addr): print "\t Name: %s" % (services["name"]) print "\t Description: %s" % (services["description"]) print "\t Protocol: %s" % (services["protocol"]) print "\t Provider: %s" % (services["provider"]) print "\t Port: %s" % (services["port"]) print "\t service-classes %s" % (services["service-classes"]) print "\t profiles %s" % (services["profiles"]) print "\t Service id: %s" % (services["service-id"]) print "" if __name__ == "__main__": name_by_addr = whats_nearby() for addr in name_by_addr.keys(): what_services(addr, name_by_addr[addr]) </code></pre> <p>Once you find the correct service/profile, your next problem will be negotiating security (pin code for pairing), which I haven't worked out how to do yet!</p> <p>See the <a href="http://www.bluetooth.org" rel="nofollow noreferrer">www.bluetooth.org</a> for all your Bluetooth needs!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload