lock and unlock Windows via Bluetooth

painkillerde

Member
Sep 11, 2012
13
1
0
Karlsruhe
Hi there,

there are tools out there to lock your Windows when bluetooth connection to a device is lost and unlock when its established again.

That would be a nice feature for the Smartwatch (better than mobilephone) because its always with me.

I cant connect the watch via Bluetooth to the pc.

Any ideas how to do this.

Maybe we have a good app-developer here ;)

Thanks alot!!

Daniel
 

sowed

Senior Member
Oct 17, 2007
170
44
58
I think he wants to lock a PC with windows...

you can't do this because it doesn't exist an app to conect both etc...
 

painkillerde

Member
Sep 11, 2012
13
1
0
Karlsruhe
I think he wants to lock a PC with windows...

you can't do this because it doesn't exist an app to conect both etc...
Yes thats what i mean. If the bluetooth connecton to the pc is lost (out of reach) it locks itself. Back to the pc it unlocks. There are tools for windows you can realize that with a mobile phone. But i often leave it at the desk. The watch is always with me.

The problem is i cant connect the watch to the pc.

Sorry if the first post was misleading.

Is there any possibility to get the watch connected to a pc. More is not needed to realize this.

Thx.
 

Alahdal

Senior Member
Jan 16, 2008
510
68
0
Saudi Arabia, Jeddah
Yes thats what i mean. If the bluetooth connecton to the pc is lost (out of reach) it locks itself. Back to the pc it unlocks. There are tools for windows you can realize that with a mobile phone. But i often leave it at the desk. The watch is always with me.

The problem is i cant connect the watch to the pc.

Sorry if the first post was misleading.

Is there any possibility to get the watch connected to a pc. More is not needed to realize this.

Thx.
If you can't connect the watch to the PC, how a tool (if there is one) will know that the watch is connected and perform an action. Logically and programmatically, is impossible.

Secondly, why such watch should be connectable to a PC? it wasn't made for this purpose.
 

painkillerde

Member
Sep 11, 2012
13
1
0
Karlsruhe
If you can't connect the watch to the PC, how a tool (if there is one) will know that the watch is connected and perform an action. Logically and programmatically, is impossible.

Secondly, why such watch should be connectable to a PC? it wasn't made for this purpose.
I see what you mean. But isnt xda a developer Forum too? Maybe MAYBE its possible to make an app that could make the watch connectable to a PC via bluetooth or the watch os itself.

Its just an idea - im not a developer and i dont know about what is possible and what is not. But its an android running on the watch and we are in a developer forum so why not!!

I would like this feature...
 

badplanet

Member
Jan 31, 2014
24
1
0
Technically it should be possible but it may not be worth the effort. I think the Windows program would have to try to connect every minute or every 30 seconds and lock the screen if it cannot. Then keep scanning to unlock when it can connect.
 

painkillerde

Member
Sep 11, 2012
13
1
0
Karlsruhe

Alahdal

Senior Member
Jan 16, 2008
510
68
0
Saudi Arabia, Jeddah
Technically it should be possible but it may not be worth the effort. I think the Windows program would have to try to connect every minute or every 30 seconds and lock the screen if it cannot. Then keep scanning to unlock when it can connect.
There is a Windows tool 'BtProx', which can lock the PC when the bluetooth device is disconnected. I used this with hands free headset.

However, as mentioned earlier if Windows cannot see the watch, how the application will act??!

BtProx
http://btprox.sourceforge.net/

Sent via Phone.
 

ffarber

Senior Member
Sep 24, 2010
239
52
0
The software is ready to go - the problem is to connect the watch. Sadly...

http://www.howtogeek.com/67556/how-to-unlock-your-pc-by-being-nearby-with-a-bluetooth-phone/
I love this idea, totally useful. Isn't the problem really on the watch side though? It will only pair with one device at a time (the phone) and then is no longer visible. On the PC side just being able to see the watch would trigger the unlock, no need to actually pair. I am probably missing something as I am not a developer.

