Menu

ser2net configuration

2020-06-02
2020-06-03
  • Lukasz Zurek

    Lukasz Zurek - 2020-06-02

    Hi,
    I have problem to setup ser2net daemon with yawl configuration file. I am looking for some description or manual explaning how to do it.
    Cheers.

     
    • Corey Minyard

      Corey Minyard - 2020-06-02

      On Tue, Jun 02, 2020 at 12:24:30PM -0000, Lukasz Zurek wrote:

      Hi,
      I have problem to setup ser2net daemon with yawl configuration file. I am looking for some description or manual explaning how to do it.

      There is a yaml configuration file man page (ser2net.yaml.5). You can
      run "man ser2net.yaml" if it is installed, or
      "nroff -man ser2net.yaml.5 | less -r" from the source code.

      If the information you need is not there, then ask your question, and
      I'll get the info added to the man page.

      -corey

      Cheers.


      ser2net configuration


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/ser2net/discussion/90083/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Lukasz Zurek

    Lukasz Zurek - 2020-06-02

    Hello Corey,
    I found what I was looking for but when I start ser2net I receive an error "Main mapping requires an anchor for the name on line XX column X". I have followed simplest configuration based on man page:

    default:
    name: speed
    value: 115200
    class: serialdev

    connection:
    name: connection to /dev/ttyACM0
    accepter: tcp,50025
    connector: serialdev,/dev/ttyACM0,local

    Any thoughts what I might be doing wrong?
    Cheers.

     
    • Corey Minyard

      Corey Minyard - 2020-06-02

      On Tue, Jun 02, 2020 at 02:23:22PM -0000, Lukasz Zurek wrote:

      Hello Corey,
      I found what I was looking for but when I start ser2net I receive an error "Main mapping requires an anchor for the name on line XX column X". I have followed simplest configuration based on man page:

      default:
      name: speed
      value: 115200
      class: serialdev

      connection:
      name: connection to /dev/ttyACM0
      accepter: tcp,50025
      connector: serialdev,/dev/ttyACM0,local

      After your email, I looked and found a bunch of errors in the
      documentation :(. I've fixed them. This is leftover from an old design
      that I changed.

      Basically, the "name:" thing is gone, and you need to set up a YAML alias
      after connection, something like:

      connection: &ttyACM0
      accepter: tcp,50025
      connector: serialdev,/dev/ttyACM0,local

      The YAML alias becomes the name in the admin interface.

      -corey

      Any thoughts what I might be doing wrong?
      Cheers.


      ser2net configuration


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/ser2net/discussion/90083/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Lukasz Zurek

    Lukasz Zurek - 2020-06-03

    Thanks for your replay. I have managed to start ser2net with yaml configuration. I have however other question about Admin Interface - can you tell me how can I access this mode? How does it work or where can I find more information how to use it?
    Cheers.

     
    • Corey Minyard

      Corey Minyard - 2020-06-03

      On Wed, Jun 03, 2020 at 11:55:20AM -0000, Lukasz Zurek wrote:

      Thanks for your replay. I have managed to start ser2net with yaml configuration. I have however other question about Admin Interface - can you tell me how can I access this mode? How does it work or where can I find more information how to use it?

      That would be in the ser2net.8 man page, under ADMIN INTERFACE. There
      is also some configuration information in ser2net.yaml.5 under ADMIN
      CONNECTIONS.

      -corey

       
      • Lukasz Zurek

        Lukasz Zurek - 2020-06-03

        According to man page I have added following entry to ser2net.yaml configuration file:
        admin: &admin
        accepter: tcp,50000

        I am able to connect to that port but when I try to type ie. showport [50050] nothing happens.

         

        Last edit: Lukasz Zurek 2020-06-03
        • Corey Minyard

          Corey Minyard - 2020-06-03

          On Wed, Jun 03, 2020 at 01:10:32PM -0000, Lukasz Zurek wrote:

          According to man page I have added following entry to ser2net.yaml configuration file:
          admin:
          accepter: tcp,50000

          When I restart ser2net service I got following error: "Invalid token at the main level: admimn
          ". This same happens if I type "admin: &admin".

          I just did the following and it worked for me:

          admin:
          accepter: telnet,tcp,2000

          You need to ident accepter, per yaml. I'l probably need the whole
          config file to see if something else is wrong.

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.