Uploaded image for project: 'Apache PLC4X'
  1. Apache PLC4X
  2. PLC4X-299

Modbus - Kafka Connect Configuration

    XMLWordPrintableJSON

Details

    Description

      I am having problems ingesting data from Modbus using kafka. Following the official documentation, to read a register from Modbus:

       

      holding-register:12289[10]
      

       

      But when I tried to implement this in the job of kafka-connector properties I can't ingest any data into the kafka-topic. This is the configuration: 

      jobs.modbus-heartbeat.fields=Analog
      jobs.modbus-heartbeat.fields.Analog=holding-register:12289:REAL[8]
      

       It works configuring separately, following the next code:

       

      jobs.modbus-heartbeat.fields=Analog0,Analog1,Analog2,Analog3,Analog4,Analog5,Analog6,Analog7
      
      jobs.modbus-heartbeat.fields.Analog0=holding-register:12289:REAL
      jobs.modbus-heartbeat.fields.Analog1=holding-register:12293:REAL
      jobs.modbus-heartbeat.fields.Analog2=holding-register:12297:REAL
      jobs.modbus-heartbeat.fields.Analog3=holding-register:12301:REAL
      jobs.modbus-heartbeat.fields.Analog4=holding-register:12305:REAL
      jobs.modbus-heartbeat.fields.Analog5=holding-register:12309:REAL
      jobs.modbus-heartbeat.fields.Analog6=holding-register:12313:REAL
      jobs.modbus-heartbeat.fields.Analog7=holding-register:12317:REAL
      

       

      My question is if there is some way to read an array from the configuration of kafka-connect, like:

      jobs.modbus-heartbeat.fields=Analog
      jobs.modbus-heartbeat.fields.Analog=holding-register:12289:REAL[8]
      

       If you could send an example of this I really appreciated, I find the documentation a bit sparse.

       

      Attachments

        Issue Links

          Activity

            People

              hutcheb Ben Hutcheson
              fdorado Fernando
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0.5h
                  0.5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified