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

    Access the filesystem from Mervis

    Mervis
    3
    13
    3463
    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.
    • Martin Kudláček
      Martin Kudláček @derinex last edited by

      Hello @derinex, the Mervis is quite awkward when you want to use it in cooperation with 3rd party applications. The most straightforward way would be a ModbusTCP communication. You can find a numerous libraries for all kinds of programming languages. It could fit into your scenario, because you could still access it over the VPN. But it strongly depends on how many and what kind of data you need to exchange.

      Martin

      1 Reply Last reply Reply Quote 0
      • D
        derinex last edited by

        Thanks for answer, i use the ModBus TCP, is any cli server in Unipi repository?
        I modify my cron script to transfer setting from ftp file to Mervis registers and on other side transfer measured data from Mervis to local file. This can works without modification on server side, where is now more complicated solution.

        regards Petr

        Martin Kudláček 1 Reply Last reply Reply Quote 0
        • Martin Kudláček
          Martin Kudláček @derinex last edited by

          Hello @derinex,
          I'm not sure what you mean by CLI-server. The ModbusTCP server, which makes accessible our underlying HW, is part of MervisOS or can be installed separately from our Debian repository (repo.unipi.technology/debian, package unipi-modbus-tools) on images such as Raspbian Stretch.

          Best regards,
          Martin

          1 Reply Last reply Reply Quote 0
          • D
            derinex last edited by

            Hi , ok i need Modbus Master (CLI application running outside Mervis) to transfer to/from Modbus Slave (part of Mervis ???).

            I would prepare some variables inside my application to be accessible from outside (as i wrote before, to transfer to IS).

            Martin Kudláček 1 Reply Last reply Reply Quote 0
            • Martin Kudláček
              Martin Kudláček @derinex last edited by Martin Kudláček

              Hello @derinex,
              you can use mbpoll for example (https://github.com/epsilonrt/mbpoll). We have it in our repository, so simple apt install mbpoll will install it.

              Martin

              1 Reply Last reply Reply Quote 0
              • D
                derinex last edited by

                Hi,
                do you have now problem with repository access?

                E: Failed to fetch https://files.unipi.technology/debian/dists/stretch/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
                E: Some index files failed to download. They have been ignored, or old ones used instead.

                The following NEW packages will be installed:
                mbpoll:armhf
                0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
                Need to get 55.1 kB of archives.
                After this operation, 43.0 kB of additional disk space will be used.
                Get:1 https://files.unipi.technology/debian stretch/main armhf mbpoll armhf 1.4-0 [55.1 kB]
                Err:1 https://files.unipi.technology/debian stretch/main armhf mbpoll armhf 1.4-0
                Hash Sum mismatch
                Hashes of expected file:

                • SHA512:0bf4bb0734e052067058fc7f6234e7fb70125f936e3627977878032224836bda844ac032eb5fd2b28a668031e0d4f5b4085cb6c61e84b6c64d159344547bc951
                • SHA256:d16964917a3cbc65e444bf7a120463923a7c5a2d436ffea28770f9bbdd9c5a86
                • SHA1:d6b157425962db1102ffb995286c8c724b2fcb8f [weak]
                • MD5Sum:0964b16d00a5fb2e3ecad6ba77956ef9 [weak]
                • Filesize:55070 [weak]
                  Hashes of received file:
                • SHA512:39a6d01f41fe73a834ad990834d5df9c8dd17f64589f56f091b028e2f16e4ce3d581aa6bd7a7a0022ec273be405d4af987d815429d708d46e73e8c4b63db350a
                • SHA256:3d2a1d32ddce6842a875e3002846d1e2745f840a39baa68c683f40d4553107ca
                • SHA1:17961bf0fd377f1d671f50ee3664375d752c6f45 [weak]
                • MD5Sum:7abdddacf94e8c65ce804a0796de892e [weak]
                • Filesize:17062 [weak]
                  Last modification reported: Mon, 24 Sep 2018 08:17:53 +0000
                  Fetched 17.1 kB in 7s (2322 B/s)
                  E: Failed to fetch https://files.unipi.technology/login Hash Sum mismatch
                  Hashes of expected file:
                  - SHA512:0bf4bb0734e052067058fc7f6234e7fb70125f936e3627977878032224836bda844ac032eb5fd2b28a668031e0d4f5b4085cb6c61e84b6c64d159344547bc951
                  - SHA256:d16964917a3cbc65e444bf7a120463923a7c5a2d436ffea28770f9bbdd9c5a86
                  - SHA1:d6b157425962db1102ffb995286c8c724b2fcb8f [weak]
                  - MD5Sum:0964b16d00a5fb2e3ecad6ba77956ef9 [weak]
                  - Filesize:55070 [weak]
                  Hashes of received file:
                  - SHA512:39a6d01f41fe73a834ad990834d5df9c8dd17f64589f56f091b028e2f16e4ce3d581aa6bd7a7a0022ec273be405d4af987d815429d708d46e73e8c4b63db350a
                  - SHA256:3d2a1d32ddce6842a875e3002846d1e2745f840a39baa68c683f40d4553107ca
                  - SHA1:17961bf0fd377f1d671f50ee3664375d752c6f45 [weak]
                  - MD5Sum:7abdddacf94e8c65ce804a0796de892e [weak]
                  - Filesize:17062 [weak]
                Martin Kudláček 1 Reply Last reply Reply Quote 0
                • Martin Kudláček
                  Martin Kudláček @derinex last edited by

                  Hello @derinex,
                  the correct path to our Debian repository is https://repo.unipi.technology/debian. The repository is preconfigured in our MervisOS 1.7 image, so all you need to do is just apt update && apt install mbpoll. Your debug output shows that apt looks for repository http://files.unipi.technology, which is incorrect. Have you configured this URL somewhere by yourself? I am asking because it may be some error on our side which needs to be fixed.

                  Thanks,
                  Martin

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    derinex last edited by

                    Not i don't touch it, but i have the first S215 piece with possible bugs in image.

                    1 Reply Last reply Reply Quote 0
                    • D
                      derinex last edited by

                      the file /etc/apt/sources.list:

                      #deb http://ftp.debian.org/debian stretch main

                      deb http://ftp.debian.org/debian/ stretch main contrib non-free
                      deb http://ftp.debian.org/debian/ stretch-updates main contrib non-free

                      deb-src http://ftp.debian.org/debian/ stretch main contrib non-free
                      deb-src http://ftp.debian.org/debian/ stretch-updates main contrib non-free

                      /etc/apt/sources.list.d/unipi.list
                      deb https://files.unipi.technology/debian stretch main

                      1 Reply Last reply Reply Quote 0
                      • D
                        derinex @Martin Kudláček last edited by

                        After change
                        vim /etc/apt/sources.list.d/unipi.list as you wrote, everything works

                        #deb https://files.unipi.technology/debian stretch main
                        deb https://repo.unipi.technology/debian stretch main

                        thanks for support

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