Possibly Busted Eblock

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

Moderators: Benj, Mods

Post Reply
marcbernz
Posts: 20
Joined: Thu Nov 28, 2013 5:04 pm
Has thanked: 5 times
Contact:

Possibly Busted Eblock

Post by marcbernz »

Hi,

I have been working on the e blocks bluetooth board as an upgrade to the formula flowcode buggy. I have ordered 2 Eblocks the Bluetooth Board(EB0124) and the LCD Board(EB005). The LCD board is working just fine, its the bluetooth that bothers mi. The led of the bluetooth won't light nor powers on after it is already supplied. When both are connected (Bluetooth and LCD), only the lcd displays and the bluetooth wont initialize. The pogram I am using is the one that can be dowloaded in the Matrix Multimedia website.

Is it possible that the bluetooth is busted?

Attach is a pic of how we connected the bluetooth.

https://www.dropbox.com/s/zyk7a1ktrj6a9 ... .36.26.jpg

Marc

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: Possibly Busted Eblock

Post by Benj »

Hello Marc,

The LED on the Bluetooth E-block only comes on when the Bluetooth is paired.

Can you attach your program so I can have a look and see if I can spot anything, the demo file will be using the hardware UART, you will need to change this to instead use the software UART on pins RD6 and RD7.

marcbernz
Posts: 20
Joined: Thu Nov 28, 2013 5:04 pm
Has thanked: 5 times
Contact:

Re: Possibly Busted Eblock

Post by marcbernz »

Hi,

This one I used to test:

https://www.dropbox.com/s/rp69g5q6w9iadsv/bt2.fcf

Then I tried to make the bluetooth discoverable, I used this one:

https://www.dropbox.com/s/z91qg6uu0d4k2 ... 123123.fcf

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: Possibly Busted Eblock

Post by Benj »

Hello,

Right the Bluetooth component in v5 doesn't expose the software mode so you can either do what I have done and hard code it in via the custom code option or you can use the RS232 component.

In the attached file I have fixed the UART to software mode on pins RD6 and RD7 so hopefully it will start working for you now and be discoverable.

Example of the C code mods I made to the Defines section of component code.

Code: Select all

#ifndef	MX_UART_REF1
	#ifndef %a_MX_UART_UREF
		#define MX_UART_REF1
		#define %a_MX_UART_UREF			1
		#define MX_UART_CHANNEL_1		0//%b
		#define MX_UART_TX_PIN_1		6
		#define MX_UART_TX_PORT_1		portd
		#define MX_UART_TX_TRIS_1		trisd
		#define MX_UART_RX_PIN_1		7
		#define MX_UART_RX_PORT_1		portd
		#define MX_UART_RX_TRIS_1		trisd
Let me know how your getting on.
Attachments
BT-FF.fcf
(26.7 KiB) Downloaded 324 times

marcbernz
Posts: 20
Joined: Thu Nov 28, 2013 5:04 pm
Has thanked: 5 times
Contact:

Re: Possibly Busted Eblock

Post by marcbernz »

Thanks benj, this is really a life saver. :) Will try this out.

marcbernz
Posts: 20
Joined: Thu Nov 28, 2013 5:04 pm
Has thanked: 5 times
Contact:

Re: Possibly Busted Eblock

Post by marcbernz »

Hello Benj,

I tried the program and still no luck. I can't detect the device nor it has initialized.

I have set up the Bluetooth board together with the LCD just to see if it has initailize. But still no luck.

I have attached a picture of how I I had set it up.

https://www.dropbox.com/s/l3bm8k7sakz3q ... .50.18.jpg

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: Possibly Busted Eblock

Post by Benj »

Hello Marc,

The E-blocks won't work in this configuration, the Female D-type socket on the Bluetooth board is for an audio codec. You will need an E-blocks splitter cable to allow you to connect both boards directly to the D-type on the formula flowcode.

marcbernz
Posts: 20
Joined: Thu Nov 28, 2013 5:04 pm
Has thanked: 5 times
Contact:

Re: Possibly Busted Eblock

Post by marcbernz »

Hi Benj,

Is it okay if I make my own? The Eblocks splitter cable is not available here.

Will the program that you have attached work without the LCD board? Because I tried having the bluetooth board only and I can't detect it nor make a pairing on a device. Is there a need to insert an address to the program? If there is, where should I insert it and how?

Thanks.

Marc

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: Possibly Busted Eblock

Post by JohnCrow »

Hi

The E-blocks Splitter cable is here

http://www.matrixmultimedia.com/product ... PHPSESSID=
1 in 10 people understand binary, the other one doesn't !

marcbernz
Posts: 20
Joined: Thu Nov 28, 2013 5:04 pm
Has thanked: 5 times
Contact:

Re: Possibly Busted Eblock

Post by marcbernz »

Hello John,

What I meant was the cable is not available here in my country. It would take weeks to arrive if I order the cable.

Post Reply