Bluetooth board

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
MarkGeelen
Posts: 21
Joined: Wed Feb 20, 2008 2:35 pm

Bluetooth board

Post by MarkGeelen »

Hi,

I have the AVR programmer E-block board. I use the ATMEGA 32 microcontroller. Now I was wondering what port I have to use to connect my bluetooth E block board?

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times

Re: Bluetooth board

Post by Sean »

The Bluetooth board uses the ATMEGA32's on-chip uart for communication. This is available on PORT D.

Here are the wire-link and jumper settings required for operation.

Jumpers:
RX & TX SELECTION = Option D (J6)
CTS & RTS SELECTION = Option 3 (J7)

Wire-links
P1-RX to P2-0
P1-TX to P2-1
P1-RTS to P2-(as selected in the Bluetooth component properties - default = 5)
P1-CTS to P2-(as selected in the Bluetooth component properties - default = 4)

Use J2 to select the active Bluetooth interface device.

MarkGeelen
Posts: 21
Joined: Wed Feb 20, 2008 2:35 pm

Re: Bluetooth board

Post by MarkGeelen »

Hi Sean,

I have another problem. When I look in the documentation of the bleutooth board, I see another picture in it than the board that I have. I have the board EB024-00-2, but the bluetooth chip is from Ezurio. And the one on the picture is from TDK.
Also I don't have a jumper 6. Can you help me?

greetings

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times

Re: Bluetooth board

Post by Sean »

The Ezurio bluetooth module is a replacement for the TDK module and does not affect the operation of the board or the documentation supplied with it.

Unfortunately the jumper information I supplied was incorrect :oops:

The board still needs to be connected to Port D.

The 4 groups of jumpers near the D-type connector should be moved to the left-hand side (J13, 14, 15, 16)

Connect wire links between the following 'patch System sockets (note the TX and RX connections have changed from the previous reply).

P1 - TX to P2 - 0
P1 - RX to P2 - 1
P1-RTS to P2-(as selected in the Bluetooth component properties - default = 5)
P1-CTS to P2-(as selected in the Bluetooth component properties - default = 4)


Make sure J8 is set to the 5v option.

MarkGeelen
Posts: 21
Joined: Wed Feb 20, 2008 2:35 pm

Re: Bluetooth board

Post by MarkGeelen »

Hi Sean,

Thanks for your fast reaction. I have done everything what you said. But now when I load the test program(found on the site), it is not working. He doesn't find another divice. Do the jumpers have to be in horizontal or vertical direction? I put them vertical in the long direction of the board. Is that the good direction? Or is the test program only for other microcontrollers?

Thanks a lot!

MarkGeelen
Posts: 21
Joined: Wed Feb 20, 2008 2:35 pm

Re: Bluetooth board

Post by MarkGeelen »

It's not working anymore. Is it possible to do a hardware reset for the second generation bleutooth board EB024-00-2?
I think I did something wrong, but I don't know what...

MarkGeelen
Posts: 21
Joined: Wed Feb 20, 2008 2:35 pm

Re: Bluetooth board

Post by MarkGeelen »

Hi ,

Sorry for the double post.
I found the problem!
I was looking in the datasheets of ezurio and found out that there where a few special commands for resetting to factory settings. So I created a hyperteminal link with a usb device and connect that one to the bluetooth board. After sending commands such as " !<BISM>!<cr> " it still didn't react. So I went to the website of ezurio and found out there is a updated available for the firmware. But you only have access to it after registering. After updating to the latest firmware and downloading it to the chip, the device reacts again to my comments.
When I sent the "AT" command with my hyperterminal it now sends "AT OK" back.
So what I have done is:
Updated to latest firmware. Then set the device to the right bautrate (default) for me that's 9600. Afterwards you just have to push the update buton, and it will autonomous set your board to the right settings.
The site where you can find the firmware is: http://www.ezurio.com/products/bism/ in the menu at the right-hand site.

Greetings,

Mark

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times

Re: Bluetooth board

Post by Sean »

There is a possible issue with the script property in the Bluetooth component.

Some commands can be interpreted incorrectly when typed in upper-case - especially characters following an '&' character

Example:
AT&W - interpreted incorrectly

The EZURiO module accepts commands in lower-case or mixed-case:
AT&w - interpreted correctly

MarkGeelen
Posts: 21
Joined: Wed Feb 20, 2008 2:35 pm

Re: Bluetooth board

Post by MarkGeelen »

HI Sean,

What do you mean exactly?
If I put a command in the bluetooth component scripts such as: AT&F (for example) should it be AT&f?
Is it an issue with all the AT& commands or just with a few of them?
Thanks for the tip!

Greets Mark

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times

Re: Bluetooth board

Post by Sean »

The AT&F options do not seem to be affected. This appears to be limited to AT&W.

If in doubt, the code from the Bluetooth scripts can be seen in the C code, defined as BLU_SCRIPT_1, BLU_SCRIPT_2 etc.
This can be viewed from the Chip->View C menu in Flowcode. The \r characters in the code are the new line markers.

MarkGeelen
Posts: 21
Joined: Wed Feb 20, 2008 2:35 pm

Re: Bluetooth board

Post by MarkGeelen »

Ok thanks a lot!

raghavmonga
Posts: 14
Joined: Thu Apr 17, 2008 10:10 am

Bluetooth board inquiry

Post by raghavmonga »

hi!
i m using E-blocks bluetooth training solutions EB860. I've 2 nodes : node A and Node B
i tried to communicate between these 2 but it didn't work.
then i tried communication with my mobile phone where nodeA worked perfectly fine but Node B didn't work.
are Node A and Node B different in any respect?
is there any prerequisite or anything different to be done?
please guide me on this matter :)

MarkGeelen
Posts: 21
Joined: Wed Feb 20, 2008 2:35 pm

Re: Bluetooth board inquiry

Post by MarkGeelen »

raghavmonga wrote:hi!
i m using E-blocks bluetooth training solutions EB860. I've 2 nodes : node A and Node B
i tried to communicate between these 2 but it didn't work.
then i tried communication with my mobile phone where nodeA worked perfectly fine but Node B didn't work.
are Node A and Node B different in any respect?
is there any prerequisite or anything different to be done?
please guide me on this matter :)
I think this is because of 1 device is set as a master and the other one as a slave. Look in the script of the bluetooth component. Here you will see the code and then you know if it is set as a master device or as a slave device.

Cheers Mark

User avatar
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: Bluetooth board

Post by Benj »

A similar problem was found recently.

Please make sure that the bluetooth module on the EB024 is sitting securly into its socket.

Post Reply