[Tinyos-help] About xcommand for motes.
ravish kumar
rvsfun at gmail.com
Mon Sep 22 11:26:01 PDT 2008
Hello Sir,
I am using iris platform motes with MDA 300 board. I am implementing modbus
communication inside the gateway. I succeeded to implementing modbus holding
register. ie now my gateway is able to communicate with the hardware or
software that support modbus interface directly. Now i want to implement
command of motes such as sleep,wake accutate ... through modbus write
function such as function 10. But i have problem with xcommand data format,
how to broadcast that message. Any how i got the message format of command
sleep for Mote 1.Please refer the wiring diagram of motes. In this wiring
diagram i am not using UARTFramedPacket.nc,FramerAckM.nc,FramerM,UART,UARTM
component and module instead of these component and module i used
ModbusC,ModbusM module.
For sending xcommand message from serial port i am doing following steps
1. store the Xcommand data into uint8_t array[33];
2. store the address of array into TOS_MsgPtr
TOS_MsgPtr Arrayptr=(TOS_MsgPtr)array;
send this Arrayptr to AMpromiscuous event ReceiveMsg.receive(TOS_MsgPtr
ptr);
by signal ReceiveMsg.receive(ArrayPtr);
*Note : Same data packet i stored in array[33] which is used by xserve for
sending xcommand*
Please tell me
1)Is it correct step of sending xcommand ?
if any step i am not doing then tell me.
2) i am not using UARTFramedPacket.nc,FramerAckM.nc,FramerM,UART,UARTM
component
due to this whether i need to change data format of xcommand used by xserve
? if yes then tell me correct
format.
I am attaching both default one and my own component diagram of Xmeshbase.
Please see it and if you have any solution
then please share with me.
--
Regards
Ravish Kumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080922/d317db4e/attachment.htm
More information about the Tinyos-help
mailing list