Hi Daniel,
You may extract the information seperately by using the OscopeMsg class,
with knowing what packet you're taking.
It's a mess if you don't even know what kind of a packet you're taking, isn't it?
Check out how OscopeMsg.java(in tinyos-1.x/tools/java/net/tinyos/oscope) deal with each packet.
HTH &
Good Luck
Chalermphol
Chalermphol
On 12/16/05, Daniel Larsson <[EMAIL PROTECTED]> wrote:
Hi again
I'm not sure if that really helps me.
I have a server running the SerialForwarder program. The next step is for my client (running on another machine) to connect over the LAN.
So far so good, but now the client wants to read data from the SF server. This is the part that I'm unsure about and would like some help.
If I open an "DataInputStream is", I can read one byte with for example is.readByte();
But I would like to read several packets and extract the temperature measurement.
Any ideas ?
Regards, Daniel.
On 12/16/05, Chalermphol Thammapalerd <[EMAIL PROTECTED] > wrote:Hi Daniel,In this case, You may extract the information seperately by using the OscopeMsg class.Then try it's methods like get_sourceMoteID(), get_channel() or else.However, have you tried the "Listen" tool?The usage is "java net.tinyos.tools.Listen".Good Luck,Chalermphol
On 12/15/05, Daniel Larsson < [EMAIL PROTECTED] > wrote:Hi_______________________________________________
I'm using OscilloscopeRF together with TOSBase and SerialForwarder to make the packets available over the network.
I was able to connect to the SerialForwarder server on port 9001, but how do I read the packets and extract the information from them in java?
The start of my code looks something like this:
Socket sock = new Socket(server_name, TCP_PORT);
DataInputStream is = new DataInputStream(
new BufferedInputStream(sock.getInputStream( )));
Regards, Daniel
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
