GitHub user chrisdutz added a comment to the discussion: Some questions about 
developing new protocols

For problem 1 multiple things need to happen for your driver to show up.

1.  You need to have a resource some in (I think) META-INF/services that lists 
your driver class
2. The driver class needs to implement the Drivers interface
3. You need to have your driver on the applications classpath (add a dependency 
to it)

Regarding question 2 I usually make a capture of a working solution using the 
protocol and then use @sruehl s tool to convert that into a parser-serializer 
test xml and firstly make sure that passes.

Then I take the snippets of this parser serializer test and build a driver test 
xml (IT - Integration test) and start implementing the driver logic. In 
parallel I create a manual test, that runs the driver at some real hardware 
that I've setup with dedicated test data (so I can compare my test results with 
expected values).

Just have a look at some of the existing stuff for other protocols.
However... The tests are in the driver implementation modules, the test xml are 
in the protocol modules, as they are multi-language.

Hope that helps

GitHub link: 
https://github.com/apache/plc4x/discussions/1983#discussioncomment-11912043

----
This is an automatically sent email for dev@plc4x.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@plc4x.apache.org

Reply via email to