Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Kura Driver
Kura Driver [message #1805509] Tue, 16 April 2019 13:29 Go to next message
Stefano Cuscuna is currently offline Stefano CuscunaFriend
Messages: 5
Registered: April 2019
Junior Member
Hi guys, I have develop a driver but when I setted the channel records in READ_WRITE way the List of channel records went in the read method and I want that the driver call the write method.

Can you help me?
Re: Kura Driver [message #1805521 is a reply to message #1805509] Tue, 16 April 2019 16:01 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
sorry, could you please detail better your issue?

Thanks.

Best regards,
Matteo
Re: Kura Driver [message #1805546 is a reply to message #1805521] Wed, 17 April 2019 07:26 Go to previous messageGo to next message
Stefano Cuscuna is currently offline Stefano CuscunaFriend
Messages: 5
Registered: April 2019
Junior Member
I try.
I followed more or less the same procedure as the opc-ua driver.
In the main class I implemented the driver and ConfigurableComponent interfaces.
I created the ChannelDescriptor based on what I need to use.
In the driver class I inserted some logs in the read and write methods.
On kura, I create a channel and set it in read_write mode. I expect the logger to print the write part to me, but instead I print the one related to the read.

public final class Eu63Driver implements Driver, ConfigurableComponent {

    @Override
    public void read(List<ChannelRecord> records) throws 
    ConnectionException {
		logger.info("READ");
    }

    @Override
    public void write(List<ChannelRecord> records) throws 
    ConnectionException {
		logger.info("WRITE");
   }
}


I entered the parts of the class I told you about.
I think something is missing because opcua instead does it.
  • Attachment: Capture.JPG
    (Size: 18.87KB, Downloaded 76 times)
Re: Kura Driver [message #1805561 is a reply to message #1805546] Wed, 17 April 2019 12:48 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
The write operation is performed only if the request that triggers the asset is associated with a metric that has the same name and type of the channel defined in the asset.

Best regards,
Matteo
Re: Kura Driver [message #1805576 is a reply to message #1805561] Wed, 17 April 2019 15:09 Go to previous messageGo to next message
Stefano Cuscuna is currently offline Stefano CuscunaFriend
Messages: 5
Registered: April 2019
Junior Member
Yes I did, but it only works in the case where I put the channel-1 in WRITE mode, but if I set it in read_write mode it won't work.
Re: Kura Driver [message #1805639 is a reply to message #1805576] Fri, 19 April 2019 10:20 Go to previous message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
That is strange.
Could you please compare your code with existing Driver implementations?

Best regards,
Matteo
Previous Topic:Unable to update kura build's minor version
Next Topic:How to downgrade an installed library version in linux
Goto Forum:
  


Current Time: Wed Apr 24 21:10:58 GMT 2024

Powered by FUDForum. Page generated in 0.03459 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top