⚠️
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.
13 posts / 0 new
Last post
prakash Solanki
Offline
Last seen:2个月2周前
加入:2021-01-06 11:12
ATrPRINT逗号nd

Hi

Background:

Initial designed we used microchips RN4871 module and used their UART services. We have mobile phone app that sends screen coordinates when ever movement is detected on screen. The coordinates are received at BLE devices without any latency.

查询

I have setup a mockup using the DA15431 device and using codeless_standalone_531 binary, and using ATrPRINT to send coordinate from mobile app and there is a significant latency. It could be that the ATrPRINT command is also sending +PRINTCR for every message. Is there a way to send RAW message from app to ble device using AT command.

谢谢

设备:
PM_Dialog
Offline
Last seen:2 days 4 hours ago
Staff
加入:2018-02-08 11:03
Hi prakash Solanki,

Hi prakash Solanki,

谢谢for your question and for your interest in our DA14531 BLE solution.

Since you are interested in sending raw data from the mobile phone to the DA4531, you could used the Binary Mode of the CodeLess.

Please see the user guide below :

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

您使用的是移动应用程序是什么?是smartconsole吗?

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

谢谢, PM_Dialog

prakash Solanki
Offline
Last seen:2个月2周前
加入:2021-01-06 11:12
Hi

Hi

Thank you for above answer, I manage to get the BINARY mode to work using the 531_datapump binary file.

For datapump it is advertisng SSID,

“0783B03E-8535-B5A0-7140-A304D2495CB7”我明白SSID无附件是:
"866D3B04-E674-40DC-9C05-B7F91BEC6E83". How can I modify the SSID to this ID.

I also tried to build the Datapump application and I get following error:

Build started: Project: codeless
***使用Compiler'V5.06更新7(Build 960)',文件夹:'D:\ Keil_v5 \ ARM \ ARMCC \ Bin'
Build target 'codeless_531_datapump'
链接......
。\out_531\codeless_531_datapump.axf: error: L6050U: The code size of this image (32804 bytes) exceeds the maximum allowed for this version of the linker.
Not enough information to produce a SYMDEFs file.
完成:1个信息,0警告,0个错误和1个致命错误消息。
".\out_531\codeless_531_datapump.axf" - 1 Error(s), 0 Warning(s).
目标未创建。
Build Time Elapsed: 00:00:07

PM_Dialog
Offline
Last seen:2 days 4 hours ago
Staff
加入:2018-02-08 11:03
Hi prakash Solanki,

Hi prakash Solanki,

很高兴你设法获得二进制模式的工作!

Do you mean how to modify the UUID of the characteristics?

The error probably means that you are using the free edition of the Keil IDE which has the limitation for 32KB code. If you need to exceed the 32KB application code, you should purchase full edition.

谢谢, PM_Dialog

prakash Solanki
Offline
Last seen:2个月2周前
加入:2021-01-06 11:12
With the module programmed

使用模块与数据泵编程为51,并且模块连接到终端。

When I use other ble app e.g. lightBlue and connect to device CLv2, on terminal I get following:

+AWAKE

+连接

But when I use Smartconsole I get following:

+AWAKE

+连接

+BINARY MODE SUPPORTED

+COMMAND MODE SUPPORTED

How can I enable the

+BINARY MODE SUPPORTED

+COMMAND MODE SUPPORTED

谢谢

PM_Dialog
Offline
Last seen:2 days 4 hours ago
Staff
加入:2018-02-08 11:03
Hi prakash Solanki,

Hi prakash Solanki,

The default mode is the “Command Mode”, so your question is how to enable the “Binary Mode” in order to send data to the mobile using the SmartConsole application?

谢谢, PM_Dialog

prakash Solanki
Offline
Last seen:2个月2周前
加入:2021-01-06 11:12
Yes, I have tried as

Yes, I have tried as described in dochttp://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/binary...

Mobile APP Terminal connected to DA15431

Connects to ble +AWAKE

+连接

According to doc:http://lpccs-docs.dialog-semiconductor.com/UM-140-DA145x-CodeLess/binary...

<-------------发送“at + binreq

发送“at + binreqack”-------------->

How do I enable auto binary mode in my mobile app as achieved in SmartConsole.

PM_Dialog
Offline
Last seen:2 days 4 hours ago
Staff
加入:2018-02-08 11:03
Hi prakash Solanki,

Hi prakash Solanki,

Please take a look at section 8.4.6.1. Binary Mode in the user guide.

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

谢谢, PM_Dialog

prakash Solanki
Offline
Last seen:2个月2周前
加入:2021-01-06 11:12
Hello

Hello

I am trying to issue a simple "AT\r" command to the da15431. I am able to communicate to the module via Tera term and able to issue "AT\r" command an I receive "OK". Now I have connected to an MCU and set up correct baud rate and when I issue "AT\r" I get following in the receive buffer from the da15431:

rcvbuffer.
0x41 0x54 0x0D 0x0D 0x0A 0x45 0x43 0x30
0x36 0x3A 0x20 0x4E 0x6F 0x6E 0x20 0x41
0x54 0x20 0x63 0x6f 0x6d 0x6d 0x61 0x6e
0x64 0x0D 0x0A 0x0D 0x0A 0x45 0x52 0x52
0x4F 0x52 0x0D 0x0A

以ASCII格式:

rcvbuffer.

在 。。。E C 0 6:

。N o n . A T . c o

m a n d。。。。E.

R R O R . .

It looks like I am sending correct command AT\r

谢谢

PM_Dialog
Offline
Last seen:2 days 4 hours ago
Staff
加入:2018-02-08 11:03
Hi prakash Solanki,

Hi prakash Solanki,

Please let me ask you some questions, so that I can understand the setup

>>现在我已连接到MCU并建立正确的波特率

您是否意味着DA14531通过BLE连接或通过UART连接到MCU?

In the first case, are you sending the commands from a terminal ?

在第二种情况下,您可以在DA14531和MCU之间共享UART连接吗?波特率是多少?

请分享有关您使用的设置的更多输入以及AT命令的序列,以便我能够了解更好的问题。

谢谢, PM_Dialog

prakash Solanki
Offline
Last seen:2个月2周前
加入:2021-01-06 11:12
The Da14531 is connected to

The Da14531 is connected to MCU via the BLE connection, Baud rate 57600, 8, n, 1 for both cases.

For below setup, I am just sending "AT\r"

MCU DA15431

rx p0_5.

TX P0_6

In first case, yes sending command from terminal.

prakash Solanki
Offline
Last seen:2个月2周前
加入:2021-01-06 11:12
Hello

Hello

fyi ..我已经解决了这个,所以没有必要的任何行动。

谢谢

PM_Dialog
Offline
Last seen:2 days 4 hours ago
Staff
加入:2018-02-08 11:03
Hi prakash Solanki,

Hi prakash Solanki,

谢谢for the update and glad the you figured this out.

谢谢, PM_Dialog