Phone Side: VS Application
Screenshots
Code Snippets
'Connect Function
Try
cli = New BluetoothClient
Dim addy As BluetoothAddress = BluetoothAddress.Parse(My_Btooth_Addy)
Dim ep As BluetoothEndPoint
ep = New BluetoothEndPoint(addy, BluetoothService.SerialPort)
cli.Connect(ep)
Catch ex As Exception
Label1.Text = "Connection Error"
End Try
'Lock Function
Try
peerstream = (cli.GetStream())
Dim write_string(1) As Byte
write_string(0) = 66
peerstream.Write(write_string, 0, 1)
PictureBox3.Image = lock
Catch ex As Exception
Label1.Text = "Connected, send error"
End Try
Car Side: MicroController Circuit
The HC11 Program
Click image for full code listing
The Lunchbox