Logic Machine Forum
BACNET Client NOT working on current LM Version - 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: BACNET Client NOT working on current LM Version (/showthread.php?tid=3474)



BACNET Client NOT working on current LM Version - kike - 15.07.2021

Hi, 

When I try to use bacnet in LM firmware 20200727 with verion of bacnet'package :
 



in this resident script:


require('bacnet')
---------------------------------------------------------------------------------------
dirbacnet = 9613
---------------------------------------------------------------------------------------

 
  datoleido = bacnet.readvalue(dirbacnet, 'analog value', 93792)


grp.write('32/1/1', datoleido)

log(datoleido)



there is an error:

---------------------------------------------------------

Resident script:1: module 'bacnet' not found:
no field package.preload['bacnet']
no file './bacnet'
no file 'Library bacnet'
no file 'Library bacnet'
no file 'Library bacnet.so'
stack traceback:
[C]: in function 'require'

---------------------------------------------------------

any suggestion?

thacnk you in advandce!


RE: BACNET Client NOT working on current LM Version - Daniel - 15.07.2021

Install RC1 2021 and check again.


RE: BACNET Client NOT working on current LM Version - admin - 15.07.2021

You need to install this package: https://dl.openrb.com/lm-21-imx6/pkg/genohm-scada-bacnet_20210506_imx6.ipk


RE: BACNET Client NOT working on current LM Version - kike - 15.07.2021

(15.07.2021, 13:15)admin Wrote: You need to install this package: https://dl.openrb.com/lm-21-imx6/pkg/genohm-scada-bacnet_20210506_imx6.ipk

Thanks for your awnser!

That's what I thought. But it was quite strange that the requiered package was already installed. I use this same method in several instalations with LM and all of then are working fine!
When I Install the scada bacnet this happen (only in new firmwares ... and if you try to set and older firmware the problem is still there ... it's like if something went corrupt):
The scan is OK and there are readings!!
(see capture1)

but then, when I try to access that analog value with :

require('bacnet')
---------------------------------------------------------------------------------------
dirbacnet = 9613
---------------------------------------------------------------------------------------


  datoleido = bacnet.readvalue(dirbacnet, 'analog value', 93792)


grp.write('32/1/1', datoleido)

log(datoleido)

This is the LOG:
(see capture1)

I can't not read that value! (I tried several combination of firmares and scada-bacnet packages) ... And I know that this in older version works fine ...
any suggestions?

Thanks!!

(15.07.2021, 13:12)Daniel. Wrote: Install RC1 2021 and check again.

I tried that also ... no success.

Thanks!


RE: BACNET Client NOT working on current LM Version - Daniel - 15.07.2021

Seems this is analog input not analog value,


RE: BACNET Client NOT working on current LM Version - kike - 16.07.2021

(15.07.2021, 14:05)Daniel. Wrote: Seems this is analog input not analog value,

You were right!!

I change to analog input and works flawlees!

I followed this tutorial

https://openrb.com/logicmachine-as-bacnet-client/

it would be great to add this commands to that post!

Thanks a lot!


RE: BACNET Client NOT working on current LM Version - domotiqa - 26.11.2021

Hi,
I tried to install the bacnet package ipk above on LM 2.6.2 (with install from file, I checked the checkbox of signature - allow to install package without signature).
I have a message "action failed, please try again later)

but I can see the module installed in the list but I don't have the tab on configurator and can't use bacnet library in script.
Do you have idea ?


RE: BACNET Client NOT working on current LM Version - Daniel - 26.11.2021

There is no such thing like LM 2.6.2 Smile
You can't install custom packages on SE devices. This what you used is for app only not packages.


RE: BACNET Client NOT working on current LM Version - domotiqa - 26.11.2021

(26.11.2021, 15:51)Daniel Wrote: There is no such thing like LM 2.6.2 Smile
You can't install custom packages on SE devices.  This what you used is for app only not packages.

ok... no way to add the bacnet library ? Cause I need communication for multistet value and... not on bacnet app from SE, sad... I can't control On/off/slow/high speed of a customer airunit




---


I successfull add the bacnet lib, but error:


value = bacnet.read(17, 'multi-state input', 592, 'present value')

I have a  "string: Error: APDU Timeout!" error
And on the bacnet tab in config, when scan it says it can't because the server bacnet is running. but I checked in the system option it's disabled ...
looks like there is interference with the SE bacnet  app