Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Bluetooth Profiles

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Fri Jan 05, 2018 12:02 am    Post subject: Bluetooth Profiles Reply with quote

Hey all,

I am planning on creating a desktop application that simulates a Bluetooth Headset.

The idea I have in mind is when the desktop application launches, it becomes discoverable, and when the phone pairs, all the audio on the phone is transferred to the desktop application, like in any ordinary bluetooth headset.

I understand that the desktop application would need to conform to the Bluetooth Headset Profile, but is there any documentation or examples online covering how to create programmatically develop Bluetooth Headset device.

Best,
iPromise
Back to top
View user's profile Send private message MSN Messenger
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Fri Jan 05, 2018 1:00 am    Post subject: Reply with quote

Windows has some docs on Bluetooth communications via Win sockets here:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa362928(v=vs.85).aspx

Along with a code sample here:
https://code.msdn.microsoft.com/windowsdesktop/Bluetooth-Connection-e3263296

Qt libraries have their own stuff as well:
http://doc.qt.io/qt-5/qtbluetooth-module.html

You can also look on Github/Gitlab for various projects using Bluetooth to see how they handle the connection and data transferring.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Fri Jan 05, 2018 9:43 am    Post subject: Reply with quote

Thanks for the links!

So I actually know how to setup the basic bluetooth connection on a desktop and mobile application. I'm pretty much confused as to how I'm supposed to simulate the Bluetooth Headset Profile, which is described here:

https://msdn.microsoft.com/en-us/library/ms881905.aspx

If the desktop application that I code conforms to the Bluetooth Headset Profile, does the mobile app automatically recognize that it's connected to headset after it's paired?

Or does the mobile application and the desktop application both have to conform to the Bluetooth Headset Profile in order for all the audio from the phone to be transferred?

Best,
Hussain
Back to top
View user's profile Send private message MSN Messenger
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Fri Jan 05, 2018 3:26 pm    Post subject: Reply with quote

Here's a python example showing how to setup a headset profile:
https://gist.github.com/smoser/46bc23907a0f4db00a41088d912386dd

Two Java examples:
https://github.com/devunwired/accessory-samples/blob/master/BluetoothAudioProxy/src/com/example/BluetoothAudioProxy/HeadsetService.java
https://github.com/aosp-mirror/platform_frameworks_base/blob/master/core/java/android/bluetooth/BluetoothHeadset.java

Some other examples:
https://github.com/littlecraft/phony
https://github.com/devunwired/accessory-samples

https://github.com/bluekitchen/btstack
https://github.com/bluekitchen/btstack/blob/master/doc/manual/docs/profiles.md

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites