Hi, I'm trying to use the Serial port to interface with an Arduino board. So far, I managed to make it work on Windows but I understand that Serial port on linux is a bit more complicated. I've read this old discussion http://www.nabble.com/communication-with-serial-port-t2549116.html and I am a little confused.
It says that John McIntosh made an EnhancedSerialPort plugin. Is it installed on the latest unix VMs? It also says that Benjamin Schroeder wrote a SimpleSerialPort library. Which one should I use? |
I've used the plugin which comes with vm and then just use SerialPort. There are 2 things to look out for, you should start squeak with the '-notimer' option, otherwise most of the system calls will fail. With the standard plugin you can only access /dev/ttyS[0-9], so if you want to use /dev/rfcomm0 for instance you can create a symlink to one of the unused /dev/ttyS[5-9]. If you follow those two it works pretty reliable. Have fun, Markus From: Ricardo Moran <[hidden email]> To: The general-purpose Squeak developers list <[hidden email]> Sent: Wednesday, August 19, 2009 1:52:29 PM Subject: [squeak-dev] Serial port in linux Hi, I'm trying to use the Serial port to interface with an Arduino board. So far, I managed to make it work on Windows but I understand that Serial port on linux is a bit more complicated. I've read this old discussion http://www.nabble.com/communication-with-serial-port-t2549116.html and I am a little confused. It says that John McIntosh made an EnhancedSerialPort plugin. Is it installed on the latest unix VMs? It also says that Benjamin Schroeder wrote a SimpleSerialPort library. Which one should I use? |
It works!!!! Thank you very much! We were having this problem for a long time. Now we will be able to use Arduino on Linux (and also other projects that uses the SerialPort such as SqueakNxt). I am so happy! :D
On Wed, Aug 19, 2009 at 6:32 PM, Markus Lampert <[hidden email]> wrote:
|
Btw the very latest VM in svn has support for naming serial ports:
http://squeakvm.org/svn/squeak/trunk/platforms/unix/ChangeLog - Bert - On 21.08.2009, at 21:49, Ricardo Moran wrote: > It works!!!! Thank you very much! We were having this problem for a > long time. Now we will be able to use Arduino on Linux (and also > other projects that uses the SerialPort such as SqueakNxt). I am so > happy! :D > > > > On Wed, Aug 19, 2009 at 6:32 PM, Markus Lampert <[hidden email] > > wrote: > I've used the plugin which comes with vm and then just use SerialPort. > There are 2 things to look out for, you should start squeak with the > '-notimer' option, otherwise most of the system calls will fail. > With the standard plugin you can only access /dev/ttyS[0-9], so if > you want to use /dev/rfcomm0 for instance you can create a symlink > to one of the unused /dev/ttyS[5-9]. > If you follow those two it works pretty reliable. > > Have fun, > Markus > > From: Ricardo Moran <[hidden email]> > To: The general-purpose Squeak developers list <[hidden email] > > > Sent: Wednesday, August 19, 2009 1:52:29 PM > Subject: [squeak-dev] Serial port in linux > > Hi, I'm trying to use the Serial port to interface with an Arduino > board. So far, I managed to make it work on Windows but I understand > that Serial port on linux is a bit more complicated. I've read this > old discussion http://www.nabble.com/communication-with-serial-port-t2549116.html > and I am a little confused. > It says that John McIntosh made an EnhancedSerialPort plugin. Is it > installed on the latest unix VMs? > It also says that Benjamin Schroeder wrote a SimpleSerialPort > library. Which one should I use? > > > > > > > |
That's great news, thank you guys! On Fri, Aug 21, 2009 at 5:14 PM, Bert Freudenberg <[hidden email]> wrote: Btw the very latest VM in svn has support for naming serial ports: |
In reply to this post by Bert Freudenberg
But there are some missing bits still needing to be integrated, details
on Mantis http://bugs.squeak.org/view.php?id=7266. The delay is entirely my fault, I'm busy for a couple of days but should have provided some [VM-team] guidance. RSN, Dave On Fri, Aug 21, 2009 at 10:14:13PM +0200, Bert Freudenberg wrote: > Btw the very latest VM in svn has support for naming serial ports: > > http://squeakvm.org/svn/squeak/trunk/platforms/unix/ChangeLog > > - Bert - > > On 21.08.2009, at 21:49, Ricardo Moran wrote: > > >It works!!!! Thank you very much! We were having this problem for a > >long time. Now we will be able to use Arduino on Linux (and also > >other projects that uses the SerialPort such as SqueakNxt). I am so > >happy! :D > > > > > > > >On Wed, Aug 19, 2009 at 6:32 PM, Markus Lampert <[hidden email] > >> wrote: > >I've used the plugin which comes with vm and then just use SerialPort. > >There are 2 things to look out for, you should start squeak with the > >'-notimer' option, otherwise most of the system calls will fail. > >With the standard plugin you can only access /dev/ttyS[0-9], so if > >you want to use /dev/rfcomm0 for instance you can create a symlink > >to one of the unused /dev/ttyS[5-9]. > >If you follow those two it works pretty reliable. > > > >Have fun, > >Markus > > > >From: Ricardo Moran <[hidden email]> > >To: The general-purpose Squeak developers list > ><[hidden email] > > >Sent: Wednesday, August 19, 2009 1:52:29 PM > >Subject: [squeak-dev] Serial port in linux > > > >Hi, I'm trying to use the Serial port to interface with an Arduino > >board. So far, I managed to make it work on Windows but I understand > >that Serial port on linux is a bit more complicated. I've read this > >old discussion > >http://www.nabble.com/communication-with-serial-port-t2549116.html and I > > am a little confused. > >It says that John McIntosh made an EnhancedSerialPort plugin. Is it > >installed on the latest unix VMs? > >It also says that Benjamin Schroeder wrote a SimpleSerialPort > >library. Which one should I use? > > > > > > > > > > > > > > > |
Free forum by Nabble | Edit this page |