To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3474
3473  |  3475
Subject: 
Re: disable LNP
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Fri, 10 Oct 2003 16:39:11 GMT
Viewed: 
3512 times
  
In lugnet.robotics.rcx.legos, Steve Hassenplug wrote:
I need to write a program that can send and receive messages, but there are
times when the program is running, that I don't want to waste processor time
watching for messages.

Is it possible to switch LNP on and off, while a program is running?

I guess I should also ask if LNP does actually use processor time, when it's not
receiving messages.

Steve,

If no IR traffic (of any kind) is occurring, then there is very little overhead
associated with LNP being active.  In any event, this trivial amount of overhead
(in systime.c) can't be disabled.

What you really need to be concerned about is this:

http://news.lugnet.com/robotics/rcx/legos/?n=3078

Basicly, 2/3 of the CPU is being used to sample the sensors at 6.7KHz - whether
you need that kind of bandwidth or not!  I doubt LNP uses more then a few
percent when actively receiving a packet.

Mark

BTW, I'm currently working on a few changes to BrickOS to make it compatible
with my DCC decoding routines.  One of the changes is to get this A/D thing
under control.  I'll post here when I have these patches complete.



Message has 1 Reply:
  Re: disable LNP
 
(...) Have the changes from the above thread been implemented in a release of BrickOS, yet? (reduced sensor sample rate) I need to D/L a new release, but I don't want to rush, because I know I'll have to make changes to some of my existing code. (...) (21 years ago, 10-Oct-03, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  disable LNP
 
I need to write a program that can send and receive messages, but there are times when the program is running, that I don't want to waste processor time watching for messages. Is it possible to switch LNP on and off, while a program is running? I (...) (21 years ago, 9-Oct-03, to lugnet.robotics.rcx.legos)

7 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR