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

    Modbus TCP (unipitcp) not working on Neuron with Raspberry OS

    Scheduled Pinned Locked Moved Neuron Series
    2 Posts 2 Posters 912 Views 1 Watching
    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.
    • N
      noelvaes
      last edited by

      The unipi_tcp_server reports the following error:

      sudo /opt/unipi/tools/unipi_tcp_server -p 502 -l 127.0.0.1 --verbose --check-firmware
      
      ARMINIT: Cannot open device /dev/unipispi
      ARMINIT: Cannot open device /dev/unipispi
      ARMINIT: Cannot open device /dev/unipispi
      UniPi TCP Modbus Server: Listening Connection Established RET:3
      poll timeout = -1[ms]
      Starting primary loop
      

      When trying to communicate with the server, errors are reported: Error reading (using EasyModbus Java library).

      This is the environment:

      I installed raspios_lite_arm64-2020-08-24 on Neuron S103 (RPI4).
      The image is available here: https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2020-08-24/2020-08-20-raspios-buster-arm64-lite.zip

      Next I added the Unipi repository the recommended way:

      curl https://repo.unipi.technology/debian/README.apt | bash
      

      Subsequently I installed the following modules:

      sudo apt install -y unipi-kernel-modules unipi-firmware unipi-firmware-tools unipi-modbus-tools
      

      Finally I run

      sudo systemctl stop unipitcp
      sudo /opt/unipi/tools/unipi_tcp_server -p 502 -l 127.0.0.1 --verbose --check-firmware
      
      T 1 Reply Last reply
      Reply Quote 0
      • T
        tomas_hora administrators @noelvaes
        last edited by

        @noelvaes Did you reboot after the kernel modules were installed?

        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