Angelina,
You are correct that the port cannot be opened because some program has claimed access to it. A quick and easy way to regain access for programming would be to restart your computer. Otherwise, you must find out what is using the COM port and cause that program to release it. Out of curiousity, are you using LabVIEW to communicate with your motes??? If so, make sure that you include the subvi that closes the COM port in your application. I suppose that goes for any software you are using to communicate with the motes though.
Regards,
Matt
[EMAIL PROTECTED] wrote: -----To: [email protected]
From: abensong <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
Date: 06/15/2006 09:41AM
Subject: [Tinyos-help] could not open port: (5, 'CreateFile', 'Access is denied.')
When trying to install a program on my TelosB mote, I get the following error:
could not open port: (5, 'CreateFile', 'Access is denied.') I know that this
means the com port is busy, but how do I free it up. The mote currently has a
program on it that I think is using the port, but I am unable to erase that
program. Any help would be greatly appreciated.
Thanks,
Angelina
The entire error message:
$ make telosb install
mkdir -p build/telosb
compiling TelosADC2C to a telosb binary
ncc -o build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d
-Wnesc-al
l -target=telosb -fnesc-cfile=build/telosb/app.c -board= -I%T/lib/Deluge
-Wl,--s
ection-start=.text=0x4800,--defsym=_reset_vector__=0x4000
-DIDENT_PROGRAM_NAME=\
"TelosADC2C\" -DIDENT_USER_ID=\"SERF501\" -DIDENT_HOSTNAME=\"DATAPACK\"
-DIDENT_
USER_HASH=0x7e5bf602L -DIDENT_UNIX_TIME=0x44908becL
-DIDENT_UID_HASH=0xed0b3b54L
-mdisable-hwmul -I/opt/tinyos-1.x/tos/lib/CC2420Radio TelosADC2C.nc -lm
compiled TelosADC2C to build/telosb/main.exe
8684 bytes in ROM
285 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
found mote on COM6 (using bsl,auto)
installing telosb bootloader using bsl
msp430-bsl --telosb -c 5 -r -e -I -p
C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/l
ib/Deluge/TOSBoot/build/telosb/main.ihex
MSP430 Bootstrap Loader Version: 1.39-telos-7
An error occoured:
could not open port: (5, 'CreateFile', 'Access is denied.')
make: *** [program_bl] Error 1
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
