site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Uj61GPTd2C2siICMbixxa4/zBlKoSpK2W8mm8tCUB6hgSKUjBZwRKq7U5kYez6/mtr0DnUmhLe9HEgAiWVKcaJ8XizVIAbLMTM6ZaC+NfbHni/k1vc9WvvVWE+wzIAq8shr+jZqogS3xogyfXa3oF/6Hm/sK89dDZobxY/kD8tY= ; 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 <mpontil@apple.com> 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 <mpontil@apple.com> 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 (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bluetooth-dev/mpontil%
40apple.com
This email sent to mpontil@apple.com
__________________________________________________ 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 (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Davide Varvello