eb024 not respond

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

Moderators: Benj, Mods

Post Reply
HENOCH
Posts: 5
Joined: Mon Feb 27, 2012 8:11 pm

eb024 not respond

Post by HENOCH »

I don’t understand why my EB024 does not respond.
I send the following script :
ATS520=57600 (for change the baud rate)
ATD000A3A2EC953,1101 (to connect with a other device in spp mode)
And since this moment the eblock Eb024 does not respond at a inquiry command like AT+BTI
I not receive the address of the other device (before this all was right)
Can you help me please?

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: eb024 not respond

Post by Benj »

Hello,

The Bluetooth component uses a baud rate of 9600 by default.

If you have changed the baud rate of the module then you will no longer be able to use this with the bluetooth component.

One workaround would be to use the RS232 component with the new baud settings to restore the baud of 9600 on the module.

Another option would be to customise the bluetooth component code so that it uses your new baud rate when setting up the UART.

Hope this helps.

HENOCH
Posts: 5
Joined: Mon Feb 27, 2012 8:11 pm

Re: eb024 not respond

Post by HENOCH »

Hello, thanks for you message
but i don't understand how to use the RS232 component with the new baud settings to restore the baud of 9600 on the module.
And how to customise the bluetooth component code so that it uses your new baud rate when setting up the UART.
can you give me example of code please
I try to change the S520 register with ATS520=9600 but it doesn't work.

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: eb024 not respond

Post by Benj »

Hello,

The easiest way is to setup the RS232 component with a baud rate of 57600 using the baud property setting.

The send the command "ATS520=9600" by sending each bit as a byte and finishing by sending a carriage return - decimal 13.

eg
RS232_send_Byte('A')
RS232_send_Byte('T')
RS232_send_Byte('S')
RS232_send_Byte('5')
RS232_send_Byte('2')
RS232_send_Byte('0')
RS232_send_Byte('=')
RS232_send_Byte('9')
RS232_send_Byte('6')
RS232_send_Byte('0')
RS232_send_Byte('0')
RS232_send_Byte(13)

Once you have done this the module should work correctly with the bluetooth component again.

There may be a simple way of resetting the factory defaults. The module datasheet will detail this functionality if it is available.

HENOCH
Posts: 5
Joined: Mon Feb 27, 2012 8:11 pm

Re: eb024 not respond

Post by HENOCH »

Thank you very much. It's OK.
:D :D :D :D :D

Post Reply