I have been able to do serial I/O on Windows, but not Linux. Running in a terminal to capture output yields "Error while saving old state" while trying to open just about any number or name I can think of (including 0 and /dev/ttyS0), but the open method gives no indication that there is a problem; it returns a perfectly valid looking serial port with the #port set to whatever it was given.
Subsequent reads fail, and are probably a bit more honest about what is happening: "Error while reading: serial port is not open." I am not sure whether that is always the case, but it certainly is on this machine when I try /dev/ttyUSB0, which does not exist here.
Any ideas?
Bill
Hi Bill,
haven't used the serial interface with the new VMs (yet), but previously under Linux I had to use the vm option '-notimer'. I did not find any negative side effects with that option.
Hope this helps, Markus
----- Original Message ----
From: "Schwab,Wilhelm K" bschwab@anest.ufl.edu To: "Pharo-project@lists.gforge.inria.fr" Pharo-project@lists.gforge.inria.fr; "squeak-dev@lists.squeakfoundation.org" squeak-dev@lists.squeakfoundation.org; "vm-dev@lists.squeakfoundation.org" vm-dev@lists.squeakfoundation.org Sent: Wed, September 1, 2010 9:27:39 AM Subject: [Vm-dev] Serial ports on Linux
I have been able to do serial I/O on Windows, but not Linux. Running in a terminal to capture output yields "Error while saving old state" while trying to open just about any number or name I can think of (including 0 and /dev/ttyS0), but the open method gives no indication that there is a problem; it returns a perfectly valid looking serial port with the #port set to whatever it was given.
Subsequent reads fail, and are probably a bit more honest about what is happening: "Error while reading: serial port is not open." I am not sure whether that is always the case, but it certainly is on this machine when I try /dev/ttyUSB0, which does not exist here.
Any ideas?
Bill
vm-dev@lists.squeakfoundation.org