Fred
 

painkillerde

Member
Sep 11, 2012
13
1
0
Karlsruhe
I love this idea, totally useful. Isn't the problem really on the watch side though? It will only pair with one device at a time (the phone) and then is no longer visible. On the PC side just being able to see the watch would trigger the unlock, no need to actually pair. I am probably missing something as I am not a developer.

Fred
Yes I also think something like a ping would be enough - but it seems the Lock/Unlock Software wants a paired device and the watch isn´t visible after pairing with the phone.

So it seems we have no option to get it work. :(
 

ffarber

Senior Member
Sep 24, 2010
239
52
0
Yes I also think something like a ping would be enough - but it seems the Lock/Unlock Software wants a paired device and the watch isn´t visible after pairing with the phone.

So it seems we have no option to get it work. :(
Don't give up so fast. I think there might be a way...

How about if the unlock software would unlock the PC when the phone was connected but only if the watch was connected to the phone? That would probably take a small amount of coding on the Android side to inform the PC whether the watch were connected or not. This way both the phone and watch would have to be connected to their respective pairings. I think it still solves your problem of walking away from your desk and the phone which would lock the PC and when you brought the watch back the PC would unlock.

Do you think the PC lock software folks would be interested in such a scheme? Have you been in contact with them? This would work for all types of smartwatches with only coding done on the phone and PC.

Cheers,
Fred
 

painkillerde

Member
Sep 11, 2012
13
1
0
Karlsruhe
Yeeeeehaaaaa

Don't give up so fast. I think there might be a way...

How about if the unlock software would unlock the PC when the phone was connected but only if the watch was connected to the phone? That would probably take a small amount of coding on the Android side to inform the PC whether the watch were connected or not. This way both the phone and watch would have to be connected to their respective pairings. I think it still solves your problem of walking away from your desk and the phone which would lock the PC and when you brought the watch back the PC would unlock.

Do you think the PC lock software folks would be interested in such a scheme? Have you been in contact with them? This would work for all types of smartwatches with only coding done on the phone and PC.

Cheers,
Fred
GOT IT :D

I give me the needed idea.

You need

Tasker + Secure Settings + your Mobile.


Mobile is connected via bluetooth to PC. Software locks on connection lost to mobile.

Now i made a task which disconnects the bluetooth connection to PC when connection to the watch is lost. -> PC locked
You may also use the notification message of the Smartwatch - try it later.

An other task reconnects the mobile to PC when watch reconnects to mobile. -> PC unlocks but it takes a little time (but for me the lock was the important thing).

If you take away your mobile it also locks the PC. What more do you want!!!!

I would say - Mission accomplished...good:



Now its time to play arround with tasker a little bit more :fingers-crossed:
 
  • Like
Reactions: AlexOB1

painkillerde

Member
Sep 11, 2012
13
1
0
Karlsruhe
Damn it was tricking me. the Phone reconnects after a few seconds so the lock timer has to be extrem short ... working on it

Any ideas how to prevent autoconnect to the Computer but stay paired?
 

ffarber

Senior Member
Sep 24, 2010
239
52
0
Damn it was tricking me. the Phone reconnects after a few seconds so the lock timer has to be extrem short ... working on it

Any ideas how to prevent autoconnect to the Computer but stay paired?
I am not sure what you mean. When does the phone reconnect when you don;t want it to? Seems like your idea should work. I am not a tasker user but are there any timer tasks built into it that would stop the unintended activity for a period of time?

Fred
 

painkillerde

Member
Sep 11, 2012
13
1
0
Karlsruhe
I am not sure what you mean. When does the phone reconnect when you don;t want it to? Seems like your idea should work. I am not a tasker user but are there any timer tasks built into it that would stop the unintended activity for a period of time?

Fred
When the watch disconnects it triggers the disconnect (via tasker) between mobile and computer but the mobile connects again after a few seconds. So btprox or btproximity (software im using to lock the pc when bluetooth disconnects) has not enough time to lock. I have to set the interval btprox looks for the connection to under 10 sec. Thats to short and i think it will give bigger battery drain on the mobile.

So i need a way preventing the mobile from reconnecting again to the pc unless the watch is reconnected. but this seems harder than i thought.

Played a lot arround with tasker - even tried t find a way to send a cmd to the pc and lock it over command line when watch is out of reach from mobile. so i could use this way if watch is away from pc and the "bluetooth out of reach" way when mobile is away. but i didnt found an app to use with tasker which is able to do so.

But after getting so far i wont give up ;)
 

ffarber

Senior Member
Sep 24, 2010
239
52
0
When the watch disconnects it triggers the disconnect (via tasker) between mobile and computer but the mobile connects again after a few seconds. So btprox or btproximity (software im using to lock the pc when bluetooth disconnects) has not enough time to lock. I have to set the interval btprox looks for the connection to under 10 sec. Thats to short and i think it will give bigger battery drain on the mobile.

So i need a way preventing the mobile from reconnecting again to the pc unless the watch is reconnected. but this seems harder than i thought.

Played a lot arround with tasker - even tried t find a way to send a cmd to the pc and lock it over command line when watch is out of reach from mobile. so i could use this way if watch is away from pc and the "bluetooth out of reach" way when mobile is away. but i didnt found an app to use with tasker which is able to do so.

But after getting so far i wont give up ;)
Well, I am not a tasker user but I do use an old app I started using years ago named Settings Profile (I have no idea if you can still download it). SP has variable time delays between actions so you could turn off bluetooth on the phone for a minute (or as long as you think you need to wait) after the watch disconnected and then turn bluetooth back on so that the phone would reconnect to the PC while you were gone and then when you got back the watch would reconnect to the phone and all would be good. Tasker seems like it has way more capability than my old app (that I am too lazy to change). I am sure buried somewhere in Tasker is a delay you could use like that.

