Re: [Tinyos-help] Read packets from SerialForwarder in java

2005-12-15 Thread Chalermphol Thammapalerd
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

Re: [Tinyos-help] Read packets from SerialForwarder in java

2005-12-15 Thread Daniel Larsson
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

Re: [Tinyos-help] Read packets from SerialForwarder in java

2005-12-15 Thread Chalermphol Thammapalerd
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,

[Tinyos-help] Read packets from SerialForwarder in java

2005-12-14 Thread Daniel Larsson
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