This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

BACNET Client NOT working on current LM Version
#1
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!
Reply
#2
Install RC1 2021 and check again.
------------------------------
Ctrl+F5
Reply
#3
You need to install this package: https://dl.openrb.com/lm-21-imx6/pkg/gen...6_imx6.ipk
Reply
#4
(15.07.2021, 13:15)admin Wrote: You need to install this package: https://dl.openrb.com/lm-21-imx6/pkg/gen...6_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!

Attached Files Thumbnail(s)
       
Reply
#5
Seems this is analog input not analog value,
------------------------------
Ctrl+F5
Reply
#6
(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!
Reply


Forum Jump: