Access the filesystem from Mervis
-
Hi all,
i need read and write some files on Axon filesystem. is it any function in Mervis or i must
use the WEB server to read/write the files?I run the VPN and in background via FTP I get configuration from server and send to server the current state of our technology.
I looking for easiest solution for this tasks.
regards
Petr
-
Hello @derinex,
Mervis does not provide users any tool to access the file system.
Could you please describe your issue more deeply so we can figure out a proper solution for you?
-
We have IS to read write configuration and measured data. We use the FTP protocol with comma separated values. When i could use FTP protocol with CVS support, i don't need access to filesystem.
regards
-
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
-
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
-
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 -
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).
-
Hello @derinex,
you can usembpoll
for example (https://github.com/epsilonrt/mbpoll). We have it in our repository, so simpleapt install mbpoll
will install it.Martin
-
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]
-
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 justapt update && apt install mbpoll
. Your debug output shows thatapt
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 -
Not i don't touch it, but i have the first S215 piece with possible bugs in image.
-
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-freedeb-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 -
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 mainthanks for support