Control of mobile through Bluetooth_1

Good start here a topic that I find interesting is the connection of PC through bluetooth, where we can help this in the field of electronics, we can do it very simple programs that help us to connect to a phone with bluetooth and from this call via telephone to control a Automata which is on the other side of the phone line.

Through the bluetooth and using this as a modem connection we can send commands to a remote automata, which interpret these commands.

The theme of bluetooth is exciting that we can exchange files between your phone and the PC, we can use the phone as a modem, can hear music on bluetooth mobile through, we could in theory controlled by the mobile electronic circuits and bluetooth through whole lot more, but so far I am a novice, you will put their experiences here.
Of all the programs I found useful for control Puppy bluetooth, none convinced me and none worked me correctly so I ride a package with utiliades that I seemed to me more convenient than are:

bluez-4.99-i486  —  bluez-firmware_1.2  —  bluez_gstreamer_4.66_i386 — bluez-hcidump_1.42_i386
bluez-obexd_5.21_i386  —  bluez-tools_0.1.38  —  bluez-util_4.33 —  dbus_1.2.2 — dbus-glib — libbluedevil-1.19
libobexftp_dev  — libselinux1 — obex-client_0.48 — obexftp_0.23 —  obex_pushd_0.11.2_i386 — obex-server_0.22
obex_test — obex_xfs

And also contains the “MINICOM” terminal.
It can be downloaded from:

Well to start first thing to do is get off the pet and install it.
Need a bluetooth device that serves us for communication between mobile and PC.
I have one type Pendrive which is connected to USB.
These are the steps that I do, but if anyone does otherwise is invited to put here, or any other interesting information:
1) I plug the usb
2) bluetooht initialized using the command
# bluetoothd3) This command usually does not usually give any answer so to see if it works can type the command# hcitool scan

If all goes well we will show us a message with all available devices that we can connect

Scanning …

         70:XX:XX:XX:32:78 LG GS290

Seeing this message we can see that bluetooth is working circuit.
4) To view the available services in connection with this phone you can type the following command:

sdptool browse 70:XX:XX:XX:32:78

And we will give an output similar to this

Browsing 70:XX:XX:XX:32:78 …
Service Name: Voice GW
Service RecHandle: 0x10000
Service Class ID List:
“Headset Audio Gateway” (0x1112)
“Generic Audio” (0x1203)
Protocol Descriptor List:
“L2CAP” (0x00000100)
“RFCOMM” (0x00000003)
Channel: 4
Profile Descriptor List:
“Headset” (0x00001108)
Version: 0x0100

Service Name: Voice gateway
Service RecHandle: 0x10001
Service Class ID List:
“Handsfree Audio Gateway” (0x111f)
“Generic Audio” (0x1203)
Protocol Descriptor List:
“L2CAP” (0x0100)
“RFCOMM” (0x0003)
Channel: 18
Profile Descriptor List:
“Handsfree” (0x111e)
Version: 0x0105

Service Name: OPP
Service RecHandle: 0x10002
Service Class ID List:
“OBEX Object Push” (0x1105)
Protocol Descriptor List:
“L2CAP” (0x0100)
“RFCOMM” (0x0003)
Channel: 2
“OBEX” (0x0008)
Profile Descriptor List:
“OBEX Object Push” (0x1105)
Version: 0x0100

Service Name: OBEX FileTransfer
Service RecHandle: 0x10003
Service Class ID List:
“OBEX File Transfer” (0x1106)
Protocol Descriptor List:
“L2CAP” (0x0100)
“RFCOMM” (0x0003)
Channel: 5
“OBEX” (0x0008)
Profile Descriptor List:
“OBEX File Transfer” (0x1106)
Version: 0x0100

Service Name: Audio/Video Service
Service Provider: CSR
Service RecHandle: 0x10004
Service Class ID List:
“Audio Source” (0x110a)
Protocol Descriptor List:
“L2CAP” (0x0100)
PSM: 25
“AVDTP” (0x0019)
uint16: 0x102
Profile Descriptor List:
“Advanced Audio” (0x110d)
Version: 0x0102

Service RecHandle: 0x10005
Service Class ID List:
“AV Remote Target” (0x110c)
Protocol Descriptor List:
“L2CAP” (0x0100)
PSM: 23
“AVCTP” (0x0017)
uint16: 0x100
Profile Descriptor List:
“AV Remote” (0x110e)
Version: 0x0100

Service Name: Phonebook Access PSE
Service RecHandle: 0x10006
Service Class ID List:
“Phonebook Access – PSE” (0x112f)
Protocol Descriptor List:
“L2CAP” (0x0100)
“RFCOMM” (0x0003)
Channel: 12
“OBEX” (0x0008)
Profile Descriptor List:
“Phonebook Access” (0x1130)
Version: 0x0100

Service Name: Serial Port 1
Service RecHandle: 0x10007
Service Class ID List:
“Serial Port” (0x1101)
Protocol Descriptor List:
“L2CAP” (0x0100)
“RFCOMM” (0x0003)
Channel: 13

Service Name: Dial-up networking
Service RecHandle: 0x10008
Service Class ID List:
“Dialup Networking” (0x00001103)
Protocol Descriptor List:
“L2CAP” (0x00000100)
“RFCOMM” (0x00000003)
Channel: 1
Profile Descriptor List:
“Dialup Networking” (0x00001103)
Version: 0x0100

Current transition in which we different services and what’s interesting about that transmission channel run.
So as we will see the FTP service OBEX file transfer or relocation FileTransfer to see that is done on channel 5 thing to have in mind now later when we try to transfer files being PC and mobile.

If we view the services specifically for file transmission run:

# sdptool searh FTP

To connect the phone to the PC will type the following command:

# bt-device –connect 70:XX:XX:XX:32:78

Where 70: XX: XX: XX: 32: 78 is the MAC of my mobile LG GS290, here everyone will have to put the MAC address of your phone that was after executing the command:

 # hcitool scan

Once executed bt-device be ready soon we will ask for a PIN code command. I‘ll put eg: 1234 ENTER.

Immediately on our mobile will see a message asking us this PIN number 1234 and we put ENTER.

We give a message that the phone is paired and Done.
To check if your mobile is linked type:

# bt-device –list

 And if our cell appears with its MAC number is that the phone is already connected.
Good in theory this entailment is forever but the computer shut itself off when plugged back on and have bluetooth usb only thing we have to do to activate it is to type again:
# bluetoothd

CONTINUED ON NEXT PAGE

Control of mobile THROUGH Bluetooth_2

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s