Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [volttron-dev] [EXTERNAL] Re: Custom Controller Agent Causes Modbus Read Error
  • From: "Thompson, Joe" <jthompson@xxxxxxxx>
  • Date: Fri, 23 Feb 2024 16:42:13 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epri.com; dmarc=pass action=none header.from=epri.com; dkim=pass header.d=epri.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fLBf36at6ijHVpoN1jJT9YNXdBtoSe+g6odovF2nWBM=; b=CWjkM/fAfdvehuL9ZT5fqV358veLFR88Q8MgH47RlukvdZj0aIrEkEykbZQEv/VEXaS4iGbk6q2gqF6bL0eftkCVeA0/mzCA8fI72kRpuGLoqDYTJHGQFDN8HZ7osKLEro/W77GfrSJacv9keQsoCBhT/Rp00mI01b/e8p7piiAs0A7nq4o0G1ahSRLbFXeuWOcEA7HcyyKh9xqU8eN6fSRAe1ND2dPRHL1lkrVhD3+A16luX9TOs9/FK9FfHA9kUUKuoOD2K4ICwtBirK07+oUQCIxDagbx8wTmcpzWq4mxKf2CuUCKcpVgAkvQd/QVZgrDqOd8q10z8Z+h7JvrKA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ao3UlExdnWIRrzH/M5ec+dP0N4yzAtrzjW1yaYRnXiQYaBIQccPhQveePdH7732WJVWCZT6fyVxlaLKd6AQ4GGVD229+l/23HEA5mlKFDkwAZ1HpE5CBf1AFELWEpkjD0MIaFugieU93QfYFSrAze7zGux70Gm2rsXXSjYXFReyMkY2Y+wZqDXUhAkJKwk2ovFJKoz3dWWTvt0keI5HafW+O/ooaScj+bc/OEA5tcscEZS65LL5ns83xJh0XLL08IUmvISMH4AvKr3tt2XEfryNYX5whayj1I2NVGQ81sbwpUZ+pnmYxPzenoCc4195g1UIrhd5tPCMnwhuFp55CsQ==
  • Delivered-to: volttron-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/volttron-dev/>
  • List-help: <mailto:volttron-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/volttron-dev>, <mailto:volttron-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/volttron-dev>, <mailto:volttron-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHaZc1PIvu+ISpHc0KaFNOZg90TArEW/74AgADPVoA=
  • Thread-topic: [EXTERNAL] Re: [volttron-dev] Custom Controller Agent Causes Modbus Read Error

Hi Bora,

 

Thanks for the response. Unfortunately, I do not really follow your point or know what I should do with this information. I have these 2 devices configured under the platform.driver like this:

 

 

Is this what you mean by “multiplex the controls through the platform driver”?

 

-- Joe

 

 

From: Bora Akyol <fstshrk@xxxxxxxxx>
Date: Thursday, February 22, 2024 at 6:20 PM
To: volttron developer discussions <volttron-dev@xxxxxxxxxxx>
Cc: "Thompson, Joe" <jthompson@xxxxxxxx>
Subject: [EXTERNAL] Re: [volttron-dev] Custom Controller Agent Causes Modbus Read Error

 

Your modbus devices do not support multiple modbus primaries. You need to multiplex the controls through the platform driver. There is no reason to have two modbus primaries On Thu, Feb 22, 2024, 12: 25 PM Thompson, Joe via volttron-dev <volttron-dev@ eclipse. org>

Your modbus devices do not support multiple modbus primaries. 

 

You need to multiplex the controls through the platform driver. There is no reason to have two modbus primaries 

 

On Thu, Feb 22, 2024, 12:25 PM Thompson, Joe via volttron-dev <volttron-dev@xxxxxxxxxxx> wrote:

Hello Volttron Team,

 

Background:

I am using Volttron 8.1.3 on a Raspberry Pi to coordinate the operation / testing of 2 devices over Modbus:

  1. An energy storage system with a BMS that Volttron’s platform.driver communicates with over modbus
  2. An inverter that also communicates with Volttron’s platform.driver via modbus

 

Using the Listener Agent I can see that the platform.driver is reading all of my modbus points perfectly every 5 seconds (see the attached volttron_Without_Controller.log).

 

I have a simple custom agent, enervenue_ctrlagent (see the “agent.txt” file, changed from “agent.py” for attaching), that is subscribed to the "devices/STAC/EnervenueBMS" topic and runs a simple read from the battery, decide what to do, and write to the inverter loop every 5 seconds when new "devices/STAC/EnervenueBMS" data comes in. The writing is just to a single “Output Power Command” register on the inverter.

 

The Problem:

When enervenue_ctrlagent is installed and started, modbus reads of the inverter begin to fail. The controller’s attempts to write power setpoints are successful, but I start to receive this modbus_tk error (see the attached volttron_With_Controller.log):

 

 

 

Expected Behavior:

I was expecting that my controller agent should be able to run in tandem with the platform agent with no conflicts between reading and writing, but something funny is happening that I don’t understand.

 

Any and all help is greatly appreciated!

 

Joe Thompson

Engineer / Scientist

Electric Power Research Institute

Energy Storage and Distributed Generation

(912) 663-3407

 

*** This email message is for the sole use of the intended recipient(s) and may contain information that is confidential, privileged or exempt from disclosure under applicable law. Unless otherwise expressed in this message by the sender or except as may be allowed by separate written agreement between EPRI and recipient or recipient’s employer, any review, use, distribution or disclosure by others of this message is prohibited and this message is not intended to be an electronic signature, instrument or anything that may form a legally binding agreement with EPRI. If you are not the intended recipient, please contact the sender by reply email and permanently delete all copies of this message. Please be advised that the message and its contents may be disclosed, accessed and reviewed by the sender's email system administrator and/or provider. ***

_______________________________________________
volttron-dev mailing list
volttron-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/volttron-dev [eclipse.org]


Back to the top