Reputation: 160
I'm using windows 7 and connected my phone using bluetooth. This connection uses a virtual COM port for communication, which I've configured to specified baud rate, flow control, word length, etc. before I call my php function
function sendmsg($str = 'AT\r\n', $device = 'COM5'){
$handle = fopen($device, "w+b");
stream_set_blocking($handle, 0);
fwrite($handle, $str);
fclose($handle);
return true;
}
Upvotes: 2
Views: 4343
Reputation: 2190
I have done something similar but in Python and it worked - Windows Vista talking with a Nokia N70 phone. The phone was paired over bluetooth and the communication it was done using a COM port created along with pairing. It was based on a open source project called pySerial
Upvotes: 0