50ButtonsEach / fliclib-linux-hci

Flic SDK for Linux
307 stars 53 forks source link

running on Synology 415play #20

Open klappenbach opened 8 years ago

klappenbach commented 8 years ago

Hi, I've been trying to run on my Synology 415play. I'm not sure if that platform is supported? admin@DS415play:~$ uname -mrs Linux 3.2.40 i686

When I try to run it: admin@DS415play:/volume1/homes/gabriel/fliclib-linux-hci$ ./bin/x86_64/flicd -f flic.sqlite3 -sh: ./bin/x86_64/flicd: cannot execute binary file: Exec format error

If not supported, is there any change you could add binaries that work on this platform?

Emill commented 8 years ago

I thought everybody ran 64 bit nowadays. We can add 32 bit support.

Emill commented 8 years ago

But you will still need Linux 3.13 at least. Any chance you can upgrade?

klappenbach commented 8 years ago

I'm not sure it's possible to upgrade linux version, since this is Synology disk station, which runs Synology Diskstation Manager (their os). Does this project require linux 3.13 or higher, specifically? Is there any package which I could install to cover that dependency?

Emill commented 8 years ago

It's the _HCI_CHANNELUSER feature in the Linux kernel that is needed. It's not possible to add just a package to solve that. I might get it to work with the old legacy HCI_CHANNEL_RAW for older kernels if there is request.

klappenbach commented 8 years ago

I would like to request that, so I can control my flic buttons from my media server :) They control my smart home, and having to use an expensive phone for this is not ideal.

klappenbach commented 8 years ago

Do you want me to create issues for 32-bit and for legacy HCI_CHANNEL?

obarlev commented 8 years ago

I'm having the same issue. Tried to execute it on Intel Galileo board which runs Linux 7 32 bits and got: "cannot execute binary file: Exec format error" Any chance for adding a support for Linux 32bit ?

Emill commented 8 years ago

I've added a i386 version. Could you try that?

obarlev commented 8 years ago

Thanks for your quick response!!! the executable runs, I'll let you know how it works

klappenbach commented 8 years ago

@Emill what about getting it to work with the old legacy HCI_CHANNEL_RAW, so that I can run this on my Synology as I requested above? :)

Emill commented 8 years ago

I did experiment with it a bit before but it became kind of unstable because the kernel often sent a lot of stuff, interfering with the flic deamon. Maybe you can try our bluez library?

klappenbach commented 8 years ago

But is that stable? That is the library you guys abandoned for this new one, right? I'm running my flics on an android phone, but would rather run it on a box of course. But then it should be stable, otherwise it's not worth it.

Emill commented 8 years ago

Correct. It sometimes behaves strange when you try to set up your connection, but once you have got your flic connected it usually continues to work without problems.

rngtng commented 6 years ago

Hey I just tried flicd on my Synology DS215j. what does hci0 does not exist mean? Is it synology related?

> uname -a
Linux foobar 3.2.40 #22259 SMP Mon Oct 2 02:39:22 CST 2017 armv7l GNU/Linux synology_armada375_ds215j
> ./flicd -f sqlite_db_file.db
./flicd: /lib/libstdc++.so.6: no version information available (required by ./flicd)
./flicd: /lib/libstdc++.so.6: no version information available (required by ./flicd)
./flicd: /lib/libstdc++.so.6: no version information available (required by ./flicd)
./flicd: /lib/libstdc++.so.6: no version information available (required by ./flicd)
Available HCI devices found:
hci0

Trying hci0
hci0 does not exist
Emill commented 6 years ago

Hi. It means there is no Bluetooth adapter plugged in.

rngtng commented 6 years ago

well, it is + I can scan for surrounded devices :( @gabbah did you get it running on your Synology?