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