Re: GPS
Re: GPS
- Subject: Re: GPS
- From: Davide Varvello <email@hidden>
- Date: Fri, 17 Feb 2006 03:11:51 -0800 (PST)
Hi Marco,
That's a good advice because I have a squeak process
and the objective-c thread that are communicating, so
your suggestion makes sense.
Thanks
Davide
--- Marco Pontil <email@hidden> wrote:
> Davide,
>
> make sure it is not a thread problem. The bluetooth
> APIS
> are not multi-thread safe. Everything MUST run in
> the same thread.
> Also since you need some UI to show the panel and UI
> calls need
> to be made in the main thread it means that all the
> code must
> run in the main thread.
>
> ... Marco
>
>
> On Feb 16, 2006, at 3:01 PM, Davide Varvello wrote:
>
> > Hi Marco,
> > Thanks for the example. Really commenting the
> > writeSync invocation your code works and I can see
> all
> > the gps string in the window.
> > So probably there is a problem with my code
> because
> > I'm trying to call objective-c methods via squeak
> > using a squeak/objective-c bridge and as far as I
> can
> > see I can open a bluetooth connection but no gps
> data
> > are transferred. If I make some progress I'll
> post.
> > Thanks
> > Davide
> >
> > --- Marco Pontil <email@hidden> wrote:
> >
> >> The sample is written with a modem (or phone)
> serial
> >> port in mind.
> >> But if you comment the line:
> >>
> >> [rfcommChannel writeSync:"ATZ\n" length:4];
> >>
> >> it will probably work right away (or with minor
> >> modifications) with
> >> you GPS module (I did not try tough)
> >>
> >> ... Marco
> >>
> >>
> >> 
> >>
> >> On Feb 15, 2006, at 4:05 PM, Davide Varvello
> wrote:
> >>
> >>> Hi,
> >>> I can't figure out how to code a simple client
> >> that
> >>> receive data from a bluetooth GPS device. I
> think
> >> I
> >>> should open an RFMCOMM connection but reading
> the
> >> list
> >>> and apple samples hasn't help me yet.
> >>> Can you, please, post some lines of code to shed
> a
> >>> light on this question?
> >>> TIA
> >>> Davide
> >>>
> >>>
> >>>
> __________________________________________________
> >>> Do You Yahoo!?
> >>> Tired of spam? Yahoo! Mail has the best spam
> >> protection around
> >>> http://mail.yahoo.com
> >>> _______________________________________________
> >>> Do not post admin requests to the list. They
> will
> >> be ignored.
> >>> Bluetooth-dev mailing list
> >> (email@hidden)
> >>> Help/Unsubscribe/Update your Subscription:
> >>>
> >>
> >
>
> >>
> >>> 40apple.com
> >>>
> >>> This email sent to email@hidden
> >>
> >>
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden