Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

masters driver agent gave error message when storing Bacnet registry file with COV #2484

Open
tpktang opened this issue Oct 8, 2020 · 0 comments

Comments

@tpktang
Copy link

tpktang commented Oct 8, 2020

when I run the command:

vcdl config store platform.driver <csv file name in config> <real file name> --csv

I got this error.

__ DEBUG: Sending WhoIs: low_id: 250 high: 250 address: 10.10.0.250/22
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR: Traceback (most recent call last):
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR:   File "src/gevent/greenlet.py", line 854, in gevent._gevent_cgreenlet.Greenlet.run
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR:   File "/home/alto/.volttron/agents/56334b84-93a1-4053-98c4-7e3131dd3184/master_driveragent-4.0/master_driver/driver.py", line 166, in starting
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR:     self.setup_device()
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR:   File "/home/alto/.volttron/agents/56334b84-93a1-4053-98c4-7e3131dd3184/master_driveragent-4.0/master_driver/driver.py", line 189, in setup_device
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR:     self.interface = self.get_interface(driver_type, driver_config, registry_config)
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR:   File "/home/alto/.volttron/agents/56334b84-93a1-4053-98c4-7e3131dd3184/master_driveragent-4.0/master_driver/driver.py", line 161, in get_interface
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR:     interface.configure(config_dict, config_string)
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR:   File "/home/alto/.volttron/agents/56334b84-93a1-4053-98c4-7e3131dd3184/master_driveragent-4.0/master_driver/interfaces/bacnet.py", line 91, in configure
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR:     self.establish_cov_subscription(point_name, self.cov_lifetime, True)
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR:   File "/home/alto/.volttron/agents/56334b84-93a1-4053-98c4-7e3131dd3184/master_driveragent-4.0/master_driver/interfaces/bacnet.py", line 270, in establish_cov_subscription
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR:     _log.debug(f"device_path in establish cov sub:{self.device_path}")
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR: AttributeError: 'Interface' object has no attribute 'device_path'
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR: 2020-10-08T07:18:58Z <Greenlet at 0x7f1a850e6bf0: <bound method DriverAgent.starting of <master_driver.driver.DriverAgent object at 0x7f1a870cb550>>(<volttron.platform.vip.agent.core.BasicCore object)> failed with AttributeError
Oct  8 14:19:00 mintel run-volttron[804]: 2020-10-08 14:19:00,002 (master_driveragent-4.0 71541) <stderr> ERROR:

Do I need to edit the ini.py file in the MasterDriverAgent/masterdriver/interfaces ? by adding self.device_path

    def __init__(self, vip=None, core=None,device_path=None, **kwargs):
        # Object does not take any arguments to the init.
        super(BaseInterface, self).__init__()
        self.vip = vip
        self.core = core
        self.device_path = device_path

        self.point_map = {}
        
        self.build_register_map()
        

this one is the original one

    def __init__(self, vip=None, core=None, **kwargs):
        # Object does not take any arguments to the init.
        super(BaseInterface, self).__init__()
        self.vip = vip
        self.core = core

        self.point_map = {}
        
        self.build_register_map()
        
@tpktang tpktang changed the title masters driver agent when storing Bacnet registry file with COV masters driver agent gave error message when storing Bacnet registry file with COV Oct 8, 2020
@bonicim bonicim self-assigned this Apr 14, 2021
@bonicim bonicim removed their assignment Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants