Hi, I would like to know with what version of the logic machine I can work this example...
http://openrb.com/bluetooth-presence-detection-and-rssi
Thanks.
http://openrb.com/bluetooth-presence-detection-and-rssi
Thanks.
![Smile Smile](https://forum.logicmachine.net/images/smilies/smile.png)
Bluetooth
|
Hi, I would like to know with what version of the logic machine I can work this example...
http://openrb.com/bluetooth-presence-detection-and-rssi Thanks. ![]()
07.04.2017, 14:47
It works over USB so any LM can be used, you just need to install extra packages
08.04.2017, 09:41
Hi,
I want to use this also. I have LM5PMU and i do not see the BLE-tab? Does it only show when you plug in a usb device? I was thinking of using the BT820 or are there better alternatives (longer range?) Thanks, Bart
08.04.2017, 20:48
10.04.2017, 06:43
Thanks Erwin, will give it a try.
Bart
10.04.2017, 07:11
You need to install these packages first, the reboot:
libbluetooth luable genohm-scada-ble
11.04.2017, 18:33
(10.04.2017, 07:11)admin Wrote: You need to install these packages first, the reboot: Hi Admin, Tried to install them - none of them installed: error below. Any ideas? Bart unknown package 'libbluetooth'. Collected errors: * pkg_hash_fetch_best_installation_candidate: Packages for libbluetooth found, but incompatible with the architectures configured * opkg_install_cmd: Cannot install package libbluetooth.
11.04.2017, 21:39
(11.04.2017, 18:33)bmodeco Wrote:(10.04.2017, 07:11)admin Wrote: You need to install these packages first, the reboot: They have to be installed in the right sequence, start with libbluetooth then luable lastly genohm-scada-ble But this might not be your issues since none of them installed. Jørn. Best regards, Jørn.
12.04.2017, 06:12
You need packages for newer HW version, you can find them here:
https://dl.openrb.com/lm-17-imx6/pkg/
14.04.2017, 06:17
(12.04.2017, 06:12)admin Wrote: You need packages for newer HW version, you can find them here: Hi Admin, Tried this - it is working now - everything loaded correctly. Some questions i have: - in the BLE-tab no devices show up - I only get devices using your presence detection-script with scan each 5sec (script ble.scan(callback)) Is there a reason why no devices show up in the BLE-tab? Maybe because they are not BLE and only regular bluetooth? Is there a way when scanning to obtain more info: like device info/name, manufacturer, etc... I was surprised about the amount of devices are in my house - a lot of them are impossible to figure out (no way to get the mac-address from Tiles, kitchendevices with bluetooth, etc) so it would be great if i had some more info to be able to identify them (who is who). Br, Bart
14.04.2017, 06:27
Have you rebooted LM after package install? BLE does not have a strict identification protocol - just advertising messages with device MAC and a name.
14.04.2017, 06:50
(14.04.2017, 06:27)admin Wrote: Have you rebooted LM after package install? BLE does not have a strict identification protocol - just advertising messages with device MAC and a name. Hi Admin, I did reboot the LM as requested. I am using for example Tiles to check presence - they advertise all the time. When using your script I can detect them (and other Bluetooth devices) entering/leaving the house but in the BLE-tab of the LM none of them show up. For now I can work with that: your script runs fine, I can check for presence or not. It is strange that they do not show in the BLE-tab. Thanks, Bart
27.06.2017, 13:06
Hi, help, please. I can not connect to the device bluetooth. All packages are installed. With a universal profile the device works, but there is no script.
require('ble') ble.up() sock = ble.sock() ble.settimeout(sock, 30) res = ble.connect(sock, "df:54:50:42:0b:a4") log(res) ble.close(sock)
27.06.2017, 13:30
Try connecting like this:
Code: res = ble.connect(sock, "df:54:50:42:0b:a4", true)
Error code: 115
thanks It works!
27.06.2017, 13:53
Do you have universal profile running in parallel?
07.08.2018, 11:40
(27.06.2017, 13:06)Igor68 Wrote: Hi, help, please. I can not connect to the device bluetooth. All packages are installed. With a universal profile the device works, but there is no script. Where should i put that code? In Common Functions or in Resident script?
07.08.2018, 12:51
Resident script. Never put anything but Lua functions into Common functions, otherwise each script with execute the code you have in Common functions.
|
« Next Oldest | Next Newest »
|