• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Manage Digital Input/Output of unipi neuron m103

    Scheduled Pinned Locked Moved Evok API
    2 Posts 2 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      DSurname
      last edited by DSurname

      Hi, i want to switch on a light in digital output 1.1. How can I do it?
      I'm using nodejs server over modbus-rtu.

      My settings are:

      this.client.connectRTUBuffered(Configuration.modbus.port, {
                      baudRate: 38400,
                      dataBits: 8,
                      parity: 'none',
                      stopBits: 1
                  }, async () => {
                      this._logger.info('Modbus: connected!');
                      resolve();
       });
      

      Normally via rtu if I need to query a slave I just put slaveId and the register. But if I need to query slaveId of unipi and query the register of digital output how can i manage this?

      I Try with:

      this.client.setId(15) // Default address of Unipi??
      this.client.writeRegister(1,1) // Registers from group 1
      

      But nothing happens, can you help me? I can just use gpio?
      I have installed evok too, if can help

      1 Reply Last reply
      Reply Quote 0
      • Martin KudláčekM
        Martin Kudláček
        last edited by

        Hi @DSurname ,
        if I understand it correctly, you are running your application on the M103 and you want to control the inputs/outputs on the M103? In that case, you cannot (or shouldn't) use ModbusRTU, because there is no Modbus Slave (Server) running on the M103 by default. To access those inputs/outputs, you can use many of the supported interfaces described in the official documentation: https://evok.api-docs.io/1.0/jKcTKe5aRBCNjt8Az/introduction

        Martin

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post