Re: Low Energy Devices & Serial Ports
Re: Low Energy Devices & Serial Ports
- Subject: Re: Low Energy Devices & Serial Ports
- From: Matt Gillette <email@hidden>
- Date: Sat, 30 Nov 2013 16:33:42 -0800
There’s also a heart rate sample application that does all of the CoreBluetooth work for you (hopefully it works with the Polar device you have).
https://developer.apple.com/library/mac/samplecode/HeartRateMonitor/Introduction/Intro.html
Low Energy stuff doesn’t use the serial port profile that classic does and trying to map it on top might be more trouble than directly accessing the data.
Matt
On Nov 29, 2013, at 8:04 AM, Ringwald Matthias <email@hidden> wrote:
> Hi Jack
>
> To talk to a Bluetooth Low Energy device on iOS or OS X, you have to use the CoreBluetooth framework/API. There is no mapping to e.g. a serial port.
>
> If you really need to provide a serial port like device, you could use a pseudo tty device. see man pty. I remember there was also a way to setup such a master/slave pair programmatically but cannot remember how to do or google that. Then you could write a small app that connects and retrieves data from the Polar H7 and send it to the master of the pty pair which then can be read from SuperCollider.
>
> However, if you’re already writing native code, you could as well try to write a SuperCollier (I assume that’s possible) that just returns the heart rate monitor data.
>
> Cheers
> Matthias
>
> On 29.11.2013, at 12:16, Jack Clark <email@hidden<mailto:email@hidden>> wrote:
>
> Hello everyone,
>
> I have a query regarding Low Energy Bluetooth Devices. I recently purchased a 'Polar H7' Heart Rate Monitor and am trying to get data from it into my Mac Book Pro for use in development, however the usual Bluetooth application located in System Preferences shows no nearby devices.
>
> After having a look around, I downloaded the developer tool Bluetooth Explorer and from within this, I am able to select ‘Low Energy Devices’ from the ‘Devices’ drop down menu and then scan for Low Energy Devices. The device ‘Polar H7 2088A8’ soon pops up and I am able to select it and press ‘connect’, and as the connect button turns to ‘disconnect’ it appears to be connected (see attached images).
>
> My goal is to be able to retrieve data from the connected device into a Serial Port (I am using the audio programming language SuperCollider). Is there anyway to make my OS (10.9) let me get information from the heart rate monitor as a TTY Serial Device?
>
> Thanks
> --
> Jack
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Bluetooth-dev mailing list (email@hidden<mailto:email@hidden>)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
>
> _______________________________________________
> 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
_______________________________________________
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