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

    RS485 of the Neuron

    Scheduled Pinned Locked Moved Neuron Series
    5 Posts 2 Posters 4.1k 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.
    • Bill LeeB
      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 LeeB 2 Replies Last reply
        Reply Quote 0
        • Bill LeeB
          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 LeeB
            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

              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