Hi!

On Mon, 29 Sep 2008, BAI LI wrote:

> After ./Bootstrap and ./configure. I followed the instructions to do the
> rest. From the motelist, I can see I have set the correct com port. But what
> is the problems? Unable to initialize the serial port connection COM3. very
> confused.
>
> ----------------------------------------------------------------------------
>
> [EMAIL PROTECTED] /opt/tinyos-2.x/tools/tinyos/misc
> $ make ; make install
> gcc -DPACKAGE_NAME=\"tinyos-tools\" -DPACKAGE_TARNAME=\"tinyos-tools\"
> -DPACKAGE
> _VERSION=\"1.2.4\" -DPACKAGE_STRING=\"tinyos-tools\ 1.2.4\"
> -DPACKAGE_BUGREPORT=
> \"\" -DPACKAGE=\"tinyos-tools\" -DVERSION=\"1.2.4\" -I.     -g -O2 -MT
> tos-seria
> l-debug.o -MD -MP -MF .deps/tos-serial-debug.Tpo -c -o tos-serial-debug.o
> tos-se
> rial-debug.c
> mv -f .deps/tos-serial-debug.Tpo .deps/tos-serial-debug.Po
> gcc  -g -O2   -o tos-serial-debug.exe tos-serial-debug.o
> make: Warning: File `tos-serial-debug.exe' has modification time 1.3 s in
> the fu
> ture
> make[1]: Entering directory `/opt/tinyos-2.x/tools/tinyos/misc'
> make[1]: Warning: File `tos-serial-debug.exe' has modification time 0.47 s
> in th
> e future
> test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"
>  /usr/bin/install -c 'tos-serial-debug.exe'
> '/usr/local/bin/tos-serial-debug.ex
> e'
> test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"
> /usr/bin/install -c 'tos-ident-flags' '/usr/local/bin/tos-ident-flags'
> /usr/bin/install -c 'tos-install-jni' '/usr/local/bin/tos-install-jni'
> /usr/bin/install -c 'tos-locate-jre' '/usr/local/bin/tos-locate-jre'
> /usr/bin/install -c 'tos-mote-key' '/usr/local/bin/tos-mote-key'
> /usr/bin/install -c 'tos-mviz' '/usr/local/bin/tos-mviz'
> /usr/bin/install -c 'tos-serial-configure'
> '/usr/local/bin/tos-serial-configure
> '
> /usr/bin/install -c 'tos-set-symbols' '/usr/local/bin/tos-set-symbols'
> /usr/bin/install -c 'tos-write-buildinfo'
> '/usr/local/bin/tos-write-buildinfo'
> /usr/bin/install -c 'tos-write-image' '/usr/local/bin/tos-write-image'
> /usr/bin/install -c 'tos-check-env' '/usr/local/bin/tos-check-env'
> /usr/bin/install -c 'tos-storage-stm25p'
> '/usr/local/bin/tos-storage-stm25p'
> /usr/bin/install -c 'tos-storage-at45db'
> '/usr/local/bin/tos-storage-at45db'
> /usr/bin/install -c 'tos-storage-pxa27xp30'
> '/usr/local/bin/tos-storage-pxa27xp
> 30'
> /usr/bin/install -c 'tos-build-deluge-image'
> '/usr/local/bin/tos-build-deluge-i
> mage'
> /usr/bin/install -c 'tos-deluge' '/usr/local/bin/tos-deluge'
> test -z "/usr/local/share/man/man1" || /usr/bin/mkdir -p
> "/usr/local/share/man/m
> an1"
> /usr/bin/install -c -m 644 './tos-check-env.1'
> '/usr/local/share/man/man1/tos-c
> heck-env.1'
> /usr/bin/install -c -m 644 './tos-ident-flags.1'
> '/usr/local/share/man/man1/tos
> -ident-flags.1'
> /usr/bin/install -c -m 644 './tos-install-jni.1'
> '/usr/local/share/man/man1/tos
> -install-jni.1'
> /usr/bin/install -c -m 644 './tos-locate-jre.1'
> '/usr/local/share/man/man1/tos-
> locate-jre.1'
> /usr/bin/install -c -m 644 './tos-mote-key.1'
> '/usr/local/share/man/man1/tos-mo
> te-key.1'
> /usr/bin/install -c -m 644 './tos-mviz.1'
> '/usr/local/share/man/man1/tos-mviz.1
> '
> /usr/bin/install -c -m 644 './tos-serial-configure.1'
> '/usr/local/share/man/man
> 1/tos-serial-configure.1'
> /usr/bin/install -c -m 644 './tos-serial-debug.1'
> '/usr/local/share/man/man1/to
> s-serial-debug.1'
> /usr/bin/install -c -m 644 './tos-set-symbols.1'
> '/usr/local/share/man/man1/tos
> -set-symbols.1'
> /usr/bin/install -c -m 644 './tos-storage-at45db.1'
> '/usr/local/share/man/man1/
> tos-storage-at45db.1'
> /usr/bin/install -c -m 644 './tos-storage-stm25p.1'
> '/usr/local/share/man/man1/
> tos-storage-stm25p.1'
> /usr/bin/install -c -m 644 './tos-storage-pxa27xp30.1'
> '/usr/local/share/man/ma
> n1/tos-storage-pxa27xp30.1'
> /usr/bin/install -c -m 644 './tos-write-image.1'
> '/usr/local/share/man/man1/tos
> -write-image.1'
> /usr/bin/install -c -m 644 './tos-build-deluge-image.1'
> '/usr/local/share/man/m
> an1/tos-build-deluge-image.1'
> /usr/bin/install -c -m 644 './tos-deluge.1'
> '/usr/local/share/man/man1/tos-delu
> ge.1'
> make[1]: warning:  Clock skew detected.  Your build may be incomplete.
> make[1]: Leaving directory `/opt/tinyos-2.x/tools/tinyos/misc'
> make: warning:  Clock skew detected.  Your build may be incomplete.
>
> ---------------------------------------
> But when i type make ; make install again under this screen, I got different
> message.
>
> $ make ; make install
> make: Nothing to be done for `all'.
> make[1]: Entering directory `/opt/tinyos-2.x/tools/tinyos/misc'
> test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"
>  /usr/bin/install -c 'tos-serial-debug.exe'
> '/usr/local/bin/tos-serial-debug.ex
> e'
> test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"
> /usr/bin/install -c 'tos-ident-flags' '/usr/local/bin/tos-ident-flags'
> /usr/bin/install -c 'tos-install-jni' '/usr/local/bin/tos-install-jni'
> /usr/bin/install -c 'tos-locate-jre' '/usr/local/bin/tos-locate-jre'
> /usr/bin/install -c 'tos-mote-key' '/usr/local/bin/tos-mote-key'
> /usr/bin/install -c 'tos-mviz' '/usr/local/bin/tos-mviz'
> /usr/bin/install -c 'tos-serial-configure'
> '/usr/local/bin/tos-serial-configure
> '
> /usr/bin/install -c 'tos-set-symbols' '/usr/local/bin/tos-set-symbols'
> /usr/bin/install -c 'tos-write-buildinfo'
> '/usr/local/bin/tos-write-buildinfo'
> /usr/bin/install -c 'tos-write-image' '/usr/local/bin/tos-write-image'
> /usr/bin/install -c 'tos-check-env' '/usr/local/bin/tos-check-env'
> /usr/bin/install -c 'tos-storage-stm25p'
> '/usr/local/bin/tos-storage-stm25p'
> /usr/bin/install -c 'tos-storage-at45db'
> '/usr/local/bin/tos-storage-at45db'
> /usr/bin/install -c 'tos-storage-pxa27xp30'
> '/usr/local/bin/tos-storage-pxa27xp
> 30'
> /usr/bin/install -c 'tos-build-deluge-image'
> '/usr/local/bin/tos-build-deluge-i
> mage'
> /usr/bin/install -c 'tos-deluge' '/usr/local/bin/tos-deluge'
> test -z "/usr/local/share/man/man1" || /usr/bin/mkdir -p
> "/usr/local/share/man/m
> an1"
> /usr/bin/install -c -m 644 './tos-check-env.1'
> '/usr/local/share/man/man1/tos-c
> heck-env.1'
> /usr/bin/install -c -m 644 './tos-ident-flags.1'
> '/usr/local/share/man/man1/tos
> -ident-flags.1'
> /usr/bin/install -c -m 644 './tos-install-jni.1'
> '/usr/local/share/man/man1/tos
> -install-jni.1'
> /usr/bin/install -c -m 644 './tos-locate-jre.1'
> '/usr/local/share/man/man1/tos-
> locate-jre.1'
> /usr/bin/install -c -m 644 './tos-mote-key.1'
> '/usr/local/share/man/man1/tos-mo
> te-key.1'
> /usr/bin/install -c -m 644 './tos-mviz.1'
> '/usr/local/share/man/man1/tos-mviz.1
> '
> /usr/bin/install -c -m 644 './tos-serial-configure.1'
> '/usr/local/share/man/man
> 1/tos-serial-configure.1'
> /usr/bin/install -c -m 644 './tos-serial-debug.1'
> '/usr/local/share/man/man1/to
> s-serial-debug.1'
> /usr/bin/install -c -m 644 './tos-set-symbols.1'
> '/usr/local/share/man/man1/tos
> -set-symbols.1'
> /usr/bin/install -c -m 644 './tos-storage-at45db.1'
> '/usr/local/share/man/man1/
> tos-storage-at45db.1'
> /usr/bin/install -c -m 644 './tos-storage-stm25p.1'
> '/usr/local/share/man/man1/
> tos-storage-stm25p.1'
> /usr/bin/install -c -m 644 './tos-storage-pxa27xp30.1'
> '/usr/local/share/man/ma
> n1/tos-storage-pxa27xp30.1'
> /usr/bin/install -c -m 644 './tos-write-image.1'
> '/usr/local/share/man/man1/tos
> -write-image.1'
> /usr/bin/install -c -m 644 './tos-build-deluge-image.1'
> '/usr/local/share/man/m
> an1/tos-build-deluge-image.1'
> /usr/bin/install -c -m 644 './tos-deluge.1'
> '/usr/local/share/man/man1/tos-delu
> ge.1'
> make[1]: Leaving directory `/opt/tinyos-2.x/tools/tinyos/misc'
>
> -------------------------------
> After that, when i try to complie tosboot folder
> [EMAIL PROTECTED] /opt/tinyos-2.x/tos/lib/TOSBoot
> $ make telosb
> mkdir -p build/telosb
>    compiling TOSBoot to a telosb binary
> ncc -o build/telosb/main.exe  -Os -O -DNESC_BUILD_BINARY -mdisable-hwmul
> -Wall -
> Wshadow -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board=
> -DDEFI
> NED_TOS_AM_GROUP=0x22 -DTOSBOOT_START=0x4000 -DTOSBOOT_END=0x4a00 -Imsp430
> -Istm
> 25p -Itelosb -Ilib -I../net/Deluge -DIDENT_APPNAME=\"TOSBoot\"
> -DIDENT_USERNAME=
> \"EIT\" -DIDENT_HOSTNAME=\"wsn\" -DIDENT_USERHASH=0xa200ffadL
> -DIDENT_TIMESTAMP=
> 0x48df0c18L -DIDENT_UIDHASH=0xe33ce8eeL  TOSBoot.nc -lm
> lib/ExecC.nc:41: warning: call via function pointer
>    compiled TOSBoot to build/telosb/main.exe
>            2112 bytes in ROM
>               0 bytes in RAM
> msp430-objcopy --output-target=ihex build/telosb/main.exe
> build/telosb/main.ihex
>    writing TOS image
>    removing interrupt vector from binary
> msp430-objcopy -j .text -j .data -O ihex build/telosb/main.exe
> build/telosb/main
> .ihex
> ------------------------------------------------------
> Then I run that Blink application I get the error "unable to initializae
> serial port connection"
> [EMAIL PROTECTED] /opt/tinyos-2.x/tools/tinyos/misc
> $ cd /opt/tinyos-2.x/apps/tests/deluge/Blink/
> [EMAIL PROTECTED] /opt/tinyos-2.x/apps/tests/deluge/Blink
> $ ./burn COM3 telosb

In windows you need to run the command like this:
        ./burn COM3 /dev/ttyS2 telosb
It should run without any error but very-very slow. I'm 
investigating this problem.

--
Razvan ME

> rm -rf build  pp
> rm -rf _TOSSIMmodule.so TOSSIM.pyc TOSSIM.py app.xml simbuild
> rm -rf VolumeMapC.nc
> ============================ Compile and load Blink
> ============================
> mkdir -p build/telosb
> tos-storage-stm25p  /opt/tinyos-2.x/tos/platforms/telosb <volumes-stm25p.xml
>> bu
> ild/telosb/StorageVolumes.h || rm -f build/telosb/StorageVolumes.h
>    compiling BlinkAppC to a telosb binary
> ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul -Wall -Wshadow
> -Wnesc-all -
> target=telosb -fnesc-cfile=build/telosb/app.c -board=
> -DDEFINED_TOS_AM_GROUP=0x2
> 2 -Ibuild/telosb -DDELUGE_BASESTATION -DIDENT_APPNAME=\"BlinkAppC\"
> -DIDENT_USER
> NAME=\"EIT\" -DIDENT_HOSTNAME=\"wsn\" -DIDENT_USERHASH=0xa200ffadL
> -DIDENT_TIMES
> TAMP=0x48df0af1L -DIDENT_UIDHASH=0x4dd26f03L -DDELUGE
> -I/opt/tinyos-2.x/tos/lib/
> net -I/opt/tinyos-2.x/tos/lib/net/drip -I/opt/tinyos-2.x/tos/lib/net/Deluge
> -I/o
> pt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager
> -I/opt/tinyos-2.x/tos/lib/ne
> t/Deluge/BlockStorageManager -I/opt/tinyos-2.x/tos/lib/net/Deluge/extra
> -I/opt/t
> inyos-2.x/tos/lib/net/Deluge/extra/msp430
> -I/opt/tinyos-2.x/tos/lib/net/Deluge/e
> xtra/telos -I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/telosb
> -Wl,--section-start
> =.text=0x4a00,--defsym=_reset_vector__=0x4000  BlinkAppC.nc -lm
> /opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
> "*** L
> OW POWER COMMUNICATIONS DISABLED ***"
> /opt/tinyos-2.x/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:66:2: warning:
> #warni
> ng Accessing TimerA for ADC12
>    compiled BlinkAppC to build/telosb/main.exe
>           38382 bytes in ROM
>            1398 bytes in RAM
> msp430-objcopy --output-target=ihex build/telosb/main.exe
> build/telosb/main.ihex
>    writing TOS image
> cp build/telosb/main.ihex build/telosb/main.ihex.out
>    installing telosb bootloader using bsl
> tos-bsl --telosb -c COM3 -r -e -I -p
> C:/cygwin/opt/tinyos-2.x/tos/lib/tosboot/bu
> ild/telosb/main.ihex
> MSP430 Bootstrap Loader Version: 1.39-telos-8
> Mass Erase...
> Transmit default password ...
> Invoking BSL...
> Transmit default password ...
> Current bootstrap loader version: 1.61 (Device ID: f16c)
> Changing baudrate to 38400 ...
> Program ...
> 2112 bytes programmed.
> Reset device ...
>    installing telosb binary using bsl (without mass erase)
> tos-bsl --telosb -c COM3 -r -I -p build/telosb/main.ihex.out
> MSP430 Bootstrap Loader Version: 1.39-telos-8
> Invoking BSL...
> Transmit default password ...
> Current bootstrap loader version: 1.61 (Device ID: f16c)
> Changing baudrate to 38400 ...
> Program ...
> 38414 bytes programmed.
> Reset device ...
> rm -f build/telosb/main.exe.out build/telosb/main.ihex.out
>           +-------------------------------------------------------+
>           |                                                       |
>           | At this point the first led (red) should be blinking. |
>           |                                                       |
>           |               Press ENTER to continue...              |
>           |                                                       |
>           +-------------------------------------------------------+
> ============================= Compile a new Blink
> ==============================
> mkdir -p build/telosb
>    compiling BlinkAppC to a telosb binary
> ncc -o build/telosb/main.exe  -Os -O -mdisable-hwmul -Wall -Wshadow
> -Wnesc-all -
> target=telosb -fnesc-cfile=build/telosb/app.c -board=
> -DDEFINED_TOS_AM_GROUP=0x2
> 2 -Ibuild/telosb -DBLINK_REVERSE -DDELUGE_BASESTATION
> -DIDENT_APPNAME=\"BlinkApp
> C\" -DIDENT_USERNAME=\"EIT\" -DIDENT_HOSTNAME=\"wsn\"
> -DIDENT_USERHASH=0xa200ffa
> dL -DIDENT_TIMESTAMP=0x48df0b31L -DIDENT_UIDHASH=0xbe4e5e47L -DDELUGE
> -I/opt/tin
> yos-2.x/tos/lib/net -I/opt/tinyos-2.x/tos/lib/net/drip
> -I/opt/tinyos-2.x/tos/lib
> /net/Deluge -I/opt/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager
> -I/opt/tinyo
> s-2.x/tos/lib/net/Deluge/BlockStorageManager
> -I/opt/tinyos-2.x/tos/lib/net/Delug
> e/extra -I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/msp430
> -I/opt/tinyos-2.x/tos/
> lib/net/Deluge/extra/telos -I/opt/tinyos-2.x/tos/lib/net/Deluge/extra/telosb
> -Wl
> ,--section-start=.text=0x4a00,--defsym=_reset_vector__=0x4000  BlinkAppC.nc
> -lm
> /opt/tinyos-2.x/tos/chips/cc2420/lpl/DummyLplC.nc:39:2: warning: #warning
> "*** L
> OW POWER COMMUNICATIONS DISABLED ***"
> /opt/tinyos-2.x/tos/chips/msp430/adc12/Msp430Adc12ImplP.nc:66:2: warning:
> #warni
> ng Accessing TimerA for ADC12
>    compiled BlinkAppC to build/telosb/main.exe
>           38382 bytes in ROM
>            1398 bytes in RAM
> msp430-objcopy --output-target=ihex build/telosb/main.exe
> build/telosb/main.ihex
>    writing TOS image
> =============================== Upload the image
> ===============================
> ERROR: Unable to initialize serial port connection to COM3
>       +----------------------------------------------------------------+
>       |                                                                |
>       | In the next step the following things will take place:         |
>       | - the mote will be rebooted                                    |
>       | - all the leds will blink for some time as the                 |
>       |   reprogramming by tosboot takes place.                        |
>       | - a fading of the leds will indicate the exiting from tosboot. |
>       | - the mote should start blinking the 3rd led (blue/yellow).    |
>       |                                                                |
>       |                   Press ENTER to continue...                   |
>       |                                                                |
>       +----------------------------------------------------------------+
> =========================== Reboot the base station
> ============================
> ERROR: Unable to initialize serial port connection to COM3
> [EMAIL PROTECTED] /opt/tinyos-2.x/apps/tests/deluge/Blink
> $ motelist
> Reference  CommPort   Description
> ---------- ---------- ----------------------------------------
> XBR0LLL9   COM3       Crossbow Telos Rev.B
>
> On Sun, Sep 28, 2008 at 7:24 AM, Razvan Musaloiu-E. <[EMAIL PROTECTED]>wrote:
>
>> Hi!
>>
>>
>> On Sat, 27 Sep 2008, BAI LI wrote:
>>
>> Hi All,
>>>
>>> I have encountered a problem. When I use tos-deluge commande it always
>>> pops
>>> up these error message. I am not able to understand it. Please someone can
>>> help me? I have install the latest tinyOS files. Many thanks.
>>>
>>> error shown:
>>>
>>> Pinging node ...
>>> Traceback (most recent call last):
>>>  File "/usr/bin/tos-deluge", line 473, in <module>
>>>   op_ping(s, sys.argv[4])
>>>  File "/usr/bin/tos-deluge", line 218, in op_ping
>>>   metadata = getMetaData(s, img_num)
>>>  File "/usr/bin/tos-deluge", line 204, in getMetaData
>>>   r = op_read(s, img_num, DELUGE_METADATA_OFFSET, DELUGE_METADATA_SIZE)
>>>  File "/usr/bin/tos-deluge", line 171, in op_read
>>>   if s.write_packet(SERIAL_AMGROUP, SERIAL_AMID, sreqpkt.payload()):
>>>  File "/usr/bin/tinyos.py", line 190, in write_packet
>>>   self.__put_bytes(packet)
>>>  File "/usr/bin/tinyos.py", line 105, in __put_bytes
>>>   self.__s.write(struct.pack('B', b))
>>>  File "/usr/lib/python2.5/site-packages/serial/serialposix.py", line 361,
>>> in write
>>>   if self.fd is None: raise portNotOpenError
>>> serial.serialutil.SerialException: Port not open
>>>
>>
>> How do you run the tos-deluge command and on which system? I don't remember
>> encountering this error before.
>>
>> --
>> Razvan ME
>>
>
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to