9 posts / 0 new
Last post
Rony
Offline
Last seen:4 years 10 months ago
Master
Joined:2014-05-15 15:02
uart and interrupts

Developing an implementation of uart to ble connection.
I have it working when I wait for new rx data.
Would like to be able to use the uart interrupts for the implementation.
Is there any example of the uart running under interrupts?

PY_Dialog
Offline
Last seen:2 years 10 months ago
Staff
Joined:2014-08-25 09:59
Hi Rony,

Hi Rony,

Thank you for your interesting on Dialog BLE, the UART to BLR bridge is still under developing. If you hope to know more about UART, please refer to the prod_test project in our reference SDK.

Rony
Offline
Last seen:4 years 10 months ago
Master
Joined:2014-05-15 15:02
Thanks for the answer but

Thanks for the answer but this is not what I need.
I am trying to operate the uart using the sleep modes.
After I do that I will be able to integrate it with the ble module.
In the meantime I am able to do it but without turning the sleep mode on.
It is sufficient for one of our projects but not for another one that needs the sleep mode.

mohit3112
Offline
Last seen:9 months 6 days ago
Expert
Joined:2014-08-04 13:45
Hi Rony,

Hi Rony,

我也有类似的问题uart接收中断, it woks with sleep mode turned off but when sleep mode is turned on , uart receive interrupt stops working . did you find any solution for this?

Thanks
Mohit

Rony
Offline
Last seen:4 years 10 months ago
Master
Joined:2014-05-15 15:02
Not yet.

Not yet.
We have it working without getting into sleep mode because we get the power from the host computer .
But I think Dialog has a solution they presented in the Serial Port Service. Check it inhttp://support.dialog-semiconductor.com/ref-designs.
Good luck

JE_Dialog
Offline
Last seen:3 weeks 4 days ago
Staff
Joined:2013-12-05 14:02
Hello Rony, we will add

Hello Rony, we will add extended sleep support to the serial port service in the final release : that will come i hope in 2-3 weeks.

BR JE_Dialog

Rony
Offline
Last seen:4 years 10 months ago
Master
Joined:2014-05-15 15:02
Great news.

Great news.
By then we should be in our initial clinical tests...
Guess we will use it for next step
Thanks

boazharel
Offline
Last seen:3 years 7 months ago
Joined:2014-05-23 14:22
Hi. I'm facing a similar but

Hi. I'm facing a similar but opposite problem. I'm using the SPS example and performing a cold boot.
I've noticed that for the first 2 seconds the sleep_mode remains at mode_active. During that time the uart interrupt is not called for some reason.
I've done further testing and left the cpu at active mode constantly and it seems that the uart interrupt it not working.

Did someone face this problem?

MHv_Dialog
Offline
Last seen:1 month 3 weeks ago
Staff
Joined:2013-12-06 15:10
Hi,

Hi,

The uart is not initialized until after a connection has been established. That should explain the 2 seconds delay.