LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2014, 05:23 AM   #1
cmosneang
LQ Newbie
 
Registered: Mar 2014
Posts: 1

Rep: Reputation: Disabled
Bluetooth linux spp


Hello

I am trying to make an application to send and receive ASCII characters from an HC-05 device (http://www.exp-tech.de/service/datas...h-Products.pdf) and Sitara AM335x Starter Kit using the bluetooth module. I am new to Linux and Bluetooth and for what I have read I whould have to use SPP Profile. I have found some commands for initialization of the BT module and for connecting it to a device(http://processors.wiki.ti.com/index...._Command_Lines). I first tested the commands on my Android phone on the app BlueTerm.

Here are the commands:

cd /usr/share/wl1271-demos/bluetooth/scripts
./BT_Init.sh
sdptool add SP
sdptool browse local
rfcomm listen /dev/rfcomm0 1 &
cat /dev/rfcomm0

The problem is that the command rfcomm listen /dev/rfcomm0 1 & doesn't always work, I mean I cannot connect my phone to the board. Is there another way to create a serial port on Linux??? Can the board initiate the connection to the phone instead of waiting for the phone to connect to it? Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sending user defined packets over SPP (rfcomm ) in BlueZ isenthilkumar Linux - Newbie 0 07-06-2011 04:53 AM
pithos - gstreamer trying to use bluetooth when no bluetooth device is installed shadowsnipes Slackware 0 10-30-2010 11:11 AM
Bluetooth Dongle and Bluetooth Mouse... Any ideas on this one? flipjarg Linux - Newbie 1 07-14-2010 07:04 AM
Bluetooth not working on FC6 with Targus USB bluetooth adapter mikevicious Linux - Software 1 12-11-2009 09:03 AM
Crossover network! Linux PC to Linux Laptop! Also what about bluetooth wireless usb?? kane hart Linux - Wireless Networking 2 10-16-2003 06:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration