[Tinyos-help] could not open port: (5, 'CreateFile',
'Access is denied.')
abensong
abensong at utk.edu
Thu Jun 15 07:49:40 PDT 2006
I'm using cygwin to communicate with my motes. How do I find out what is
using my COM port? I tried restarting my computer several times and that did
not work.
>===== Original Message From Matthew J Whelan <whelanmj at clarkson.edu> =====
><FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"
size=2><DIV>Angelina,</DIV><DIV> </DIV><DIV>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.</DIV><DIV> </DIV><DIV>Regards,</DIV><DIV>Matt<BR></DIV><FONT
color=#990099>-----tinyos-help-bounces at Millennium.Berkeley.EDU wrote:
-----<BR><BR></FONT><blockquote style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px;
MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">To:
tinyos-help at Millennium.Berkeley.EDU<BR>From: abensong
<abensong at utk.edu><BR>Sent by:
tinyos-help-bounces at Millennium.Berkeley.EDU<BR>Date: 06/15/2006
09:41AM<BR>Subject: [Tinyos-help] could not open port: (5,
'CreateFile', 'Access is denied.')<BR><BR><FONT face="Default
Monospace,Courier New,Courier,monospace" size=2 >When trying to install a
program on my TelosB mote, I get the following error: <BR>could not open port:
(5, 'CreateFile', 'Access is denied.') I know that this <BR>means the com port
is busy, but how do I free it up. The mote currently has a <BR>program on it
that I think is using the port, but I am unable to erase that <BR>program. Any
help would be greatly appreciated.<BR><BR>Thanks,<BR>Angelina<BR><BR>The
entire error message:<BR><BR>$ make telosb install<BR>mkdir -p
build/telosb<BR> compiling TelosADC2C to a telosb binary<BR>ncc -o
build/telosb/main.exe -O -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d
<BR>-Wnesc-al<BR>l -target=telosb -fnesc-cfile=build/telosb/app.c -board=
-I%T/lib/Deluge
<BR>-Wl,--s<BR>ection-start=.text=0x4800,--defsym=_reset_vector__=0x4000
<BR>-DIDENT_PROGRAM_NAME=\<BR>"TelosADC2C\" -DIDENT_USER_ID=\"SERF501\"
-DIDENT_HOSTNAME=\"DATAPACK\" <BR>-DIDENT_<BR>USER_HASH=0x7e5bf602L
-DIDENT_UNIX_TIME=0x44908becL
<BR>-DIDENT_UID_HASH=0xed0b3b54L<BR>-mdisable-hwmul
-I/opt/tinyos-1.x/tos/lib/CC2420Radio TelosADC2C.nc -lm<BR> compiled
TelosADC2C to build/telosb/main.exe<BR> 8684 bytes in ROM<BR>
285 bytes in RAM<BR>msp430-objcopy --output-target=ihex
build/telosb/main.exe <BR>build/telosb/main.ihex<BR><BR> writing TOS
image<BR>cp build/telosb/main.ihex build/telosb/main.ihex.out<BR> found mote
on COM6 (using bsl,auto)<BR> installing telosb bootloader using
bsl<BR>msp430-bsl --telosb -c 5 -r -e -I -p
<BR>C:/PROGRA~1/UCB/cygwin/opt/tinyos-1.x/tos/l<BR>ib/Deluge/TOSBoot/build/tel
osb/main.ihex<BR>MSP430 Bootstrap Loader Version: 1.39-telos-7<BR><BR>An error
occoured:<BR>could not open port: (5, 'CreateFile', 'Access is
denied.')<BR>make: *** [program_bl] Error
1<BR><BR>_______________________________________________<BR>Tinyos-help
mailing list<BR>Tinyos-help at Millennium.Berkeley.EDU<BR><A
href="https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-hel
p" target=blank
>https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help</A>
<BR></FONT></blockquote><br></FONT>
More information about the Tinyos-help
mailing list