Hi Sripada Kadambar,
I have the message reader for my read program.Below is it configuration.but
for me i 'm not receiveing anything on message reader.But just listen works
fine.
COMPONENT=ReadLogStorageAppC
CFLAGS += -I$(TOSDIR)/lib/printf
FLAGS += -DCC2420_NO_ACKNOWLEDGEMENTS
CFLAGS += -DCC2420_NO_ADDRESS_RECOGNITION
CFLAGS += -DTASKLET_IS_TASK
PFLAGS+=-DRF230_DEF_CHANNEL=26
PFLAGS+=-DCC2420_DEF_CHANNEL=26
BUILD_EXTRA_DEPS=ReadLogStorageMsg.class
ReadLogStorageMsg.class:ReadLogStorageMsg.java
javac ReadLogStorageMsg.java
ReadLogStorageMsg.java:
mig java -target=null -java-classname=ReadLogStorageMsg ReadLogStorage.h
ReadLogStorageMsg -o $@
include $(MAKERULES)
Thanks and regards,
Nandeesh.B
On Fri, Apr 23, 2010 at 6:51 PM, Isabelle Hang <
[email protected]> wrote:
> Thank you for your response.
>
> I finally got it work the following way:
>
> The compilation seems to need to "recognize" the nx_struct once. For that,
> I have to change the .h file and write the nx_struct at the last position of
> my list of nx_struct's. (I guess, I create thereby the java message class,
> am I?)
>
> Then, everything works well with MsgReader.
>
>
>
> Best Regards
>
>
>
> On Fri, 23 Apr 2010 18:22:56 +0530, sripada kadambar <
> [email protected]> wrote:
>
> The command *java net.tinyos.tools.MsgReader uint_8_msg *will only print
> something if it detects *uint_8_msg* type structure in the incoming data.
> Or else it will keep quite after printing the msg you saw. Also for this you
> need to create a Java message class for uint_8_msg.
>
> Make sure you have created the right java message
> class<http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder>before
> using the command.
>
> Regards,
> Sripada Kadambar
> IISc, Bangalore
>
> On Fri, Apr 23, 2010 at 3:30 PM, Isabelle Hang <
> [email protected]> wrote:
>
>> Hi all,
>>
>>
>>
>> I have ported a programme from tinyos 1.x to 2.x. The programme can be
>> compiled and now I try to set up the pc-mote-communication and there seems
>> to be problem.
>>
>> If I use
>>
>> *java.net.tinyos.tools.Listen*
>>
>> I get a response, which seems to be correct.
>>
>> But if I use
>>
>> *java net.tinyos.tools.MsgReader uint_8_msg*
>>
>> I only get the following message
>>
>> *ser...@com4:57600:resynchronsing*
>>
>> There is no error message or any kind of output. ( I would expect some
>> kind of information.)
>>
>> I must add that there are several _msg structures in my programme. Can
>> this be the problem?
>>
>> Has anybody an idea?
>>
>>
>>
>> Best Regards
>>
>> Isabelle
>>
>>
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help