It worked.
Thanks
Islam
- Original Message -
From: Javier Barbarán Sánchez [EMAIL PROTECTED]
To: Islam Hegazy [EMAIL PROTECTED]
Cc: tinyos-help@Millennium.Berkeley.EDU
Sent: Wednesday, June 06, 2007 12:49 AM
Subject: Re: connecting to the SerialForwarder
Hi Islam,
Try to do it
Hi Islam,
Try to do it as I do... In my case it is working, but anyway, you have not
implemented properly de protocol
(the code is in pseudo-C#)
//First we have to send the protocol initialization, sending the protocol
version
us[0]='T'; us= '!';
socket.Send(us,0,us.Length, );
//After
Thanks very much for the paper. It was really helpful.
Now I can receive from the SF. However, what I receive is unexpected. First,
what is the platform that I have to send to the SF? At the moment I resend
the platform that I receive from the SF. Second, the data length byte is
always '\t' which
Hi
What do you mean by following the SerialForwarder protocol? I create a socket
and connect it to the SF but I only receive T!- . I did another client on
Windows using C# and I did the same steps but it receives normally through the
socket...
Regards
Islam Hegazy
- Original Message
Javier Barbarán wrote:
Hello,
I mean that you have to take a look to the class that I mentioned in my
last mail. There you will see that in order to connect to
SerialForwarder application (I remember that you were using c-based
version) you have to follow a specific protocol (implemented in
I am referring to TinyOS 1.x
Ákos Maróy escribió:
Javier Barbarán wrote:
Hello,
I mean that you have to take a look to the class that I mentioned in my
last mail. There you will see that in order to connect to
SerialForwarder application (I remember that you were using c-based
version) you
Sorry I didn't mention it before, it is TinyOS1.x
- Original Message -
From: Ákos Maróy [EMAIL PROTECTED]
To: Javier Barbarán [EMAIL PROTECTED]
Cc: Islam Hegazy [EMAIL PROTECTED]; tinyos-help@Millennium.Berkeley.EDU
Sent: Monday, June 04, 2007 2:05 PM
Subject: Re: [Tinyos-help] Re
What I understand from the code is how to interpret the data not how to
receive it. My problem is that my client receives 'T!' only. I have the
following changes but nothing new happens. It stops at the second recv
waiting for data to arrive:
if ((rcd = recv(sd, s, 2, 0)) != 0)
{
if
The way to receive data from SerialForwarder (c-based version
partiularly, but also any version) is to implement the whole protocol
(check the code, it's more than you are doing). Once you have negotiated
properly the SerialForwarder protocol, the SerialForwarder protocol will
send you first