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

    Can't get runnig RS-485 on jessie

    Scheduled Pinned Locked Moved Neuron Series
    4 Posts 3 Posters 3.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.
    • M
      mauri
      last edited by

      Hello

      im stucking get running RS-485 on an blank raspian-jessie image, with all current updatedes.

      downloaded the https://github.com/UniPiTechnology/neuron_tcp_modbus_overlay/archive/master.zip and installed.
      /dev/extcomm/0/0 is present.
      but no data are coming out.....

      with der Uni Pi Open Source Image all is working fine, see: https://forum.unipi.technology/topic/486/modbus-rtu-vs-modbus-tcp

      root@raspberrypi:~# mbpoll /dev/extcomm/0/0 -a 1:3  -1
      mbpoll 0.1-23 - FieldTalk(tm) Modbus(R) Master Simulator
      Copyright (c) 2015 epsilonRT, All rights reserved.
      This software is governed by the CeCILL license <http://www.cecill.info>
      
      Protocol configuration: Modbus RTU
      Slave configuration...: address = [1,2,3]
                              start reference = 1, count = 1
      Communication.........: /dev/extcomm/0/0,      19200-8E1 
                              t/o 1.00 s, poll rate 1000 ms
      Data type.............: 16-bit register, output (holding) register table
      
      -- Polling slave 1...
      Read output (holding) register failed: Connection timed out
      -- Polling slave 2...
      Read output (holding) register failed: Connection timed out
      -- Polling slave 3...
      Read output (holding) register failed: Connection timed out
      
      
      T 1 Reply Last reply
      Reply Quote 0
      • T
        tomas_hora administrators @mauri
        last edited by

        @mauri The issue with the Neuron tcp servers creating the virtual PTY for the serial port is, that it is not possible to set baudrate and parity when opening the /dev/extcomm in the standard way so it has to be done via the Modbus Register - "Configuration of RS485 serial line".

        The UniPian includes the new and proper approach using kernel driver. We hope to provide proper package system to distirbute the driver and also the tcp modbus app but for now, its included only in the UniPian.

        1 Reply Last reply
        Reply Quote 0
        • M
          mauri
          last edited by

          @tomas_hora is there a solution for a jessie installation now? We based out Software on jessie. Is there a way to get it running?

          1 Reply Last reply
          Reply Quote 0
          • T
            TomasKnot
            last edited by TomasKnot

            You can compile a kernel driver module for Neuron, which should work on Jessie. You can find the source code here: http://git.unipi.technology:3000/UniPi/neuron-kernel

            If you can provide us with the exact kernel version (run "uname -a" as root) we can even compile it for you, the process is relatively trivial.

            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