Hi all, i have written a java app which listen for a certain kind of message coming from the motes via the BaseStation app. Everything works well, but now i have no physical access to the motes and i'd like to build a dummy packet generator, so i can test the java app without having to use the motes, simply exporting motecom...@localhost:9002 for the java app and using the generator to publish dummy messages on that host:port. However, i don't know how these messages should look like.
they are defined as:
nx_struct MoteMsg {
nx_uint16_t id;
nx_uint16_t val;
nx_uint32_t time;
nx_uint8_t i;
}
and they are of type AM_MOTEMSG = 6.
i have tried sending two kind of messages:
an AM message in a byte array form like 00 ff ff 09 22 06 00 00 0000 0
and another one which i've found in tep 113:
7e 40 09 00 ff ff 09 22 06 00 00 0000 0 7e,
which should be an am message wrapped for serial transmission.
I have even tried with a serialforwarder in the middle, but
none of this worked. So, how does a packet of this structure should look like
at serialforwarder input?
Thanks for any kind of help.
--
===================================================================
Francesco Foresti
Registered Linux User #332599
key fingerprint = 59D5 1E61 6631 5DEF DC88 C64C 7F53 2F45 99FB CD21
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
