View unanswered posts | View active topics It is currently Sat Apr 29, 2017 11:28 pm



Reply to topic  [ 5 posts ] 
BLE112 and Windows 8.1 
Author Message

Joined: Thu Jul 04, 2013 4:55 pm
Posts: 4
HI All,

First up i would like the thank Dr Kroll alot for his fine work on BLE :)

From stumbling onto his work and this forum i have been able to quickly create a Gadgeteer BLE module which works a treat with the BLExplr app on the wifes iPhone 4S.

Now since i am a C# chap the next challenge was getting to to work on Windows...

Luckily for me Microsoft have just released preview copies of Windows 8.1 and Visual Studio 2013 which include among other goodies new Low Energy API's to talk directly to GATT :)

Simple as this:

// Discover any visiable Bee's
var devices = await DeviceInformation.FindAllAsync(GattDeviceService.GetDeviceSelectorFromUuid(new Guid("EF080D8C-C3BE-41FF-BD3F-05A5F4795D7F")));

//connect to a Bee
GattDeviceService service = await GattDeviceService.FromIdAsync(device.Id);

//Read
var readSensor = service.GetCharacteristics(new Guid("A1E8F5B1-696B-4E4C-87C6-69DFE0B0093B"));
GattReadResult readResult = await readSensor[0].ReadValueAsync();
if (readResult.Status == GattCommunicationStatus.Success)
{
byte[] sensorData = new byte[readResult.Value.Length];
DataReader.FromBuffer(readResult.Value).ReadBytes(sensorData);
}

If anyone is remotely interested in Windows and BLE i am more than happy to share more...

http://www.youtube.com/watch?v=gwy0vCAF_Jk
http://www.youtube.com/watch?v=3x5YjE9MGDs

Regards
Justin


Attachments:
BLE.jpg
BLE.jpg [ 156.12 KiB | Viewed 18133 times ]
Thu Jul 11, 2013 10:30 am
Profile
Site Admin

Joined: Thu Aug 02, 2012 11:36 am
Posts: 166
Hello Justin,
thank you for your post.
Is your module running my original firmware or have you modified it?

The Youtube streams are not accessible on my iPhone or the iPad? Youtube states, that the videos are not mobile optimized.
Could you upload them in maybe MP4 format ? ;-)

Cheers,
Michael.


Thu Jul 11, 2013 4:32 pm
Profile WWW

Joined: Thu Jul 04, 2013 4:55 pm
Posts: 4
Hi Michael,

I am experimenting with your firmware and breaking it as i go :)

The streams are encoded as YT 1080p mp4's....

Does this one work?
http://www.youtube.com/watch?v=Ls4GFPGBX4M

Regards
Justin


Thu Jul 11, 2013 6:02 pm
Profile
Site Admin

Joined: Thu Aug 02, 2012 11:36 am
Posts: 166
Hi Justin,
I'm getting the message as shown in the attached image.
Cheers,
Michael


Attachments:
image.jpg
image.jpg [ 89.89 KiB | Viewed 18127 times ]
Thu Jul 11, 2013 10:06 pm
Profile WWW

Joined: Thu Jul 04, 2013 4:55 pm
Posts: 4
Hmmm,

Think it might be be because of the cheesy 90's Euro pop soundtrack.
Will try one tomorrow without the music.

Cheers
Justin


Thu Jul 11, 2013 10:28 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF.