[Newbies] Sending messages over Bluethooth "serial port"
mispunt at users.sourceforge.net
Mon Feb 26 09:08:18 UTC 2007
> I can connect to the port using the SerialPort class (at least I don't
> get any message that tell otherwise), but when I try to send any
> message to the serial port Squeak doesn't response anymore. When I
> turn off Bluetooth I get an message like: "Error: a primitive has
Well, I am still not able to send any message to the serial port of
Windows. (Same error)
Does anyone else have problems with the SerialPort class?
On 2/23/07, Lukas Renggli <renggli at gmail.com> wrote:
> > > > I am trying to write some code (in squeak) to talk to the Lego
> > > > Mindstorms NXT. Therefore I need to communicate with a Bluetooth
> > > > "serial port".
> > >
> > > I once wrote started doing exactly that. The basic communication
> > > protocol using bluetooth is working but I didn't got any further as
> > > time is missing. The code certainly only works on OS X and Linux right
> > > now, but maybe it is still useful to you? Probably you need to
> > > implement a different subclass of NxtConnection to access the serial
> > > port the windows-way.
> > Thanks for you're help, I probably could use it. It gives me some
> > inside of how I have to do the message lengt thing ;)
> > I will try to get this working. I have enough time because this is for
> > my work :)
> Cool. I put the code into my monticello repository, that's maybe
> easier if you want to commit something. So far only #name:, #ping and
> #battery works ;-)
> location: 'http://mc.lukas-renggli.ch/nxt/'
> user: ''
> password: ''
> Lukas Renggli
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
More information about the Beginners