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

    RS485 of the Neuron

    UniPi Neuron Series
    2
    5
    2962
    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.
    • Bill Lee
      Bill Lee last edited by

      Hi

      1. I am programmer with B4J/Pi4J. I know, Every Neuron has one RS-485 port. Could i write my protocol to connecting other device !?

      2. Pi4J support I2C and SPI. Could I write Java app control neuron directly(I don't want to use your Evok API) ?

      Bye

      1 Reply Last reply Reply Quote 0
      • T
        tomas_hora administrators last edited by

        Hi,

        for better understanding, see this picture:
        0_1482831491956_NeuronExplanation@2x (1).png

        This repository https://github.com/UniPiTechnology/neuron_tcp_modbus_overlay contains overlay for the Neuron CPUs to work and also a daemon Modbus TCP Server that provides access to the IOs (except the 1Wire) and also creates a VTY for the serial line. So if you do not want to use Evok, use that or you can also write it on your own if you want.

        Bill Lee 2 Replies Last reply Reply Quote 0
        • Bill Lee
          Bill Lee @tomas_hora last edited by

          @tomas_hora

          Hi
          Sorry, My English isn't good. your mean is I can use modbus tcp through spi to access I/O.

          1 Reply Last reply Reply Quote 0
          • Bill Lee
            Bill Lee @tomas_hora last edited by

            @tomas_hora

            Hi

            Could i write my own protocol to connecting other device through RS-485 !? The RS485 mapping to dev/extcomm/0/0 or /dev/extcomm/1/0 !?

            Bye

            1 Reply Last reply Reply Quote 0
            • T
              tomas_hora administrators last edited by

              @Bill-Lee The protocol used on the SPI is not exactly the same as Modbus. So you should use the TCP Modbus Server that we provide (maps of registers to IOs can be found at http://downloads.unipi.technology) it will create the /dev/extcomm/x/y serial line.

              The /dev/extcomm/0/0 and 1/0 both points to the same serial line (since there is only one). It is only for some developers to ease acces to it.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post