Way to detect when N2 is starting. Ibeacon?

Post Reply
zyssai
Posts: 118
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 2Gb
Vu7a+
Has thanked: 38 times
Been thanked: 14 times
Contact:

Way to detect when N2 is starting. Ibeacon?

Post by zyssai »

Hi!

My N2+ as no wifi or wired connection.

I'm looking for a way to detect when my N2+ is starting, with my smartphone.
I tested with bluetooth dongle, but it does not work everytime.

I thought about an ibeacon, but never used one, and don't know how it works.

Image

With my smartphone in can use tasker or similar app to make macro when ibeacon is detected.
I thought about power on ibeacon synchronously with my N2.
Then smartphone will detect ibeacon and know that it started.

Someone already used ibeacon or similar with tasker or macrodroid app?

Thanks

User avatar
odroid
Site Admin
Posts: 37412
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1798 times
Been thanked: 1145 times
Contact:

Re: Way to detect when N2 is starting. Ibeacon?

Post by odroid »

How to communicate between the ibeacon and the N2?
I think the BLE driver/APIs are different from each OS images.
These users thanked the author odroid for the post:
zyssai (Mon Apr 05, 2021 5:14 pm)

User avatar
mad_ady
Posts: 9430
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 602 times
Been thanked: 673 times
Contact:

Re: Way to detect when N2 is starting. Ibeacon?

Post by mad_ady »

Alternatively you could use something like HardKernel's SmartPower or a Sonoff Pow to measure the power consumption of your Odroid board. But both require wifi for communication (SmartPower can work as an AP).
These users thanked the author mad_ady for the post:
zyssai (Mon Apr 05, 2021 5:14 pm)

zyssai
Posts: 118
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 2Gb
Vu7a+
Has thanked: 38 times
Been thanked: 14 times
Contact:

Re: Way to detect when N2 is starting. Ibeacon?

Post by zyssai »

odroid wrote:
Mon Apr 05, 2021 9:45 am
How to communicate between the ibeacon and the N2?
I think the BLE driver/APIs are different from each OS images.
I will use same switch for DC power. Just replace battery of ibeacon with DC adapter.

zyssai
Posts: 118
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 2Gb
Vu7a+
Has thanked: 38 times
Been thanked: 14 times
Contact:

Re: Way to detect when N2 is starting. Ibeacon?

Post by zyssai »

mad_ady wrote:
Mon Apr 05, 2021 12:52 pm
Alternatively you could use something like HardKernel's SmartPower or a Sonoff Pow to measure the power consumption of your Odroid board. But both require wifi for communication (SmartPower can work as an AP).
I will check this, thanks for the idea

zyssai
Posts: 118
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 2Gb
Vu7a+
Has thanked: 38 times
Been thanked: 14 times
Contact:

Re: Way to detect when N2 is starting. Ibeacon?

Post by zyssai »

I need this to activate wifi AP of my smartphone when N2 is starting

User avatar
joerg
Posts: 1348
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 86 times
Been thanked: 197 times
Contact:

Re: Way to detect when N2 is starting. Ibeacon?

Post by joerg »

Is this to have internet on the N2 in your car? If so, why you don't use a 4G usb dongle?

zyssai
Posts: 118
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 2Gb
Vu7a+
Has thanked: 38 times
Been thanked: 14 times
Contact:

Re: Way to detect when N2 is starting. Ibeacon?

Post by zyssai »

joerg wrote:
Mon Apr 05, 2021 5:37 pm
Is this to have internet on the N2 in your car? If so, why you don't use a 4G usb dongle?
Yes it's for the car.
I can use 4g dongle, but need to pay for another sim card.
Wifi AP works perfectly, i just need to manually activate it everytime.

User avatar
joerg
Posts: 1348
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 86 times
Been thanked: 197 times
Contact:

Re: Way to detect when N2 is starting. Ibeacon?

Post by joerg »

Yes, I understand. I use a sim card with 5€ monthly. It's not so much and enough data for navigation and some extra.
But let me see, if I can find a solution...

zyssai
Posts: 118
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 2Gb
Vu7a+
Has thanked: 38 times
Been thanked: 14 times
Contact:

Re: Way to detect when N2 is starting. Ibeacon?

Post by zyssai »

joerg wrote:
Mon Apr 05, 2021 7:59 pm
Yes, I understand. I use a sim card with 5€ monthly. It's not so much and enough data for navigation and some extra.
But let me see, if I can find a solution...
No worries.
I will try to buy a beacon, i found one that power with 5v USB. Don't know if it will work

https://a.aliexpress.com/_uGWKpP

User avatar
mad_ady
Posts: 9430
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 602 times
Been thanked: 673 times
Contact:

Re: Way to detect when N2 is starting. Ibeacon?

Post by mad_ady »

For a car, my suggestion won't work... An alternative might be to have the wifi dongle on the N2 set to AP/tethering mode.
You could use Tasker on your phone to start (and remain in) tethering mode when it's in range of your car. The same automation, running on the N2 can put its wifi in client mode so it connects to your phone.

User avatar
joerg
Posts: 1348
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4
Location: Germany
Has thanked: 86 times
Been thanked: 197 times
Contact:

Re: Way to detect when N2 is starting. Ibeacon?

Post by joerg »

@mad_ady, I think he want to do it nearly this way. But on the N2 only WiFi must be switched on, then it connects automatically to the AP of the smartphone. The AP of the smartphone he want to start with energizing the beacon.
BTW. I tried to add Bluetooth functionality to my app, but I can't find a way to get rid of a dialog that pops up to allow the connection to my smartphone. As I have never dealed with bluetooth and it costs too much my time, I gave up ... :(
These users thanked the author joerg for the post:
zyssai (Tue Apr 06, 2021 3:13 am)

zyssai
Posts: 118
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 2Gb
Vu7a+
Has thanked: 38 times
Been thanked: 14 times
Contact:

Re: Way to detect when N2 is starting. Ibeacon?

Post by zyssai »

mad_ady wrote:
Tue Apr 06, 2021 2:11 am
For a car, my suggestion won't work... An alternative might be to have the wifi dongle on the N2 set to AP/tethering mode.
You could use Tasker on your phone to start (and remain in) tethering mode when it's in range of your car. The same automation, running on the N2 can put its wifi in client mode so it connects to your phone.
Thanks you for your suggestion, i already tried this, tasker start N2 AP at start-up, and when tasker app of smartphone detect the N2 AP, then it launches the smartphone AP.
But sometime it works, sometime it doesn't, or few minutes after...

It's not as stable as i need

zyssai
Posts: 118
Joined: Wed Jan 27, 2021 6:42 pm
languages_spoken: english, french
ODROIDs: Odroid N2+ 2Gb
Vu7a+
Has thanked: 38 times
Been thanked: 14 times
Contact:

Re: Way to detect when N2 is starting. Ibeacon?

Post by zyssai »

I update this post, i have bought this beacon:

Image

Image

https://a.aliexpress.com/_vt0Vuf

And it works perfectly. Smartphone Macrodroid app detects beacon when power on and off.
Just long delay when power off, i need to check if there is battery inside.

Let see video i taked:
https://youtu.be/K9Si-avPY1U

And again, sorry for bad english, i'm french
These users thanked the author zyssai for the post:
odroid (Mon Apr 19, 2021 9:37 am)

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 2 guests