You are most likey getting the result in binary - the python interpreter is just being nice and showing you the results so you can read them.
try these lines: >>>s = ser.read(4) >>>print len(s) >>>print [ord(b) for b in s] mike -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Srividya Visweswarababu Sent: Monday, April 15, 2002 8:01 PM To: [EMAIL PROTECTED] Subject: Serial Port Communication Hi, I am using the pySerial module to talk to one of the devices connected to my RS232 port. When i issue some command through that module: >>> ser.write("#50 MDMODE") >>> ser.inWaiting() 4L >>> ser.read(4) '\x12\xb4\xfc\t' ->It seems like I am getting the output in hex format. Is there a way to read them? Or get the output in normal wordS? Thanks in advance, --V. __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs