[Tinyos-help] apps/BaseStation does not work after update using CVS

Tie Luo tieluo at gmail.com
Mon Oct 23 07:00:46 PDT 2006


In a java program, using the following

PacketSource reader_writer;
reader_writer = BuildSource.makePacketSource();//env MOTECOM has been set
correctly
reader_writer.open(PrintStreamMessenger.err);
byte[] pkt;
...//fill in pkt
reader_writer.writePacket(pkt);

The last line will return false. :(


On 10/23/06, KANG HUI <huk at cs.okstate.edu> wrote:
>
> Hi, Tie,
> I met the same problem. Say, for Osciscope, I can get the message
> successfully, but Listen.java prints 'bad packet.'
> Can you receive the message?
>
> Hui
>
> On Mon, 23 Oct 2006, Tie Luo wrote:
>
> > When using apps/BaseStation to communicate with tools/Listen.java,
> > Listen.java prints '/dev/ttyS0:57600 - bad packet'
> > What is the simplest way to fix the problem incurred by the updated
> serial
> > protocol?
> >
> > On 10/23/06, Tie Luo <tieluo at gmail.com> wrote:
> > >
> > > Please ignore my previous email on Java program; when I wrote that
> email I
> > > did not notice your reply.
> > > I will look into the new TEP.
> > > BTW, can you tell me what modification should be made to BaseStation
> to
> > > make it work?  It is not changed accordingly with the update of the
> serial
> > > protocol. Thanks alot.
> > >
> > >
> > >  On 10/23/06, Philip Levis <pal at cs.stanford.edu> wrote:
> > > >
> > > > On Oct 22, 2006, at 8:23 PM, Tie Luo wrote:
> > > >
> > > > > After update the whole tinyos 2.x in October, using the develop
> > > > > branch, the apps/BaseStation does not work. In particular, using a
> > > > > Java program to open and write a message to the BaseStation via
> > > > > serial port will return error.  While the same code can run on the
> > > > > previous version of tinyos.
> > > > >
> > > > > I have checked that BaseStation has not changed in the new
> version,
> > > > > so I think this problem is due to the change to serial comm codes.
> > > >
> > > > The serial protocol has changed. Please read TEP 113.
> > > >
> > > > Phil
> > > >
> > >
> > >
> > >
> > > --
> > > Regards,
> > > Tie
> >
> >
> >
> >
> > --
> > Regards,
> > Tie
> >
>
>


-- 
Regards,
Tie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20061023/4c1a48f3/attachment.htm


More information about the Tinyos-help mailing list