|
1 | | -# NOTE: |
2 | | -## 1 |
3 | | -This project is moved to [gitlab] (https://gitlab.com/dhoomakethu/kivy-modbus-simu) . |
4 | | -A newer version with support to serial mode is available there. |
5 | | - |
6 | | -## 2 |
7 | | -A cli version supporting both Modbus_RTU and Modbus_TCP is available here [modbus_simu_cli](https://github.com/dhoomakethu/modbus_sim_cli) |
8 | | - |
9 | 1 | # Modbus Simulator |
10 | 2 |
|
11 | 3 | Modbus Simulator with GUI based on modbus-tk |
12 | 4 |
|
13 | | -## Requirements |
14 | | -* [modbus-tk](https://pypi.python.org/pypi/modbus_tk) |
15 | | -* [kivy 1.9.0 >](http://kivy.org/#download) |
16 | | - |
17 | 5 | ## Checking Out the Source |
18 | | - $ git clone https://bitbucket.org/sanjaykv/modbus-simulator |
19 | | - $ cd modbus_simulator |
| 6 | + $ git clone https://github.com/riptideio/modbus-simulator.git |
| 7 | + $ cd modbus-simulator |
| 8 | + |
20 | 9 |
|
21 | 10 | ## Development Instructions |
22 | | -1. install kivy |
23 | | - - [OSx](http://kivy.org/docs/installation/installation-macosx.html) |
24 | | - - [Linux](http://kivy.org/docs/installation/installation-linux.html#ubuntu-11-10-or-newer) |
25 | | - - [Windows](http://kivy.org/docs/installation/installation-windows.html) |
26 | | - |
27 | | -2. install modbus-tk |
28 | | - * On Mac kivy uses its own virtual env ,hence all required modules needs to be installed seperatly [installing modules](http://kivy.org/docs/installation/installation-macosx.html#installing-modules) |
29 | | - - kivy -m pip install modbus-tk |
| 11 | +1. create virtualenv and install requirements |
| 12 | + |
| 13 | + ``` |
| 14 | + $ # Kivy depends on Cython, Install Cython before running the requirements |
| 15 | + $ pip install Cython==0.25.2 |
| 16 | + $ pip install -r requirements |
| 17 | + $ # Choose Modbus Backend modbus_tk or pymodbus (default) |
| 18 | + $ # To install pymodbus |
| 19 | + $ pip install pymodbus==1.3.2 |
| 20 | + $ # To install modbus tk |
| 21 | + $ Pip install modbus-tk |
| 22 | +
|
| 23 | + ``` |
| 24 | +
|
| 25 | +
|
30 | 26 | 3. [Setup development environment](https://github.com/kivy/kivy/wiki/Setting-Up-Kivy-with-various-popular-IDE's) |
31 | 27 |
|
32 | 28 | ## Running/Testing application |
33 | | - $ cd modbus_simulator |
34 | | - $ kivy main.py |
| 29 | +
|
| 30 | +1. To run simulation with pymodbus backend, run `./tools/launcher` |
| 31 | +2. To run sumulation with modbus-tk as backend run `./tools/launcher mtk` |
| 32 | +
|
| 33 | +
|
| 34 | +
|
35 | 35 | A GUi should show up if all the requirements are met !! |
36 | 36 |
|
37 | 37 |  |
38 | 38 |
|
39 | | -## Usage instructions |
40 | | -1. Select the interface (only TCP supported as of now) |
41 | | -2. Enter the desired PORT |
42 | | -3. Start Simulation |
43 | | -4. Add Slave |
44 | | - * to add a single slave just click on 'add' |
45 | | - * one can play around with values in 'from'/'to'/'count' text fields to add multiple slaves |
46 | | - * to delete a selected slave use "delete' button |
47 | | - * 'enable all' button is not implemented yet |
48 | | -5. Add Data blocks |
49 | | - * select a slave to enable Datablock tab pane |
50 | | - * use button 'add' in Datablock pane to add data (0 based offset) |
51 | | - * to delete a datablock ,select an item and use 'delete' button in Datablock pane |
52 | | -6. To simulate data , press 'Simulate' button |
53 | | -7. All the settings for various modbus related settings (block size/minimum/maximun values/logging) could be set and accessed from settings panel (use F1 or click on Settings icon at the bottom) |
| 39 | +All the settings for various modbus related settings (block size/minimum/maximun values/logging) could be set and accessed from settings panel (use F1 or click on Settings icon at the bottom) |
54 | 40 |  |
55 | 41 |
|
| 42 | +## Usage instructions |
| 43 | +[](https://youtu.be/nlu3S5jdEn4) |
| 44 | +
|
56 | 45 | ## Packaging for different OS (Standalone applications) |
57 | 46 | A standalone application specific to target OS can be created with Kivy package manager |
58 | 47 |
|
59 | | -1. [OSX](http://kivy.org/docs/guide/packaging-macosx.html) |
| 48 | +1. [OSX](https://kivy.org/docs/guide/packaging-osx.html) |
60 | 49 | 2. [Linux](http://bitstream.io/packaging-and-distributing-a-kivy-application-on-linux.html) |
61 | 50 | 3. [Windows](http://kivy.org/docs/guide/packaging-windows.html) |
62 | 51 |
|
63 | | -## OSx Standalone application |
64 | | -[Modbus-Simulator v0.0.3](/binaries/osx/modbus_simulator.app.zip) |
| 52 | +
|
| 53 | +# NOTE: |
| 54 | +A cli version supporting both Modbus_RTU and Modbus_TCP is available here [modbus_simu_cli](https://github.com/dhoomakethu/modbus_sim_cli) |
0 commit comments