Let me know if you get it to work and maybe I will make the leap, though I am sure I have better things to do with my time than get lost in Tasker;)

Fred
 

painkillerde

Member
Sep 11, 2012
13
1
0
Karlsruhe
Well, I am not a tasker user but I do use an old app I started using years ago named Settings Profile (I have no idea if you can still download it). SP has variable time delays between actions so you could turn off bluetooth on the phone for a minute (or as long as you think you need to wait) after the watch disconnected and then turn bluetooth back on so that the phone would reconnect to the PC while you were gone and then when you got back the watch would reconnect to the phone and all would be good. Tasker seems like it has way more capability than my old app (that I am too lazy to change). I am sure buried somewhere in Tasker is a delay you could use like that.

Let me know if you get it to work and maybe I will make the leap, though I am sure I have better things to do with my time than get lost in Tasker;)

Fred
Disable bluetooth would work but i dont like this option - i did it an other way.

I got it Working now with "Remote Launcher"+"Tasker".

Made a task locking the PC via Remote Launcher if watch disconnects from Mobile after 30 seconds.

If Mobile disconnects bt from PC the btprox software locks the PC.

Not exactly what i want but works...

Unlocking seems to be not possible...
 

Hanfried

Member
Feb 12, 2014
10
3
0
www.facebook.com
I love this idea, totally useful. Isn't the problem really on the watch side though? It will only pair with one device at a time (the phone) and then is no longer visible. On the PC side just being able to see the watch would trigger the unlock, no need to actually pair. I am probably missing something as I am not a developer.

Fred
While this is an old thread here a small hint:
There is a Win Software "BTProximity" that will lock / unlock the PC when discovering a BT device with a given BT address - without the need for actually ever pairing the bt device with the PC.
This approach should work just fine with every BT enabled smartwatch. Unfortunately I am not yet allowed to post links here. Google for "guidingtech auto lock win 8 bluetooth" ... the first result will link you to the tool.

Comments appreciated.