Dear everyone,

The following is a suggestion from a kind helper in this forum which is
sending message to the
serial forwarder in T2, Coz what I am using is the tossim-serial as the
simulation platform.
So I am wondering what values should I fill the inet_addr and port_addr in
the open_sf_source function ?
Coz I am using Oscillcope apps to send message to serial forwarder, the
listener part I use command
                   java net.tinyos.sf.SerialForwarder -comm tossim-serial
to capture the packets, what I am doing is trying to write a C program which
I am now using the sfsend.c
to help me to send package to the serial forwarder, instead of Oscillcope.nc,
so I need to know what's
the value of inet_addr, port_addr in it?

1) Open sf channel using : sf_descr = open_sf_source(inet_addr, port_addr)
2) To write to sf channel, use : write_sf_packet(sf_descr, &data,
dataLength)


Thanks for your guys help. Please please do help me out... ><

-- 
Best wishes,
Kenneth Chan

------------------------
Wish you have a good day!
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to