CI_LocalConnector-從PLC(ModBus或AnB以太網/IP)收集數據並使用https發送到雲的物聯網應用程序-Ido Peles Local Connector Python...

CI_LocalConnector-從PLC(ModBus或AnB以太網/IP)收集數據並使用https發送到雲的物聯網應用程序-Ido Peles

發佈:2020-12-23 11:38:52.398905

做者:Ido Peles

做者郵箱:idop@contel.co.il

首頁:UNKNOWN

文檔:None

下載連接 UNKNOWN

Local Connector Python

Created by Idop - 21.6.2016python

reads Modbuc TCP \ EtherNetIP \ Simulation tags and send to web service using OAuth \ Basic authentication Runs on Python 2.7.9 and tested on raspberi Pi3 - debian Jesi OSlinux

How to Operate:

After installing correctly all componenets you can run sudo python CI_LocalConnector.py help This will show all operating optionsweb

after testing is done you can operate application in production mode usingshell

sudo python CI_LocalConnector.py MainLoopbash

Install Instructions

Project us uploaded to Open source directory "PIP" run the next command to download and install the module sudo pip install CI_LocalConnector upgradeapp

running the application

run the module from where it was delpyed in with help option to see instructions importent: in the first run a config file will be created in /CILC/config.ini you must edit this file with server defenitions
sudo python CI
LocalConnector.py helppython2.7

  • dependencies should be installed automaticly (required modules : pip , pymodbus , cpppo

running the apllication at startup (linux)

edit startupscript sudo nano /etc/init.d/idopStartUp.sh sudo chmod 755 /etc/init.d/idopStartUp.sh sudo update-rc.d idopStartUp.sh defaultside

to remove from startup sudo update-rc.d -f idopStartUp.sh removeoop

inside this file we just call another shell idopStartUp.shui


! /bin/sh

/etc/init.d/idopStartUp.sh

bash /home/pi/CI_Projects/launcher.sh &

!/bin/sh

launcher.sh

navigate home than to this directory then back home

cd /

cd /home/pi/CI_Projects export PATH="$PATH:/usr/lib/python2.7:/usr/lib/python2.7/plat-arm-linux-gnueabihf:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/home/pi/.local/lib/python2.7/site-packages:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/pymodules/python2.7"

sudo python CI_LocalConnector.py MainLoop

cd /

Copy from pypi.org

查詢時間:6.228ms
渲染時間:6.309ms

本文同步分享在 博客「zhenruyan」(other)。
若有侵權,請聯繫 support@oschina.cn 刪除。
本文參與「OSC源創計劃」,歡迎正在閱讀的你也加入,一塊兒分享。

相關文章
相關標籤/搜索