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 / 1361
  legOS Addressing - Packet Handler
 
Hi All I have a very simple RCX legos program (which I've attached), that I'm having difficulty with. I have compiled legOS with the default host address of 0 (0x00). I am using WinLNP to send data to the RCX (simple short strings), but the RCX will (...) (24 years ago, 11-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: legOS Addressing - Packet Handler
 
(...) Take the sleep(1) out of the code! The function addressHandlerPortOne() is called from an interrupt, so you must not call any function which might cause a reschedule (which sleep() definitely does). You can do all this by having a separate (...) (24 years ago, 11-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: legOS Addressing - Packet Handler
 
Thanks Eddie, Sorry for posting a message I should have known the answer to. I'll have a look at the semaphore example. If anyone knows of a good refence for semaphore programming could they please let me know?Its taken me a while to get into the (...) (24 years ago, 11-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: legOS Addressing - Packet Handler
 
(...) Semaphores: You said you installed Linux, try "man sem_post". Also kernel/program.c is a good reference for a semaphore use. A more complicated example is the tx_sem in kernel/lnp-logical.c and kernel/lnp.c. Eddie C. Dost ecd@skynet.be (24 years ago, 11-Aug-00, to lugnet.robotics.rcx.legos)

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