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!
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!