Logic Machine Forum
[OLD] LogicMachine firmware 2017.04 - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: Announcements (https://forum.logicmachine.net/forumdisplay.php?fid=7)
+--- Forum: Software updates (https://forum.logicmachine.net/forumdisplay.php?fid=13)
+--- Thread: [OLD] LogicMachine firmware 2017.04 (/showthread.php?tid=752)

Pages: 1 2 3 4


RE: [PRE-RELEASE] LogicMachine firmware 2017.04 - buuuudzik - 18.05.2017

(05.05.2017, 13:29)admin Wrote: RC2 is planned for next week, we'll prepare FW for LB as well.

How about preparing RC2?


RE: [PRE-RELEASE] LogicMachine firmware 2017.04 - bmodeco - 18.05.2017

(09.05.2017, 10:05)bmodeco Wrote:
(08.05.2017, 08:53)admin Wrote: @bmodeco

Have you tried using the universal profile?
http://openrb.com/bluetooth-presence-detection-and-rssi

Can you post your presence script?

Hi admin,
I am using the script on thread : http://forum.logicmachine.net/showthread.php?tid=379&highlight=presence
It worked fine before RC1. Tried rebooting, unplugging and so on - no difference.
Thanks Bart

Code:
require('ble')

-- enable ble
ble.up()

list = {}

-- mac -> group address mapping
known = {
 ['88:0F:10:10:F2:8A'] = '1/1/1',
 ['88:0F:10:4A:2C:36'] = '1/1/2',
}

ctime = os.time()

function callback(addr)
 local now, delta

 now = os.time()
 delta = now - ctime

 if addr then
   if not list[ addr ] then
     log('BLE found ' .. addr)

     if known[ addr ] then
       grp.write(known[ addr ], true, dt.bool)
     end
   end

   list[ addr ] = now
 end

 -- check for missing devices each 5 seconds
 if delta < 0 or delta > 5 then
   for addr, time in pairs(list) do
     delta = now - time

     if delta < 0 or delta > 60 then
       log('BLE missing ' .. addr)
       list[ addr ] = nil

       if known[ addr ] then
         grp.write(known[ addr ], false, dt.bool)
       end
     end
   end

   ctime = now
 end
end

ble.scan(callback)

Hi admin,
Any idea what is causing this and if this will be fixed in RC2?
Thansk,
Bart


RE: [PRE-RELEASE] LogicMachine firmware 2017.04 - admin - 18.05.2017

I've tested it with RC1 and it works. Maybe you can provide remote access to ports 22 and 80?


RE: [PRE-RELEASE] LogicMachine firmware 2017.04 - admin - 19.05.2017

There's a slight delay with RC2, it's coming next week.


RE: [PRE-RELEASE] LogicMachine firmware 2017.04 - bmodeco - 19.05.2017

(18.05.2017, 14:55)admin Wrote: I've tested it with RC1 and it works. Maybe you can provide remote access to ports 22 and 80?

Is there a specific startup-order: startup lm first then plug-in usb-dongle? or does it not matter?


RE: [PRE-RELEASE] LogicMachine firmware 2017.04 - admin - 19.05.2017

Script will fail if it starts before any BLE interface is present