Connect to a phone via bluetooth and send commands, how to?
Connect to a phone via bluetooth and send commands, how to?
(OP)
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 [url=http://www.mathworks.com/help/instrument/reading-a...]link[/url]
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!
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!
RE: Connect to a phone via bluetooth and send commands, how to?
TTFN

FAQ731-376: Eng-Tips.com Forum Policies
Need help writing a question or understanding a reply? forum1529: Translation Assistance for Engineers
RE: Connect to a phone via bluetooth and send commands, how to?
RE: Connect to a phone via bluetooth and send commands, how to?
RE: Connect to a phone via bluetooth and send commands, how to?
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:
http://sourceforge.net/directory/os:windows/freshn...
TTFN

FAQ731-376: Eng-Tips.com Forum Policies
Need help writing a question or understanding a reply? forum1529: Translation Assistance for Engineers