Re: [Nxtcommand-developers] rolyv19: modified Keep-Alive thread inNXTCommRXTX and NXTCommSun open()
Status: Beta
Brought to you by:
bbagnall
From: Peter J. <ptg...@ch...> - 2006-12-12 03:44:48
|
I just had a quick look at the system commands. I could not find a command to change the KeepAlive time programmatically. That would be my preference. I agree with your suggestion to make the KeepAlive thread an optional feature (using a boolean). This would be usefull for dashboard applications. If someone returns from a break, he still wants his brick to be turned on, the BT connection to be alive, and able to continue playing with the application. Peter Joosten. A note: 1 . The NI document says that the KeepAlive command resets the sleep timer. Probably all commands reset the sleep timer. It would be very bad design if the brick goes asleep while still firing commands. I think the sleep time is (/should be) an idle time, time since last command. -----Original Message----- From: Roly Vicaria [mailto:ro...@gm...] Sent: Tuesday, December 12, 2006 3:50 AM To: ptg...@ch... Subject: Re: [Nxtcommand-developers] rolyv19: modified Keep-Alive thread inNXTCommRXTX and NXTCommSun open() method. OK...I see your point. But what if someone doesn't want to set the sleep to never, after all, it is a safeguard for battery life. So if the NXT gives you a choice of setting it to never sleep or not, then how about setting a boolean of whether or not to send the keep-alive message to give the user the same choice? On 12/11/06, Peter Joosten <ptg...@ch...> wrote: First a little correction. According the National Instruments Avdvanced Programming Guide the KeepAlive command not only reads the current sleep time, but also resets the sleep time counter to zero. (An example of the "added-value" of the NI document compared to Lego BTSDK). This doesn't change my message: Firing periodic keep-alive commands from the NXTComm implementations makes no sense, since the NXT brick can be set to never sleep. Therefore this change in the code should be undone / removed again. This is my personal opinion. Peter Joosten. > -----Original Message----- > From: nxt...@li... > [mailto:nxt...@li...]On Behalf Of > Peter Joosten > Sent: Monday, December 11, 2006 6:45 AM > To: iCommand Developers > Subject: [Nxtcommand-developers] rolyv19: modified Keep-Alive thread > inNXTCommRXTX and NXTCommSun open() method. > > > Hi Rolyv19, > > I saw your Keep-Alive thread commited to subversion. > > The only thing the Keep Alive command does is read the "sleep" setting (in > msec). > Ok, you may send Keep Alive commands (or any other command) just > before the > NXT is falling asleep. > But why not set the "sleep" setting on your brick manually to > "never" (value > = 0). > > A desciption of the commands can be found at: > http://mindstorms.lego.com/Overview/NXTreme.aspx Download the BDK > documents > > >From National Instruments > http://zone.ni.com/devzone/cda/tut/p/id/4435 > > Download the The Advanced Progamming Guide. I thinks this is a very fine > resource. > The BDK only describes the command layout. Not giving any "good" > explanation. > > Personally, I had a hard time figuring out from the BDK what > combinations of > enumerations > can be used for what sensor. This guide gives an explanation. > > Peter Joosten. > > > ---------------------------------------------------------------------- --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Nxtcommand-developers mailing list > Nxt...@li... > https://lists.sourceforge.net/lists/listinfo/nxtcommand-developers ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nxtcommand-developers mailing list Nxt...@li... https://lists.sourceforge.net/lists/listinfo/nxtcommand-developers |