HDL Buspro gateway integration with LM5 - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10) +--- Thread: HDL Buspro gateway integration with LM5 (/showthread.php?tid=4580) |
HDL Buspro gateway integration with LM5 - richard7 - 14.02.2023 Dear Admin, I found the gateway example for HDL Buspro product.https://openrb.com/example-hdl-integration-with-knx-through-lm2/ I am not sure if LM5 can use this script as a tool to connect the HDL product "HDL-MHRCU.433". Or some modifications need to be taken for this script? And I can't find out related "Add the following script in Scripting -> Tools -> User function library" More details about this product" HDL-MHRCU.433 ", please refer to the PDF attachment .
HDL Buspro_Home Control Unit.pdf (Size: 589.44 KB / Downloads: 13)
Thank you very much for your time. Best regards. RE: HDL Buspro gateway integration with LM5 - admin - 14.02.2023 It should work unless HDL changed their protocol. The script is slightly outdated, this line: Code: require('crc16') Code: crc16 = require('encdec').crc16 RE: HDL Buspro gateway integration with LM5 - richard7 - 14.02.2023 (14.02.2023, 07:53)admin Wrote: It should work unless HDL changed their protocol. Dear Admin, Thanks a lot. I will test it later. RE: HDL Buspro gateway integration with LM5 - richard7 - 23.02.2023 Dear Admin, I have tested the script for several times, but still no response from HDL side. I am not sure if I put the script at the right way and right place---"Add the following script in Scripting -> Tools -> User function library", more details, please refer to picture. I use HDL buspro tool to search or scan devices, but I can't find the Device ID for LM5 is 254. ID 254 is default for LM5? Thanks! Richard RE: HDL Buspro gateway integration with LM5 - admin - 23.02.2023 LM won't be visible as a device on the HDL network. The example only allows to control HDL channels from scripts. RE: HDL Buspro gateway integration with LM5 - richard7 - 24.10.2023 Dear Admin, I tried again to use LM5 to send switch on/off signal to HDL IP unit (IP Add.=192.168.1.37, Subnet=1 Device=0). The HDL device (Subnet=1 Device=61) is 8 channels switch module, which also connects to HDL IP unit. The script user.hdl is copied from example(openrb.com) , and "require('crc16')" is replaced by "crc16 = require('encdec').crc16" The event-based script also set up according to example(openrb.com) . 14/0/220 is created to test the script. When I turn on 14/0/220, the following error happens User library hdl:30: bad argument #1 to 'pdecode' (expected 1 argument) stack traceback: [C]: in function 'pdecode' User library hdl:30: in function 'init' User library hdl:99: in function 'encode' User library hdl:137: in function 'chanreg' I don't know what is the root cause and how to slove this problem. RE: HDL Buspro gateway integration with LM5 - admin - 25.10.2023 Try this updated library. Let us know if it works so we can update the example on our website. Code: local socket = require('socket') RE: HDL Buspro gateway integration with LM5 - richard7 - 25.10.2023 Dear Admin, Excellent!!! Problem is solved with this script! Thanks a lot! Richard |