Interrupts example

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
vs5067
Posts: 3
Joined: 30 Sep 2016 13:51

Interrupts example

Post by vs5067 » 30 Sep 2016 14:16

Is it possible to use standard Arduino interrupts examples? If not are any examples exist?

User avatar
PoltoS
Posts: 5061
Joined: 26 Jan 2011 19:36

Re: Interrupts example

Post by PoltoS » 01 Oct 2016 11:31

Not yet. This will be added later on.

vs5067
Posts: 3
Joined: 30 Sep 2016 13:51

Re: Interrupts example

Post by vs5067 » 03 Oct 2016 18:57

Does it mean that interrupts are not supported yet or example does not exist?

User avatar
PoltoS
Posts: 5061
Joined: 26 Jan 2011 19:36

Re: Interrupts example

Post by PoltoS » 03 Oct 2016 22:06

You can only wake up Z-Uno from sleep using INT1 or key scanner interrupt. But you can not yet attach handlers - we do not support this yet.

affanalhakam
Posts: 5
Joined: 30 Sep 2016 09:26

Re: Interrupts example

Post by affanalhakam » 04 Oct 2016 12:05

I was using INT1 and key scanner for waking up Z-Uno from sleep. But, that's not working at all. I think the problem is that's not supported attach handlers yet.
Can you please give us a simple example for INT1?

affanalhakam
Posts: 5
Joined: 30 Sep 2016 09:26

Re: Interrupts example

Post by affanalhakam » 04 Oct 2016 16:02

Got it! :D Thanks

vs5067
Posts: 3
Joined: 30 Sep 2016 13:51

Re: Interrupts example

Post by vs5067 » 07 Oct 2016 06:52

Could you please share the example?

p0lyg0n1
Posts: 176
Joined: 04 Aug 2016 07:14

Re: Interrupts example

Post by p0lyg0n1 » 08 Oct 2016 16:12

Hi. We need some time to do it. Z-Uno differs from Arduino board significantly. It uses special layer between user sketch and hardware. This layer makes all z-wave tasks, works with hardware interfaces and so on. Just say this layer is a small RTOS. Your sketch is a task of it. So, at this moment it has no ability to share interrupt vectors with user sketch. I hope we will do it in the next release. You can use INT1 input of Z-Uno to wakeup sleeping device. To this purpose you can use builtin keypad controller too, but you can't handle any hardware interrupt directly.

affanalhakam
Posts: 5
Joined: 30 Sep 2016 09:26

Re: Interrupts example

Post by affanalhakam » 12 Oct 2016 10:49

You can use the example from zuno website. The point is, once your zuno board is connected to the controller, It will wake up when you press the service button.

droll
Posts: 46
Joined: 20 Dec 2013 01:37

Re: Interrupts example

Post by droll » 22 Nov 2016 22:37

Any idea when the new firmware revision will be available that supports user interrupt routines?

Post Reply