control ble sleeping with UART interrupt

Learn MoreFAQsTutorials

5 posts / 0 new
Last post
DanyloVodopianov
Offline
Last seen:4 months 1 week ago
加入:2019-09-30 19:35
control ble sleeping with UART interrupt

Hello

I create projects, what based on DA 14585 chip

I need add sleep mode, but device must communicate with anoter chip via UART.

Device should sleep and after getting command via UART: "TURN_ON_BLE", device should turn on ble and start advertising, then device should get interrupt from UART and execute another command

My question is, how i can enable UART interrupt for getting command data from another device via uart and turn on or off ble

Device:
DanyloVodopianov
Offline
Last seen:4 months 1 week ago
加入:2019-09-30 19:35
I have system with 2 chips.

I have system with 2 chips. and it will be good if device turn on, when we high signal on some Pin and sleep when we have low signal on the same pin

And i need UART interrupt for always getting command from another chip

Can you help me, how to implement this

Thank you

PM_Dialog
Offline
Last seen:12 hours 36 min ago
Staff
加入:2018-02-08 11:03
Hi DanyloVodopianov,

Hi DanyloVodopianov,

Please notice that in any of sleep mode, all the peripherals are powered down, including UART2. This means that you are not able to have any UART activity when in sleep mode.

关于sleep modes on DA14585 SoC, please check the ble_app_sleepmode example of the SDK and you can also refer toTutorial 4: Sleep modes current measurementtutorial from our support portal.

Regarding your question, there is a very close Reference Application available named CodeLess. The CodeLess AT commands platform allows you to control over a local UART connected device as well as a remote device via BLE and many other applications. Please take a look at CodeLess project:

//www.wsdof.com/products/smartbondtm-codeless-commands

Thanks, PM_Dialog

DanyloVodopianov
Offline
Last seen:4 months 1 week ago
加入:2019-09-30 19:35
感谢你的回答,我明白了

感谢你的回答,我明白了situation with peripheral.

Can i wakeup device with external interrup with setting some GPIO in high level ?

If yes, in what way?

I see this: "arch_set_deep_sleep(0): An external interrupt can wake-up the DA14585/6." in yout tutorial, but i can't wake up my device from button

PM_Dialog
Offline
Last seen:12 hours 36 min ago
Staff
加入:2018-02-08 11:03
Hi DanyloVodopianov,

Hi DanyloVodopianov,

Yes, this is already implemented in ble_app_sleepmode example. You should use the wake-up controller. Please take a look at this SDK example of the SDK and let me know if you need further clarifications.

Thanks, PM_Dialog