Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

What is algebra, exactly? Is it one of those three-cornered things? -- J. M. Barrie


computers / comp.mobile.android / Re: How to detect bluetooth connection from the (termux) terminal?

SubjectAuthor
* How to detect bluetooth connection from the (termux) terminal?het varken van Breslau
`* Re: How to detect bluetooth connection from the (termux) terminal?David Oseas
 `- Re: How to detect bluetooth connection from the (termux) terminal?het varken van Breslau

1
How to detect bluetooth connection from the (termux) terminal?

<u08ktc$1qjsn$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=38992&group=comp.mobile.android#38992

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: har...@seldon.net (het varken van Breslau)
Newsgroups: comp.mobile.android
Subject: How to detect bluetooth connection from the (termux) terminal?
Date: Sat, 1 Apr 2023 09:02:04 +0200
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <u08ktc$1qjsn$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 1 Apr 2023 07:02:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="41647e7bbbb19c7c5c8f2b098dfd25c7";
logging-data="1920919"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PeUJ2RRXMOyKWlzfrGUKfKOsU6ZsIhN0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.8.0
Cancel-Lock: sha1:LUnT61jSAFn8rMzDmgVwAk28bQA=
Content-Language: en-US
 by: het varken van Bresl - Sat, 1 Apr 2023 07:02 UTC

I want to know if and at what time my phone connects to the bluetooth of
my car. My first thought was to try with Termux, but it seems that
Termux does not have bluetooth capabilities.
Now I could get Tasker, which possibly would do the job, but I'd like to
try Open Source solutions first.

Anybody?
--
"Frankrijk heeft de eerste wereldoorlog verloren en Engeland de
tweede. Is nu Duitsland eindelijk aan de beurt? (HP)"

Re: How to detect bluetooth connection from the (termux) terminal?

<u09q6f$20hbt$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=38998&group=comp.mobile.android#38998

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: doseas{n...@usa.net (David Oseas)
Newsgroups: comp.mobile.android
Subject: Re: How to detect bluetooth connection from the (termux) terminal?
Date: Sat, 1 Apr 2023 10:38:21 -0700
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <u09q6f$20hbt$1@dont-email.me>
References: <u08ktc$1qjsn$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 1 Apr 2023 17:38:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e549ad39324e64b88460b1bf89a54f8d";
logging-data="2114941"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188BBJpl7sV56Oe2RQNybD9"
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
Thunderbird/52.9.1
Cancel-Lock: sha1:wEccB8UC5mb15vbucFic6MNTwZY=
X-Antivirus-Status: Clean
In-Reply-To: <u08ktc$1qjsn$1@dont-email.me>
Content-Language: en-US
X-Antivirus: Avast (VPS 230401-2, 4/1/2023), Outbound message
 by: David Oseas - Sat, 1 Apr 2023 17:38 UTC

On 4/1/2023 12:02 AM, het varken van Breslau wrote:
> I want to know if and at what time my phone connects to the bluetooth of
> my car. My first thought was to try with Termux, but it seems that
> Termux does not have bluetooth capabilities.

As a first order approximation, you could look for presence of /dev/hidraw0

I'm sure there are better ways to do it.

-David

Re: How to detect bluetooth connection from the (termux) terminal?

<u0euej$31auq$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=39012&group=comp.mobile.android#39012

  copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: har...@seldon.net (het varken van Breslau)
Newsgroups: comp.mobile.android
Subject: Re: How to detect bluetooth connection from the (termux) terminal?
Date: Mon, 3 Apr 2023 18:21:39 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <u0euej$31auq$1@dont-email.me>
References: <u08ktc$1qjsn$1@dont-email.me> <u09q6f$20hbt$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 3 Apr 2023 16:21:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b8904cacb0a32e869a68aa0e93224567";
logging-data="3189722"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+IajpQZW7ybeepIPB9D6qT6HRH8KgWQNE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:8IP+rUIPcI0Pwq6n81ghlUwYjb0=
Content-Language: en-US
In-Reply-To: <u09q6f$20hbt$1@dont-email.me>
 by: het varken van Bresl - Mon, 3 Apr 2023 16:21 UTC

On 01-04-2023 19:38, David Oseas wrote:
> On 4/1/2023 12:02 AM, het varken van Breslau wrote:
>> I want to know if and at what time my phone connects to the bluetooth
>> of my car. My first thought was to try with Termux, but it seems that
>> Termux does not have bluetooth capabilities.
>
> As a first order approximation, you could look for presence of /dev/hidraw0
>
> I'm sure there are better ways to do it.
>
> -David
>

I cannot find a /dev/hidraw0 or /dev/hidraw0 regardless if bluetooth is
connected or not. There is a /dev/uhid, but that is from 01-01-1970.
Can't cat it and 'file /dev/uhid' says 'character special'

--
"There is a theory which states that if ever anyone discovers exactly
what the Universe is for and why it is here, it will instantly disappear
and be replaced by something even more bizarre and inexplicable. There
is another theory, which states that this has already happened. (Douglas
Adams)"


computers / comp.mobile.android / Re: How to detect bluetooth connection from the (termux) terminal?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor