AT COMMANDS - Enter binary mode automatically with mobile app

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
6 posts / 0 new
Last post
Dvir12L123
Offline
Last seen:6 days 5 hours ago
Joined:2020-04-18 12:13
AT COMMANDS - Enter binary mode automatically with mobile app

Dear Dialog,

I am using the AT command project to create a communication between my android app and a circet I made.

One thing that i noticed is when I usemy android appI get in the PC terminal "COMMAND MODE SUPPORTED" , but when I use theDSPS appthat you provide i get in the PC terminal "BINARY MODE SUPPORTED" automatically.

What do I have to do to make the da14531 enter the binary mode automatically when I connect to the device, like it enters with the DSPS application?

Do I have to use another service in my android app or change the sequence they run or is it something else?

Thank in advace,

Dvir

Device:
MrWeng
Offline
Last seen:4 days 12 hours ago
Joined:2020-02-13 08:56
我之前也问过同样的问题,他们的答案是这样。经过我的实验

我之前也问过同样的问题,他们的答案是这样。经过我的实验,这没问题。

您可以尝试通过发送虚拟AT切换到二进制模式。也就是说,例如,当设备连接后,您可以调用以下api进入二进制模式:

user_on_connection() { user_cmd_interpreter(“ AT + BINREQACK \ r \ n”,sizeof(“ AT + BINREQACK \ r \ n”),CMD_SRC_REMOTE); }
Dvir12L123
Offline
Last seen:6 days 5 hours ago
Joined:2020-04-18 12:13
Hi MrWeng,

Hi MrWeng,

Thanks for the replay, I thought I could make the BLE enter binary mode automatically without any AT commads just like it does when I connect with the DSPS mobile application but I will try what you suggested.

Thank you very much :)

Best regards,

Dvir

PM_Dialog
Offline
Last seen:2 days 6 hours ago
Staff
Joined:2018-02-08 11:03
Hi Dvir12L123,

Hi Dvir12L123,

My recommendation would be to use the SmartConsole Android application. Please see Section 8.3.2. Binary Mode in the Codeless user manual.

http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/smartconsole.html

此外,您还可以发送在UA命令RT for changing the “Command” to “Binary” mode and vice versa. This is described in Section 4. Binary Mode:

http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/binarymode.html

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen:2 days 6 hours ago
Staff
Joined:2018-02-08 11:03
Hi MrWeng,

Hi MrWeng,

Thanks for your comment, but this is our English forum and users post questions/comments in English. So please translate your comment into English,

Thanks, PM_Dialog

Dvir12L123
Offline
Last seen:6 days 5 hours ago
Joined:2020-04-18 12:13
Hi PM_Dialog

Hi PM_Dialog

Thank you very much for your answer.

I am going to try what MrWeng suggested since I already tried what you suggested.

Thanks again,

Dvir