Thank you very much. It did work. I realized that there were some wiring errors, but the main problem could have been because I was in the folder CFLAGS += -I/opt/tinyos-2.1.0/apps/Capstone/Handheld/Controller and when I switched to CFLAGS += -I/opt/tinyos-2.x/Connection In the make file, it worked.
Much Thanks, JF From: Xiaoyang Zhong Sent: Friday, March 30, 2012 10:09 AM To: Jared Fisher Subject: Re: [Tinyos-help] Cannot find module Hi, Every file is attached in the last email, you can check the makefile there. Do you get the same error every time? Have you tried the simplified program I described in the last email? Xiaoyang On Fri, Mar 30, 2012 at 12:58 AM, Jared Fisher <[email protected]> wrote: Hey, Unfortunately this isn’t working. Did you write something extra in the makefile? JF From: Xiaoyang Zhong Sent: Thursday, March 29, 2012 10:07 PM To: Jared Fisher Subject: Re: [Tinyos-help] Cannot find module Hi, I tested your component in a simple way, and it works. Attached is the file that I tested. There are two folders, one is "connection", the other is "controller". I just put them in /tinyos-2.x/. Maybe you can try this first. But if this does not work, then I do not know why. Good luck! Xiaoyang On Fri, Mar 30, 2012 at 9:06 AM, Jared Fisher <[email protected]> wrote: No luck. In my file. is that the correct way to wire the components as well? JF From: Xiaoyang Zhong Sent: Thursday, March 29, 2012 8:42 PM To: Jared Fisher Subject: Re: [Tinyos-help] Cannot find module You may use () to brace TOSROOT. Try CFLAGS += -I$(TOSROOT)/app/Capstone/Handheld Xiaoyang On Fri, Mar 30, 2012 at 8:32 AM, Jared Fisher <[email protected]> wrote: Hmm, this doesn’t seem to work. I added CFLAGS += -I$TOSROOT/app/Capstone/Handheld JF From: Xiaoyang Zhong Sent: Thursday, March 29, 2012 3:14 PM To: Jared Fisher Cc: Tinyos-help Subject: Re: [Tinyos-help] Cannot find module Try to add the direcory path of ConnectionC in your Makefile. CFLAGS += -I$(TOSDIR)/path replace 'path' with the actual path of ConnectionC in tinyos-2.1.1/tos/. On Tue, Mar 27, 2012 at 6:20 PM, Jared Fisher <[email protected]> wrote: Hello, I am getting an error saying that it cannot find a file. I am unsure if this is the correct way to go also. What I have so far is a ConnectionC module, Connection interface, a ControllerAppC and ControllerC. If you think in object oriented terms, I am trying to create a class ConnectionC, which is used in ControllerC. What I have so far is (I removed a bunch of irrelevant code) ControllerAppC.nc ---Code--- configuration ControllerAppC {} implementation { components MainC; components LedsC; components ControllerC as App; components ConnectionC as conn; ... App.Boot -> MainC; App.Leds -> LedsC; //Should something be here to wire ConnectionC? } ControllerC.nc ---Code--- module ControllerC { uses interface Boot; uses interface Leds; uses interface Connection as conn; } implementation {...} Connection.nc ---Code--- interface Connection { command error_t closeConnection(); command error_t openConnection(uint16_t id); } ConnectionC.nc ---Code--- module ConnectionC { provides interface Connection; ... } implementation { command error_t Connection.openConnection(uint16_t id){...} command error_t Connection.closeConnection(){...} ... } I am getting this error when I compile In component `ControllerAppC.AMSenderC.SenderC.AMQueueEntryP': /opt/tinyos-2.1.1/tos/system/AMQueueEntryP.nc: In function `Send.sendDone': /opt/tinyos-2.1.1/tos/system/AMQueueEntryP.nc(ControllerAppC.AMSenderC.SenderC.AMQueueEntryP):58: AMSend.sendDone not connected In component `ControllerC': ControllerC.nc: In function `Receive.receive': ControllerC.nc:33: conn.openConnection not connected make: *** [exe0] Error 1 and if I add App.conn –> ConnectionC; where I put a comment in the AppC file, I get. In component `ControllerAppC': ControllerAppC.nc:23: cannot find `ConnectionC' make: *** [exe0] Error 1 Is there a way to solve this? Regards, JF _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
<<wlEmoticon-smile[1].png>>
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
