Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Serial Communication - TCL -

Status
Not open for further replies.

zmanultra

Member level 2
Joined
Mar 20, 2004
Messages
48
Helped
4
Reputation
8
Reaction score
2
Trophy points
1,288
Location
Australia
Activity points
524
serial communication in tcl

Hi all

this is my serial communication routine for reading or writing HOWEVER i get the following error..please help me i need to get over this stage...i dont know wot to do.

---------CODE---------
set serial [open com1: r+]
fconfigure $serial -mode "9600,n,8,1"
fconfigure $serial -blocking 0 -buffering none

while {1} {
set data [read $serial] ;# read ALL incoming bytes
set size [string length $data] ;# number of received byte, may be 0
if { $size } {
puts "received $size bytes: $data"
} else {
puts ""<no data>"
update ;# Display output, allow to close wish-window
}
error ------> "could not open "com1" " permission denied" :cry: :cry: :cry: :cry:
 

serial comm port permission

You attempted to open com2 and received an error message for com1? That's weird.

Are you sure that port exists, and no other software is using it?
 

tcl serial communication

So Sorry

the error message is from com 2 sorry. misssed typed it

error ------> "could not open "com2" " permission denied"
:oops:
the comm port exists
and i have no software intefering with it, expect porbaly zone alarm ?? u think...i disabled it but...please help me.
 

tcl close serial port permission denied

try removing the ':' like this

set serial [open com2 r+]
 

serial tcl

:( dosn't work bro :( :?

still with same error ----> could not open com1 permission denied
 

YES I FIXED IT :D :D :D :D :D :D :D :D :D

u guys intrested in knowing wot it was, i garentee that uz will come across the same problem when it come to serail commmunication in tcl.

im online for the whole day so ill answer u guys striaght away. :D :D :D :D
 

can you please tell me how u did it casue im having this problom as well, please answer me asap, casue i need to this project about reading data from a serial port connected to a smartcard reader/prgrammer.

sonny
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top