Hi,

I've checked the related files, and they are all cvs-updated. And I removed the ^M in the main.ihex and convert the file to UNIX format. However, I still met this bad file format error. The weird thing is that Blink can successfully programmed to the nodes, but it doesn't work for Oscilloscope. The same situation happens on both Cygwin and Ubuntu. Does anyone have any idea what's wrong?

Thanks.
Jiakang


------------------------------

Message: 5
Date: Wed, 30 May 2007 01:21:08 -0700
From: "Joe Polastre" <[EMAIL PROTECTED]>
Subject: Re: [Tinyos-help] Tmote connect (Error, bad file format)
To: "Arun Venkateshwaran" <[EMAIL PROTECTED]>
Cc: [email protected]
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I would check those files that you installed again.  It sounds like
your files have extra line feeds or carriage returns (ie, they're in
DOS format instead of UNIX format).  Convert the ihex files to UNIX
format and you should be fine.

On 5/30/07, Arun Venkateshwaran <[EMAIL PROTECTED]> wrote:
   I have connected a tmote sky to the tmote connect and I could check
the status throught the web page.

MotePresent Yes
Manufacturer Moteiv
Product tmote sky
SerialNumber M4AIZEIF
Errors none
NumClients 0
PacketsRead 0
PacketsWritten 0
ProtocolVersion 0
Speed 0
ActualProtocolVersion 1
ActualSpeed 57600

I tried to compile a program by using

 /opt/moteiv/apps/MySend
$ make tmote install,1 netbsl,192.168.1.4:10001, I get an error
    compiled MySend to build/tmote/main.exe
           16258 bytes in ROM
             570 bytes in RAM
msp430-objcopy --output-target=ihex build/tmote/main.exe build/tmote/main.ihex
    writing TOS image
/opt/tinyos-1.x/tools/make/msp/set-mote-id --objcopy msp430-objcopy --objdump ms
p430-objdump --target ihex build/tmote/main.ihex build/tmote/main.ihex.out-1 1
    installing tmote bootloader using netbsl
/opt/tinyos-1.x/tools/make/msp/netbsl 192.168.1.4:10001 C:/cygwin/opt/moteiv/tos
/lib/Deluge/TOSBoot/build/tmote/main.ihex --telosb -r -e -I -p
Using mote  on port /dev/ttyUSB0.
Mass erase.
Invoking BSL.
BSL version 1.61, MCU device id f16c.
Changing to 38400 baud.
Program image /tmp/_dev_ttyUSB0, 1774 bytes.
Invoking BSL.
BSL version 1.61, MCU device id f16c.
Changing to 38400 baud.
Program.
Programmed 1774 bytes.
Reset
    installing tmote binary using netbsl (without mass erase)
/opt/tinyos-1.x/tools/make/msp/netbsl 192.168.1.4:10001 build/tmote/main.ihex.ou
t-1 --telosb -r -I -p
Using mote  on port /dev/ttyUSB0.
Error, bad file format
rm -f build/tmote/main.exe.out-1 build/tmote/main.ihex.out-1

$which nc
 /usr/bin/nc

I have also tried copying these files as suggested by
netbsl,netbsl.extra to opt/moteiv/tools/make/msp_moteiv suggested by
Joe Polastre.

could anyone tel me whats wrong?
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



------------------------------

Message: 6
Date: Wed, 30 May 2007 10:26:37 +0200
From: Urs Hunkeler <[EMAIL PROTECTED]>
Subject: Re: [Tinyos-help] using MoteIV Sky from Linux - how to?
To: ?kos Mar?y <[EMAIL PROTECTED]>,
        [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=UTF-8

Hi �kos,

I'm using tmotes on gentoo, but with tinyos-2.x, so there are some
things that I can't help you with. It seems that moteiv has some
extensions to tinyos-1.x (boomerang, http://www.moteiv.com/software/ ).
For some reason they did not explain how to install these extensions on
the page you mentioned. With this pure tinyos-1.x installation some
things might not work. In my experience tinyos-2.x works well with tmotes.

To compile a sample program, go to the directory with the sample program
and run "make tmote". To compile and install it (on the first mote the
program finds), type "make tmote install". To just install it (once you
have already compiled it), type "make tmote reinstall". The "install"
and "reinstall" parameters take an optional argument to set the mote id.
So you could compile a program once with "make tmote" and then install
it on several motes with plugging in one mote at a time and each time
call "make tmote reinstall,x" where x is the mote id.

To test the Blink application, go to wherever you installed tinyos (for
instance "cd ~/tinyos-1.x") and then change to the "apps/Blink"
subdirectory. Plug one mote into a USB port and type "make tmote
install". This should compile the Blink application and install it onto
the mote.

Cheers,
Urs


�kos Maróy schrieb:
Hi,

I'm very new to TinyOS in general, I just got two MoteIV Sky motes
(http://www.moteiv.com/products/tmotesky.php), and I'm trying to get
them work from under Linux (Gentoo to be specific).

I've followed instructions on how to install the TinyOS environment from
here: http://www.moteiv.com/community/Tmote_Linux_install . I can list
the mote I plug in to my laptop via the motelist utility.

But, frankly, I don't know where to go next. I was looking at the
tutorials & other information on the tinyos.net site, but it speaks of
the mica mote platform, whereas the MoteIV mote is msp430. So I don't
even know how to compile & download the blink application to the mote.

Moreover, there's a piece of software refered to as Delta in the MoteIV
Sky quickstart guide - and I don't know where to get that either.

Anyway, my main goal is just to set up the motes, so that they 'see'
each other, and that I can read their sensors. I understand this is what
motes are for :)

Can someone give me some pointers on where to look for information?

Thanks,


Akos


------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

End of Tinyos-help Digest, Vol 49, Issue 138
********************************************

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to