Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Bluetooth Tethering - Photowall sample


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 11 - Last Post: Oct 22, 2015 2:22 AM Last Post By: Mark Gorst
Mark Gorst

Posts: 23
Registered: 6/7/02
Bluetooth Tethering - Photowall sample  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 2, 2015 2:44 AM
[Note : I found the thread "Bluetooth Tethering Wont Work" March 2015 - supposedly answered, but sadly I can't see the solution.]

I guess my problem is the same or similar. I wrote Android app which communciates fine with Win7 VCL application using WiFi Tethering, but an attempt to use Bluetooth has failed.

I attempted to do the same with the Photowall sample, again that works fine when using Wifi.

My android tablet is paired and communcating with the desktop ok (e.g. I can play music through the speakers on the PC). Under the networking it's showing as a device, it's connected and has full signal strength.

These are the steps I took to modify both my application and the Photowall example.

1. Changed the TTetheringManager.AllowedAdapters from Network to Bluetooth in both Android and VCL applications

2. gave the Android deployment user permission requirement for Bluetooth and Bluetooth Admin

In both cases this failed to work.

So my questions are :

Is there something else I should do to my applications ?

Is there something else I need to do in configuration of the Bluetooth connection ? It's my first application outing with Bluetooth, until now only as a consumer pairing the phone with the car etc.

Using: Android Kitkat, Win7-64 10Seattle

Edited by: Mark Gorst on Oct 2, 2015 2:45 AM

Edited by: Mark Gorst on Oct 2, 2015 2:46 AM
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Bluetooth Tethering - Photowall sample [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 4, 2015 2:04 PM   in response to: Mark Gorst in response to: Mark Gorst
Am 02.10.2015 um 11:46 schrieb Mark Gorst:
[Note : I found the thread "Bluetooth Tethering Wont Work" March 2015 - supposedly answered, but sadly I can't see the solution.]

I guess my problem is the same or similar. I wrote Android app which communciates fine with Win7 VCL application using WiFi Tethering, but an attempt to use Bluetooth has failed.

I attempted to do the same with the Photowall sample, again that works fine when using Wifi.

My android tablet is paired and communcating with the desktop ok (e.g. I can play music through the speakers on the PC). Under the networking it's showing as a device, it's connected and has full signal strength.

These are the steps I took to modify both my application and the Photowall example.

1. Changed the TTetheringManager.AllowedAdapters from Network to Bluetooth in both Android and VCL applications

2. gave the Android deployment user permission requirement for Bluetooth and Bluetooth Admin

In both cases this failed to work.

Hello,

failed to work? Did it present any failure message, or it simply didn't
connect or didn't transfer data between the two apps?

Greetings

Markus
Mark Gorst

Posts: 23
Registered: 6/7/02
Re: Bluetooth Tethering - Photowall sample [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 8, 2015 2:40 AM   in response to: Markus Humm in response to: Markus Humm

failed to work? Did it present any failure message, or it simply didn't
connect or didn't transfer data between the two apps?

Sorry I should have been more explicit. It doesn't list anything in the "Select Photo Wall" section, I haven't gone into detail - but I presume it's the same issue I have with my application - that it's not discovering any managers when I change AllowedAdapters from "Wifi" to "Bluetooth".

Could it be something external to the code like Firewall settings ?

All suggestions appreciated.

Mark
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Bluetooth Tethering - Photowall sample [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 8, 2015 11:15 AM   in response to: Mark Gorst in response to: Mark Gorst
Am 08.10.2015 um 11:40 schrieb Mark Gorst:

failed to work? Did it present any failure message, or it simply didn't
connect or didn't transfer data between the two apps?

Sorry I should have been more explicit. It doesn't list anything in the "Select Photo Wall" section, I haven't gone into detail - but I presume it's the same issue I have with my application - that it's not discovering any managers when I change AllowedAdapters from "Wifi" to "Bluetooth".

Could it be something external to the code like Firewall settings ?

All suggestions appreciated.

Mark

Hello,

Bluetooth is normally not being passed through any Firewall.
Do both devices support the same Bluetooth standard? Means: both support
classic or both support 4.0 Low Energy?
(don't fall into the trap to believe that all 4.0 devices are low energy
capable! Most are not! BT 4.0 has made a few minor changes to classic as
well)

Greetings

Markus
Mark Gorst

Posts: 23
Registered: 6/7/02
Re: Bluetooth Tethering - Photowall sample [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 9, 2015 6:51 AM   in response to: Markus Humm in response to: Markus Humm

Bluetooth is normally not being passed through any Firewall.
Do both devices support the same Bluetooth standard? Means: both support
classic or both support 4.0 Low Energy?
(don't fall into the trap to believe that all 4.0 devices are low energy
capable! Most are not! BT 4.0 has made a few minor changes to classic as
well)

Greetings

Markus

Bluetooth standard ! now that opened a can of worms. My desktop has Dell 1703 Bluetooth which I believe can support up to 4.0, but as it's Windows 7 then according to Microsoft that will only support up to 2.1. I believe my tablet (brand new) support Bluetooth 4.0.

However I may have found another clue. The tablet says it is paired for Phone Audio and Media Audio - which it appeared to be doing.

Do I need to configure my Desktop so it is using Bluetooth Networking rather than WiFi networking in order to get this pairing to work ? Does that make sense ?

I will try that.

Mark
Mark Gorst

Posts: 23
Registered: 6/7/02
Re: Bluetooth Tethering - Photowall sample [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 9, 2015 8:19 AM   in response to: Mark Gorst in response to: Mark Gorst
Still no joy. However I do have the following extra information that these are the services available (all ticked)

Advanced Audio
Handsfree Telephony Gateway
MAP SMS/MMS
Object Push (Obex)
Remotely Controlable Device
Unknown Service

Is there another service I need to discover a TTetheringManager ?
Mark Gorst

Posts: 23
Registered: 6/7/02
Re: Bluetooth Tethering - Photowall sample [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 9, 2015 8:19 AM   in response to: Mark Gorst in response to: Mark Gorst
Still no joy. However I do have the following extra information that these are the services available (all ticked)

Advanced Audio
Handsfree Telephony Gateway
MAP SMS/MMS
Object Push (Obex)
Remotely Controlable Device
Unknown Service

Is there another service I need to discover a TTetheringManager ?
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Bluetooth Tethering - Photowall sample [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 10, 2015 8:43 AM   in response to: Mark Gorst in response to: Mark Gorst
Am 09.10.2015 um 17:19 schrieb Mark Gorst:
Still no joy. However I do have the following extra information that these are the services available (all ticked)

Advanced Audio
Handsfree Telephony Gateway
MAP SMS/MMS
Object Push (Obex)
Remotely Controlable Device
Unknown Service

Is there another service I need to discover a TTetheringManager ?

Are you on SA? (support and maintenance)

Greetings

Markus
Mark Gorst

Posts: 23
Registered: 6/7/02
Re: Bluetooth Tethering - Photowall sample [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 12, 2015 12:14 AM   in response to: Markus Humm in response to: Markus Humm
Markus Humm wrote:
Am 09.10.2015 um 17:19 schrieb Mark Gorst:
Still no joy. However I do have the following extra information that these are the services available (all ticked)

Advanced Audio
Handsfree Telephony Gateway
MAP SMS/MMS
Object Push (Obex)
Remotely Controlable Device
Unknown Service

Is there another service I need to discover a TTetheringManager ?

Are you on SA? (support and maintenance)

Greetings

Markus

Yes. I'm going to have to take that route.

Mark

Edited by: Mark Gorst on Oct 12, 2015 5:21 AM
Mark Gorst

Posts: 23
Registered: 6/7/02
Re: Bluetooth Tethering - Photowall sample [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 12, 2015 2:32 AM   in response to: Mark Gorst in response to: Mark Gorst
n/a

Edited by: Mark Gorst on Oct 12, 2015 5:22 AM
Mark Gorst

Posts: 23
Registered: 6/7/02
Re: Bluetooth Tethering - Photowall sample [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 12, 2015 3:32 AM   in response to: Mark Gorst in response to: Mark Gorst
Futher experimentation with 2 different Android devices. I've been using the PhotoWall sample and both Delphi10Seattle and XE7 give the same result. I have done 2 things to the sample.

1. For both the VCL Desktop and the Mobile part changed TTetheringManager.AllowedAdapters from Network to Bluetooth

2. Given the Mobile Android permissions for Bluetooth and Bluetooth Admin

Both Android devices have been paired as Bluetooth devices, been connected to a Bluetooth Personal Area Network (Win7 x64) and show as connected, on the network diagram in control panel with 5 bar signal strength.

The XE7 and 10Seattle versions both work in WiFi mode.

the conclusions I have so far are

1. I need to change more things to get it work in Bluetooth - but I don't know what - nor have found any documentation to suggest otherwise. 10Seattle documentation on TTetheringManager.AllowedAdapters has the following old favourite :

Embarcadero Technologies does not currently have any additional information. Please help document this topic by using the Discussion page!

2. There is a problem with my Bluetooth configuration, but given that it all shows as working and other Bluetooth features work - I don't know what.

3. There is a problem with TTetheringManager Bluetooth connections in Delphi.

Mark Gorst

Posts: 23
Registered: 6/7/02
Re: Bluetooth Tethering - Photowall sample [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 22, 2015 2:22 AM   in response to: Mark Gorst in response to: Mark Gorst
Support have identified this as a bug.

It is working in some circumstances but Microsoft Bluetooth in particular is not always working.

My suggestion - stick to WiFi if you can.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02