⚠️
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.
11 posts / 0 new
Last post
克里斯南纳格
Offline
最后一次露面:2年3个月前
加入:2018-05-27 21:33
无附睡眠

嗨对话框,
I am using codeless AT command, to send data to smartphone from the sensor by sending it AT commands from the PC.
我面对的问题是,一旦它睡觉,我就无法唤醒它。所以,当我运行调试会话时,如果串行监视器(如TERATERM)尚未打开,则芯片睡眠并停止响应任何内容。所以当我运行调试会话时,如果串行监视器打开,并且我很快发送命令,那么设备开始响应,然后如果我发送+睡眠= 1,那么再次睡觉再次睡觉。我尝试发送@,at和大多数其他角色。
我正在使用Murata型ZF设计套件。
I want help in debugging by going through the code of the codeless AT .
有关代码结构的详细信息,以及关于代码的任何其他信息将非常有用。
你能帮帮我吗?

提前致谢。

设备:
PM_DIALOG.
Offline
最后一次露面:1天17小时前
Staff
加入:2018-02-08 11:03
嗨克里斯南纳格,

嗨克里斯南纳格,

我无法复制你的问题,你能做清洁你正在做的程序吗?我已经测试过,我能从睡眠中唤醒筹码。当您炙手可热的调试器时,您的设备无法醒来?你能先看看无附庸的教程吗?

https://support.dialog-semicondiondiondimicondum/resource/codeless-tutorial-html.

谢谢,PM_DIALOG.

克里斯南纳格
Offline
最后一次露面:2年3个月前
加入:2018-05-27 21:33
感谢您的回复。

感谢您的回复。
我已经看了教程,我现在做的ing exactly as they have said, by using smartsnippets, and loading the firmware and downloading it to the board. It still is not working. So I download the firmware on the board, and then open a serial monitor, and send AT, @ anything has no response.

要查看睡眠是问题,我已经在user_codeless.c中提交了prepare_sleep()函数中的Arch_set_extended_sleep()。因此,只要调用此函数,它实际上不会睡觉。然后我加载代码并启动串行监视器,一切都正常工作。所以它不是从睡眠中唤醒导致问题的睡眠。

UART正在运行正常,因为当它没有睡觉时它正在运作良好。然后它正在通过UART收到@ @没有响应?我无法理解正在发生的事情。
The motherboard is muRata P2ML3656 and daughter board is P2ML3599. The codeless code version i'm using is Codeless20170609_beta1. This is for programming the DA14580.

我注意到的另一件事是,当无附庸处工作时,即AT命令是响应的,引脚GPIO 0_4和GPIO 0_5的电压变化,表示传输。当我放置+睡眠= 1时,当发送字符时,这些电压不再不同。因此,如果在UART2上接收的信号,则可能会使这些引脚是UART1,并且中断将发生在UART2上的信号,并且UART2引脚被错误地配置?
If so, can you please tell me how to correctly configure it, because in user_periph_setup.c, there was no configuration of UART pins so where are these definitions present?

我附上了十六进制文件。
谢谢

克里斯南纳格
Offline
最后一次露面:2年3个月前
加入:2018-05-27 21:33
我注意到了一件事。

我注意到了一件事。
When I load the firmware and send a UART character within 10 seconds, the AT command gets response. So I am monitoring the power profile using smart snippets power profiler, and the weird thing is that when the chip is active, that is when it is responding to AT command, the average current is 180 micro amps, and when I put AT+SLEEP=1, then the current consumption increases to 250 micro amps. How is this happening?

PM_DIALOG.
Offline
最后一次露面:1天17小时前
Staff
加入:2018-02-08 11:03
嗨克里斯南纳格,

嗨克里斯南纳格,

Could you please clarify if you are using the default firmware of the codeless project? Did you modified it or not? As I mentioned in my previous post, I am able to wake up the chip sending any character through UART and following step by step the codeless tutorial. What behavior has your code when you sending a ‘@’ through UART? Did you try run it in debug mode in order to check it if the WDOG or an NMI hits? Regarding your second thread, you should not take increased power consumption when you get to sleep. I am not able to replicate your problem, so could you please make clean the procedure that you are following?

谢谢,PM_DIALOG.

克里斯南纳格
Offline
最后一次露面:2年3个月前
加入:2018-05-27 21:33
Hi,

Hi,
以下是我正在使用的无附件代码的zip文件夹的链接。

https://drive.google.com/open?id=1w33bttrb1eopvqxdgoibp-7japdyltwi.

This is a keil project, so i'm opening this in the keil environment, and building the target. Then I'm taking the hex file that has been built, and downloading this firmware into the board using smart snippets exactly as told in the tutorial. But there is a hardware setup section in the tutorial which says what to do in a proKit or a basic Kit, but mine is the murata typeZF kit and the jumper configurations are totally different, hence I didn't change anything as far as hardware is concerned. As soon as I downloaded the firmware to the chip, I opened Teraterm and set the serial port with the baudrate and other settings as mentioned in the tutorial, and started to send characters. This is the procedure I followed.

当您尝试复制问题时,您是否在Murata TypeZF套件上尝试过,其中提到了主板号码?我的一些硬件配置是否错误?
此外,当我告诉GPIO引脚P_04和P_05时,在给出睡眠命令时没有显示信号。所以,人物甚至没有去看我想的板。所以,当UART功能本身不起作用时,我怀疑的电路板没有收到@字符。所以在那里,如果任何必须改变,我也对UART配置表示怀疑。

我在调试模式下尝试过,但我是一个初学者,我不确定如何检查WDOG或NMI是否命中,或者它们表明的是什么,如果您对此有任何参考,我会尝试查阅,请允许我知道。

谢谢

PM_DIALOG.
Offline
最后一次露面:1天17小时前
Staff
加入:2018-02-08 11:03
嗨克里斯南纳格,

嗨克里斯南纳格,

I downloaded your project from the link that you posted, I used the murata board but I am not able to replicate your problem. Also, I didn’t do any hardware modification or jumper configuration in the board. Could you please clarify which is your problem? Are you able to send any other AT commands from the terminal and you are not able to wake up? In order to get knowledge about the debugging procedure please check the Tutorial 8: Debugging methods from our portal page.

https://support.dialog-seminile.com/resource/tutorial-8-debugging-methodsv11.

谢谢,PM_DIALOG.

克里斯南纳格
Offline
最后一次露面:2年3个月前
加入:2018-05-27 21:33
Hi,

Hi,

谢谢a lot for the debug link. I will try following that and try to figure out the problem.

I am surprised that you are not able to replicate the problem. The procedure I followed is exactly as I mentioned In the reply. Once it goes to sleep, its as if the UART turns off. Nothing works after that. No character even gets through the UART because the GPIO p04 and p05 pins show no change in voltage after sleep.

我正在附上我的设置照片。请您确认一些跳线配置是否有所不同。

Attachment:
PM_DIALOG.
Offline
最后一次露面:1天17小时前
Staff
加入:2018-02-08 11:03
嗨克里斯南纳格,

嗨克里斯南纳格,

请注意,当您使用无附件项目时,设备能够与从UART接收的每个字符唤醒,不仅与'@'相同。在芯片进入睡眠之前,如果您的所有AT命令才能正确地澄清您吗?您自己的问题是设备进入睡眠模式时?你怎么知道在那之后没有什么工作?您是否使用Power Profiler以检查580是否是广告的或者不是或者仍在睡眠模式中?你期望看到什么?我确认了跳线配置,我与你的跳线相同。

谢谢,PM_DIALOG.

克里斯南纳格
Offline
最后一次露面:2年3个月前
加入:2018-05-27 21:33
是的,在芯片进入之前

是的,在芯片进入睡眠之前,所有命令都正常工作。我没有检查I2CWRITE或读取命令,因为我现在没有传感器。
除此之外,一切都正常工作。当它睡觉时,如果我通过UART发送角色,它就没有给出响应。当它醒来时,我希望在我的串行监视器上看到一些东西。
I did not use power profiler to see if it is still advertising, because I don't know what is happening in the power profiler. As I mentioned, as soon as it goes to sleep, the current consumption increases for some reason, so I am not understanding what is going on in the power profiler. But, I am able to see codeless advertising in BLE android app, when it is active, but when it goes to sleep, that stops detecting codeless, which means it has stopped advertising. And even on sending any character in UART, the issue is the same.

PM_DIALOG.
Offline
最后一次露面:1天17小时前
Staff
加入:2018-02-08 11:03
嗨克里斯南纳格,

嗨克里斯南纳格,

我无法复制你的问题。您能从SDK的默认示例中下载固件吗?你面对同样的问题吗?例如,如果您运行BLE_APP_SLEEPMODE项目,当设备睡眠时,当前消耗仍然增加?此外,我建议您使用Smart Scippet的电源分布程序,以检查设备是否广告或不知道该设备在广告和连接间隔之间睡眠。

谢谢,PM_DIALOG.