Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connect to a phone via bluetooth and send commands, how to?

Status
Not open for further replies.

Darkbound

Electrical
May 31, 2014
3
Hello guys, I have a mini-project at hand but I'm having difficulties.. I need to connect to a phone via bluetooth and send commands to the phone, specificly to make it dial a number and I need to do all that with MATLAB. I've been searching around the net for the past few days how can I do it, but what I found is not enough... I followed a tutorial on the mathworks.com site about transmitting data over bluetooth link

step 1: instrhwinfo('Bluetooth')
step 2: ans.RemoteNames - gives me a list of all the bluetooths that have a link with my PC
step 3: instrhwinfo('Bluetooth', 'LG-P880') - should give me more info about this specific link but here is the problem, it returns nothing not like in the example above it returns this:
RemoteName: []
DeviceID: []
ObjectConstructorName: []
Channels: []
and I hit a rock at this point..

Another thing that I found is that I need to send AT commands to the phone and one of the commands that I found is "ATD4412345678" where the numbers represent the number that I want to dial.. Upon creating a successful link between my phone and MATLAB would it be enough to write fwrite(bt, 'ATD4412345678') or its not that simple?

Any help would be greatly appreciated, I am totally in the dark about this one!
 
Replies continue below

Recommended for you

Is this for school? Student posting is not allowed

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529
 
At first it was for school but I soon realized that if I understand how I can do that I can do many other more interesting things, so the answer to your question is yes and no.
 
"***Not school, university."

that's not a relevant distinction, given "coursework and thesis posting is forbidden"

Nevertheless, Sourceforge is a plausible starting place, as are a number of similar opensource sites like Google Code:

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor