ajithrit
Posts: 30
Joined: Tue May 14, 2013 10:53 am
Location: India

HOW TO CREATE BLUETOOTH VIRTUAL SERIAL PORT IN RASPBERRY PI

Sat Sep 28, 2013 9:16 am

Can Any one give me an idea how can I send AT commands over bluetooth from raspberry pi.
I want to do this from a C program. I have a Bluetooth USB dongle with me. But I need to know how to create a virtual Serial Port with it.
I have already referred
http://rasspberrypi.wordpress.com/2012/ ... pberry-pi/
and
http://blog.miguelgrinberg.com/post/a-c ... spberry-pi

But both of them doesnt help me. the first one tell me how to connect. but it doesnot tell me how can I send characters through the Bluetooth Dongle to another device

PLEASE HELP!!!!

Oakham
Posts: 366
Joined: Tue Aug 20, 2013 9:11 pm

Re: HOW TO CREATE BLUETOOTH VIRTUAL SERIAL PORT IN RASPBERRY

Sat Sep 28, 2013 9:49 am

This is a fairly standard Linux overview and would assume you installed the Bluez packages etc..

http://mycola.info/2013/01/28/bluetooth ... n-in-linux

I am not sure if this is helpful: http://support.connectblue.com/display/ ... T+Commands
Searching is easy, most questions have been asked before !

ajithrit
Posts: 30
Joined: Tue May 14, 2013 10:53 am
Location: India

Re: HOW TO CREATE BLUETOOTH VIRTUAL SERIAL PORT IN RASPBERRY

Sat Sep 28, 2013 10:36 am

this does not work I am getting so many exceptions in each step
File "/usr/bin/bluez-test-input", line 42, in <module>
input.Connect()
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod: Method "Connect" with signature "" on interface "org.bluez.Input" doesn't exist

Return to “General discussion”