Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ChillKroete
PostPosted: Aug 02, 2012 - 09:14 AM
Rookie


Joined: Feb 24, 2011
Posts: 40


Hi Avr-freaks,

Is it possible to trigger an interrupt when a wireless connection exists without the Hardware applications layer of Bitcloud. I want to change the state of my statemachine from Offline to Online when a connection between coordinator and router exists.
Code:

static ZDO_StartNetworkReq_t networkParams;
static void ZDO_StartNetworkConf(ZDO_StartNetworkConf_t *confirmInfo);

networkParams.ZDO_StartNetworkConf = ZDO_StartNetworkConf;
          ZDO_StartNetworkReq(&networkParams);

I guess i have to deal with the Bitcloud starter Guide, cause i don´t understand the interaction of the Apl_Taskhandler and the Zdo_layer.

Maybe anyone understand my question and can help me.
Thanks
Best regards
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Aug 02, 2012 - 08:47 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4870
Location: San Jose, CA

If "connection exists" depends on the application. Routers do not need coordinator to operate, so stack does not know if there is a coordinator around or not. You need to implement application specific method to check this.

_________________
The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I’m affiliated with.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
ChillKroete
PostPosted: Aug 03, 2012 - 10:14 AM
Rookie


Joined: Feb 24, 2011
Posts: 40


Ok thanks for your reply Wink

Does that mean, that i must try to awaken (maybe each 10 sec) the transceiver and then to connect? It´s not hard to develop, but that´s not what i want.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Aug 03, 2012 - 05:00 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4870
Location: San Jose, CA

What are you trying to do and detect? Awaken from what?

_________________
The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I’m affiliated with.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
ChillKroete
PostPosted: Aug 07, 2012 - 07:45 AM
Rookie


Joined: Feb 24, 2011
Posts: 40


My router is a data logger. The router writes temperature data on sd card. Then we go to sleep. When timer is fired we repeat the Process. Thats the normal process. If the router in the near of the Coordinator or Masternode I want to transfer the temperature data to the coordinator. That means when the router is sleeping and in the near of the coordinator, I want to send a wake-up command and after that a command like "send data". I dont know how to implement or rather the best way to implement.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Aug 07, 2012 - 06:38 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4870
Location: San Jose, CA

If transceiver is sleeping, then there is no way to wake it up remotely. If only MCU is sleeping, it does not save a lot of power, so it makes sense to stay awake all the time. Usually this kind of systems is designed in a way that sleeping device wakes up from time to time and sends poll request to the coordinator. If coordinator responds, then devices proceeds with data transfer.

_________________
The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I’m affiliated with.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits