Flavio,

Why don't you use a java application like TestSerial.java described at
http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder
?<http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder?>?.

This way you don't need to worry about the packet format. Actually, you will
need to change this java app for sending packets to BaseStation, but it is
not so complicated.

regards,

Afonso Ribas

------------------------------
>
> Message: 4
> Date: Thu, 13 Mar 2008 16:44:21 -0400
> From: "Cabrera-Mora, Flavio" <[EMAIL PROTECTED]>
> Subject: [Tinyos-help] Problem sending packets - Serial to MIB510
> To: <[email protected]>
> Message-ID:
>         <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Dear sirs,
>
> I'm working in an application using micaZ motes and tinyOS2.
>
> The settings: the basic configuration consists of a micaZ (from now on,
> the base) plugged on top of a MIB510 board, and this board connected through
> a serial port to a computer. The computer runs Debian Linux. On the base I
> installed the Basestation application (the one that comes with the tinyOS
> installation software). I need the robot to send a packet through the serial
> port to the base so the base can send that packet through the radio to other
> motes. The payload of such packet is only 1 byte. I'm not using any java
> applications.
>
> The problem: Although the computer is sending packets through the serial
> port, the Basestation application on the base is not doing anything with it.
> I suspect the problem is that the format of the packet being created and
> sent by the computer is not in the same format the BaseStation application
> wants it. I have modified my code endlessly (changing the format of the
> computer packet) with no luck at all.
>
> The questions: is my diagnostic of the problem correct? If so, could
> anybody tell me what this format must be? So far, I know that the basic
> structure is [header][Payload][sync byte] but when looking over the
> internet, people disagree about the number of fields (bytes) on the packet.
>
> Thank you very much for your help.
>
> Regards,
>
> Flavio Cabrera-Mora
> EE Department
> The Graduate Center - CUNY
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080313/d10d3782/attachment.html
>
> ------------------------------
>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to