Hello!

Sorry for insisting but I am stuck! I am using tinyos-2.1.0. I have some
telosb motes sending messages to a basestation mote. At first I simply
needed my basestation mote to create messages-replies, which should be sent
broadcast to the network. I had written an application which was working
fine.

But now I also need my basestation application to forward all the received
messages to the serial port. Then a java application will store the data
included in the messages in a database. My java application works fine,
since if I install the existing BaseStation application to my basestation
mote the database is completed correctly. But the existing BaseStation
(tinyos-2.1.0/apps/BaseStation) is too complicated in order to edit it and
add the functionality for sending messages-answers to the motes. I tried
that, but I had no luck!

On the other hand, I also tried to edit the basestation application of
mine, in order to send the received messages to the serial port. I took a
look at TestSerial application, that sends the messages to the serial port
using the line:

//from TestSerialC.nc
if (*call AMSend.send(AM_BROADCAST_ADDR, &packet, sizeof(test_serial_msg_t)*)
== SUCCESS) {


I tried that but it didn't work. I also tried using TOS_UART_ADDR (defined
as 0x007E), without success.
Can anyone please tell me if my approach is correct? Any help will be
appreciated!
Thanks in advance,
Georgia
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to