|
Hello All, Thanks to everyone who responded to my
request for help. I’ve found what the problem is with Surge_Reliable and
BcastInject. The wiring of the components involves the
triggering of BcastM’s ReceiveMsg.receive event. At this event, the injected
packet is cast into TOS_BcastMsg type. Because of the differences in the structures
of TOS_BcastMsg and the command packet injected into the network, the definition
of “payload” is different for both SurgeM and BcastM. Therefore,
the “payload” parameter passed to SurgeM’s Bcast.receive
event SHOULD NOT be used to determine the injected command type; rather the “pMsg”
parameter passed to SurgeM’s Bcast.receive event SHOULD BE cast to the
application’s command message structure used by BcastInject to construct
the injected command in the first place. I appreciate every response I got with
regards to this thread. Adesola From: Adesola Omotayo Hello Venkat, I really appreciate that you responded to
my mail. Radio communication is not the problem,
but UART. Running Surge_Reliable, the motes are able to communicate with one
another. Using MOTEIF, I was able to inject commands into port 9001 that Serial
Forwarder has opened. The challenge I’m facing is in the base node (node
0) receiving the commands sent to port 9001. I hope I have been able to clearly
express the problem. I’ll really be glad to hear your
idea on how to make Surge_Reliable running on a base node receive commands sent
to it through the UART. Thanks, Adesola From: Adesola, Hey i dont know if this is your problem. But please check if you
are setting the radio frequency of the motes correctly in the make rules file.
If your motes are of 916 Mhz and you are using 433 MHz setting
.. the communication wont occur. Hope this solves the problem ... Regards, Venkat. Please help! The problem I have is in sending commands to motes from a
PC. These were the steps I took: 1. programmed three mica2 motes with Surge_Reliable
and designated one of them as the base node (ID of 0). 2. started serial forwarder 3. ran the java program, BcastInject with parameter:
led_on BcastInject displayed a message that it was sending the
payload and the payload itself was also displayed. But the problem is that the
motes are not responding to the “led_on” command. I have poked into
almost all the codes that make up Surge_Reliable, but still don’t know
why the motes are not responding. I placed calls to “led” in
strategic places in the code just to find out which parts of Surge_Reliable are
being executed. However, it looks like the base node is not picking up the
message from UART through AMPromiscuous. I’m at my wits’ end after sleepless nights on
this problem. I need all the help I can get!! Once again, the task I want to perform is: SEND COMMANDS TO
MICA2 MOTES FROM A PC. Thanks! Adesola _______________________________________________ |
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
