LowPowerLab Forum

Hardware support => General topics => Topic started by: Richelsdorfite on April 08, 2014, 03:20:11 PM

Title: Packet received interrupt ?
Post by: Richelsdorfite on April 08, 2014, 03:20:11 PM
Hi,

I use to Moteino RFM69, the first one is working with RPi the second waiting for command from Rpi, reading sensors and doing some others jobs.

The architecture of my mode soft is simple

//Déclaration
//Main
//Loop
//Function Read Sensors

In Loop, the Node is waiting command and every 30s read sensors, this task takes thirty seconds during which I can not process a Rpi command.

Is it possible to attach a software interrupt on a packet arrival ?
Title: Re: Packet received interrupt ?
Post by: Felix on April 08, 2014, 03:35:11 PM
It takes 30 seconds to read sensors?  ???
Title: Re: Packet received interrupt ?
Post by: Richelsdorfite on April 08, 2014, 03:38:41 PM
Sorry, read "3 to 4 seconds"  :o (8 DS18B20 + setting PWM fans)
Title: Re: Packet received interrupt ?
Post by: Felix on April 08, 2014, 03:57:16 PM
There's already a hardware interrupt used by the RFM69 library to read packets.
I think you just have to work around your DHT sensors. The packets will be received either way. You just need to poll to see when one is ready.
Title: Re: Packet received interrupt ?
Post by: Richelsdorfite on April 09, 2014, 02:44:45 AM
Ok, I will try  :)