hi
my primary goal is to be able to connect my mobile phone with a PIC via bluetooth inorder to get rid of cables and that any phone can connect to the PIC. i wanted to use a bluetooth dongle usb. but iv heard that these need a host, so how do i go about making a PIC have a host ?
any replies will be greatful
cheers
how do i go about connecting usb bluetooth to PIC ?
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Hi Phatali
Thats a tricky one!
I guess what you need to do is to try to emulate what the PC host is doing on the PIC. This will probably include:
Initializing the Bluetooth dongle
setting up the Address
Looking for the remote address
Pairing with the remote address
Starting a service with the remote Bloutooth device
Passing data through the service protocall
Unfortunatley this is something I have never attempted so if you have any progress then let us know.
Thats a tricky one!
I guess what you need to do is to try to emulate what the PC host is doing on the PIC. This will probably include:
Initializing the Bluetooth dongle
setting up the Address
Looking for the remote address
Pairing with the remote address
Starting a service with the remote Bloutooth device
Passing data through the service protocall
Unfortunatley this is something I have never attempted so if you have any progress then let us know.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
hi
thanks for both of your quick replies
i will look into what you have said ben about what the pc host is doing.
steve i shall look at the E-block range you were talking about.
the thing is its a uni project sooo the cost has to be kept to a min
thanks for the help il let you guys know for sure if i make any progress with this .
thanks for both of your quick replies
i will look into what you have said ben about what the pc host is doing.
steve i shall look at the E-block range you were talking about.
the thing is its a uni project sooo the cost has to be kept to a min
thanks for the help il let you guys know for sure if i make any progress with this .
Re: how do i go about connecting usb bluetooth to PIC ?
i don't know how to use it to but friend of mine use serial bluetooth modul for his final project.
so he can communicate between cellphone and AT89S51.
Is it easy?
so he can communicate between cellphone and AT89S51.
Is it easy?
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: how do i go about connecting usb bluetooth to PIC ?
Hello Tian
Our Bluetooth E-Block has a serial Bluetooth module. There are also functions to drive this hardware built into Flowcode.
Our Bluetooth E-Block has a serial Bluetooth module. There are also functions to drive this hardware built into Flowcode.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: how do i go about connecting usb bluetooth to PIC ?
Hi
even if I hijack this thread a bit, but is there a description of how to set up the bluetooth E-block module for an AVR device ?
and if not, is there a short description of which port it has to be connected to. my best guess is Port D at an Atmega32 because of the USART connection.
the purpose is setting up a bluetooth communication to a PC with a bluetooth dongle on the PC side. then a terminal via USART will send commands to the microcontroller. I know how to set up an USART connection, but not the bluetooth pairing part that needs to be done before that, if I understood it right.
hope you can help, and if not in a Flowcode style, then maybe with C.
cheers,
nils
even if I hijack this thread a bit, but is there a description of how to set up the bluetooth E-block module for an AVR device ?
and if not, is there a short description of which port it has to be connected to. my best guess is Port D at an Atmega32 because of the USART connection.
the purpose is setting up a bluetooth communication to a PC with a bluetooth dongle on the PC side. then a terminal via USART will send commands to the microcontroller. I know how to set up an USART connection, but not the bluetooth pairing part that needs to be done before that, if I understood it right.
hope you can help, and if not in a Flowcode style, then maybe with C.
cheers,
nils
Custom_Code.c help needed? -> http://tinyurl.com/2y2mzq
Flowchart high quality vector graphic output =>>http://tinyurl.com/6sx2sx
Flowchart high quality vector graphic output =>>http://tinyurl.com/6sx2sx
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: how do i go about connecting usb bluetooth to PIC ?
Hello NIls
Yes the Bluetooth E-Block is compatible with the AVR boards. I think that there is a forum post that details the AVR connections for things like the UART. However if this is unavilable then you can contact sean@matrixmultimedia.co.uk who will be able to detail the connections for you.
Also our Bluetooth example files should be import straight into Flowcode AVR so you will be able to use these to get started with the programming. If you do not have these example files then Sean should be able to provide them for you.
I would do this myself but im not in work this week.
Hope this helps.
Yes the Bluetooth E-Block is compatible with the AVR boards. I think that there is a forum post that details the AVR connections for things like the UART. However if this is unavilable then you can contact sean@matrixmultimedia.co.uk who will be able to detail the connections for you.
Also our Bluetooth example files should be import straight into Flowcode AVR so you will be able to use these to get started with the programming. If you do not have these example files then Sean should be able to provide them for you.
I would do this myself but im not in work this week.
Hope this helps.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel