Flic Ultibo

General discussion about anything related to Ultibo.
User avatar
Jyv
Posts: 153
Joined: Mon Feb 08, 2016 1:30 pm

Flic Ultibo

Postby Jyv » Fri Jun 15, 2018 4:30 pm

@Moderator: Feel free to moderate this message if you think it is not appropriate on this forum.

This message is a teaser to raise attention about opportunity to replace the Flic Hub device with Ultibo on a standard RPi (with BLE support) acting as a BLE bridge between the Flic Buttons and the Internet.
I have received the long awaited Flic Hub and Flic buttons to tinker with those gadgets (Indiegogo campaign has been delayed over 5 months from initial deadline, which is common case when you backup innovative projects),
Official websitelink: https://flic.io/introducing-flic-hub/
To configure the Flic Hub it requires to have an Android phone and then through the Android application on the phone you can configure the Flic buttons registered in the Flic Hub,
The idea is to be able to configure the pairing of the Flic buttons with Ultibo running on RPi,
Flic button have 3 possible actions : Click, DoubleClick and Hold.
For each of these action, I guess there would be a specific BLE message sent from the Flic button over the BLE connection once paired with the Flic UltiboRPi (instead of the actual FlicHub),
The idea is to be able to receive in Ultibo the BLE message (with the specific ButtonID) and process this message in order to implement custom action such as triggering an http request to invoke a URL on a web server.
The Flic Ultibo would serve as a customizable bridge between the button and the internet.
This thread would serve as an open discussion for anyone willing to bring on the table their opinion on the possibility to use existing BLE dash buttons like the Flic Button with Ultibo, offering to Ultibo programmers an easy way to write custom actions in response to Flic Button action.
mark
Posts: 1242
Joined: Mon Oct 03, 2016 2:12 am
Location: Indianapolis, US

Re: Flic Ultibo

Postby mark » Fri Jun 15, 2018 4:45 pm

Jyv wrote:@Moderator: Feel free to moderate this message if you think it is not appropriate on this forum.

This message is a teaser to raise attention about opportunity to replace the Flic Hub device with Ultibo on a standard RPi (with BLE support) acting as a BLE bridge between the Flic Buttons and the Internet.
I have received the long awaited Flic Hub and Flic buttons to tinker with those gadgets (Indiegogo campaign has been delayed over 5 months from initial deadline, which is common case when you backup innovative projects),
Official websitelink: https://flic.io/introducing-flic-hub/
To configure the Flic Hub it requires to have an Android phone and then through the Android application on the phone you can configure the Flic buttons registered in the Flic Hub,
The idea is to be able to configure the pairing of the Flic buttons with Ultibo running on RPi,
Flic button have 3 possible actions : Click, DoubleClick and Hold.
For each of these action, I guess there would be a specific BLE message sent from the Flic button over the BLE connection once paired with the Flic UltiboRPi (instead of the actual FlicHub),
The idea is to be able to receive in Ultibo the BLE message (with the specific ButtonID) and process this message in order to implement custom action such as triggering an http request to invoke a URL on a web server.
The Flic Ultibo would serve as a customizable bridge between the button and the internet.
This thread would serve as an open discussion for anyone willing to bring on the table their opinion on the possibility to use existing BLE dash buttons like the Flic Button with Ultibo, offering to Ultibo programmers an easy way to write custom actions in response to Flic Button action.


Well, since you have flic buttons in hand, I think we should see how far we can get with them. I've started looking at the flic github repos. So far no road blocks that I can see.

What other button devices do folks have that we can explore?

Cheers,
Mark
Ultibo - The Internet of Things that Just Work
mark
Posts: 1242
Joined: Mon Oct 03, 2016 2:12 am
Location: Indianapolis, US

Re: Flic Ultibo

Postby mark » Fri Aug 03, 2018 8:21 pm

mark wrote:Well, since you have flic buttons in hand, I think we should see how far we can get with them. I've started looking at the flic github repos. So far no road blocks that I can see.

I expect to have flic equipment in hand next week. Looking forward to it. Mark.
Ultibo - The Internet of Things that Just Work
mark
Posts: 1242
Joined: Mon Oct 03, 2016 2:12 am
Location: Indianapolis, US

Re: Flic Ultibo

Postby mark » Fri Aug 10, 2018 6:09 pm

mark wrote:
mark wrote:Well, since you have flic buttons in hand, I think we should see how far we can get with them. I've started looking at the flic github repos. So far no road blocks that I can see.

I expect to have flic equipment in hand next week. Looking forward to it. Mark.


Discovered that I can use fpc/raspbian with the ble uart to help with testing. Next Tuesday when I'm back in the office I will connect a flic button. Mark.
Ultibo - The Internet of Things that Just Work
mark
Posts: 1242
Joined: Mon Oct 03, 2016 2:12 am
Location: Indianapolis, US

Re: Flic Ultibo

Postby mark » Wed Aug 15, 2018 2:35 am

mark wrote:
mark wrote:
mark wrote:Well, since you have flic buttons in hand, I think we should see how far we can get with them. I've started looking at the flic github repos. So far no road blocks that I can see.

I expect to have flic equipment in hand next week. Looking forward to it. Mark.


Discovered that I can use fpc/raspbian with the ble uart to help with testing. Next Tuesday when I'm back in the office I will connect a flic button. Mark.

Ok, I connected my flic button to a phone using the flic phone app, and I also connceted it to the flicd raspbian app from https://github.com/50ButtonsEach/fliclib-linux-hci

The ultibo program can see the flic button advertise itself when it is pressed. I don't yet know if I can get ultibo to connect to the button to receive click/double click/hold evernts. I will start trying that tomorrow. Mark.
Ultibo - The Internet of Things that Just Work
mark
Posts: 1242
Joined: Mon Oct 03, 2016 2:12 am
Location: Indianapolis, US

Re: Flic Ultibo

Postby mark » Thu Aug 16, 2018 6:04 pm

https://github.com/50ButtonsEach/fliclib-linux-hci

1. This provides a flicd binary that runs on linux, in particular raspbian. It provides a socket interface to the buttons (it encapsulates the ble/hci/uart interface). It can be used freely but not reverse-engineered to get its source (flicd license.) See also issue 13 - for the record, I find the comments regarding making money versus open source to be a bit harsh.

2. Besides providing an operational interface to the buttons, there is something about flicd accessing the internet in order to register and unlock each button (issue 61.)

I will continue studying these two points when I'm back in the office on Monday. Regards, Mark.
Ultibo - The Internet of Things that Just Work
User avatar
Jyv
Posts: 153
Joined: Mon Feb 08, 2016 1:30 pm

Re: Flic Ultibo

Postby Jyv » Fri Aug 17, 2018 9:18 am

2. there is something about flicd accessing the internet in order to register and unlock each button (issue 61.)

This issue (I call it limitation) of this WebButton is OK as long as the workaround is to configure the WebButton once and for all while connected to their infrastructure,
and then be able to hack the pairing information of the Bluetooth connection directly from Ultibo.
This is an interesting limitation that may be useful for other WebButtons vendors.

It can be used freely but not reverse-engineered to get its source

This is all about OpenSourcing proprietary protocols by hacking on devices and then refactor it in embedded stacks for custom integration.
Note: Proprietary not to be confused with patented.
Note: Working at protocol level is not reverse engineering binary source code.

This work will be useful for better learning the process of pairing random Bluetooth WebButtons with appliance.
mark
Posts: 1242
Joined: Mon Oct 03, 2016 2:12 am
Location: Indianapolis, US

Re: Flic Ultibo

Postby mark » Thu Aug 23, 2018 11:20 am

Still experimenting with the button and flicd to understand the flic architecture as it stands.. I may write a small program that connects to flicd to use as a refernce point. Mark.
Ultibo - The Internet of Things that Just Work
mark
Posts: 1242
Joined: Mon Oct 03, 2016 2:12 am
Location: Indianapolis, US

Re: Flic Ultibo

Postby mark » Thu Sep 06, 2018 6:19 am

Well, we can't capture the flic messages because they are only sent within a connection that has been authenticated by the phone app or flicd or the flic hub. So getting flic buttons to work with ultibo (alone) is a dead end.

The following ble buttons don't seem to have an accessible ble api:

https://www.logitech.com/en-us/product/pop-smart-button
https://www.gobutton.io/
https://evehome.com
https://www.fibaro.com/us/products/the-button/

I'm now looking at
https://qblinks.com/
https://www.myniu.fr/en/

Mark
Ultibo - The Internet of Things that Just Work
mark
Posts: 1242
Joined: Mon Oct 03, 2016 2:12 am
Location: Indianapolis, US

Re: Flic Ultibo

Postby mark » Sat Sep 08, 2018 7:01 pm

mark wrote:Well, we can't capture the flic messages because they are only sent within a connection that has been authenticated by the phone app or flicd or the flic hub. So getting flic buttons to work with ultibo (alone) is a dead end.

The following ble buttons don't seem to have an accessible ble api:

https://www.logitech.com/en-us/product/pop-smart-button
https://www.gobutton.io/
https://evehome.com
https://www.fibaro.com/us/products/the-button/

I'm now looking at
https://qblinks.com/
https://www.myniu.fr/en/

Mark

https://qblinks.com - Qmote S - seems accessible https://qblinks.com/uploads/ckeditor/at ... _v1.41.pdf
but I don't find any for purchase.
Ultibo - The Internet of Things that Just Work

Return to “Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests