Hi,
I enabled the "CFG_ENTER_BINARY_MODE_ON_CONNECTION" in DA14531 sdk. I have interfaced Renesas RX111 microcontroller with DA14531 through UART (only rx & tx) and I'm using codeless sdk. I want to send data from APP to RX111 microcontroller through DA14531 and vice versa. first I'm testing with Renesas smart console APP. But the problem is that if I close the Renesas Smart Console app in the middle of the connection (without using disconnection option in the renesas smart console APP) then I'm getting "+++" for every two seconds from DA14531 to my microcontroller though Uart continously. what it indicates and also how to stop that incoming "+++" through uart from DA14531 to my controller.
Hi Kumar,
Thank you for posting your questions online.
please send "AT" to DA14531 when RX111 received +++ from DA14531. Then it will stop responding "+++" .
BR,
JH_Renesas
Thanks for your reply.
1.If I send AT then is it going to send any response back to RX111 through uart or not.
2. how can I know that it is in which mode i.e., Binary or command mode at that time
In your sceen shot, your are getting AT+BINREQ, AT+BINREQACK. But I'm not getting because I'm using codeless sdk i.e., in enter in to Binary mode on connection. so I'm not getting AT+BINREQ and also AT+BINREQACK. and also if I close the renesas console app in middle (with out using disconnection option) then I'm getting "+++" continoulsy for every 2seconds. if I send AT command then I'm not getting any response from DA14531 but "+++" is stopped
Hi Kumar,
If you send a "AT" with no response, could you please try to resend it again, you should get "OK" response
Or you can send "AT+GAPSTATUS" for indication of the connection.
Anyway, you can send any CMD as you want to indicate the current status.
I did three types as shown below i., I'm closing the renesas console APP in the middle after connecting with DA14531 without using disconnection option in the APP. after getting "+++" continously, I'm sending AT and AT+GAPSTATUS in different orders as you can observe in the below screen shots. after sending 1st command then If I send 2nd command then I'm getting the error. please observe in the below screen shots.
If I send AT+GAPSTATUS first instead of AT then "+++" is not stopping as you can observe in the 1st screen shot
Please share your FW with me let me check on my site.
Please download the code from below link
https://www.mediafire.com/file/wxd06asjzqu1n1o/DA145xx_CODELESS.rar/file
I don't want my DA14531 goes in to sleep mode. please disable its sleep mode without sending AT+SLEEP=0. my device should always in advertising mode, if it is not connected then it should not go in to sleep mode. and also during connection it should not go in to sleep mode or idel mode
About sleep mode please go to SDK path projects\target_apps\codeless\codeless_5xx\src\config\user_config.h to close the sleep-mode
Please add "\r" at the end of your AT CMDs, same in RX111
Jason
hi,
If I assign ARCH_SLEEP_OFF to app_default_sleep_mode then data transfer is not taking place between RX111 and Renesas smart console APP through DA14531. but DA14531 goes in to Binary mode after connection. If I use ARCH_EXT_SLEEP_ON then only data transfer takes place between them
Let me check on this and will back to you soon.
Hi JH,
Please tell me the status
Just tested the code, you can leave the ARCH_EXT_SLEEP_ON, it will not stop the advertising because the adv is set to forever:
please set app_default_sleep_mode back to ARCH_EXT_SLEEP_ON.
But sometimes Device name is not showing in the Bluetooth scan list in the POS devices and also in Mobile. So I thought that it is going in to sleep mode if it is not connected to any one.
This could be another issue, could you gather more info and reproduction ways for this issue?
I'm going to make custom PCB by using DA14531. In that I don't want to mount 32KHz crystal. then codeless sdk (enter in to binary mode on connection) is going to work or not. because 32KHz is useful when DA14531 is in sleep mode. but I don't want to use sleep mode. but you are saying that I can leave the ARCH_EXT_SLEEP_ON. Is this going to effect the code, if I don't mount 32KHz
Yes you do not need mount 32K crystal. Default using internal RC.
There is no affection with ARCH_EXT_SLEEP_ON.
Ok. In my custom board, If I connect DA14531 serial wire (clock and DIO) pins directly to Jlink debugger, then shall I use Renesas smartbond flash programmer for code downloading ? right now I'm using DA14531 DEVKIT
Yes you can, SWCLK,SWDIO,GND,VCC. are needed
In codeless sdk (enter in to binary mode on connection), the default baud rate is 57600. If I change the baudrate to 115200 as shown in the below screen shot (BAUDRATE_CONFIG value to 5), then is it going to work or not with out any problem during running of the code.
Yes you can change it to 115200 bit rate, and will work without any issues.
I'm using Renesas DA14531-00FXDEVKT-P. I downloaded the DA145xx_CodeLess_6.380.18.63 from renesas website. I want to test the codeless_531_datapump firmware. so I defined "CFG_ENTER_BINARY_MODE_ON_CONNECTION" in da14531_config_advanced.h file. after building I'm getting error. so I make "ECLUDE_DLG_SUOTAR" to 1 in "user_modules_config.h" file. after building I'm not getting the errors. but if I send AT command first time then I'm getting "OK". if I send again then I'm getting as "non AT command". I connected my DA14531 to PC. please observe in the below picture. what is the reason for this.