You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Paul SQUIZZATO 5f252689f1
Merge branch 'master' of https://codefirst.iut.uca.fr/git/louis.dufour/Detection_d_intrusion
2 years ago
..
Pipfile Ajout des fichiers pour utiliser Pymodbus (root et pipenv nécéssaires) 2 years ago
Pipfile.lock Ajout des fichiers pour utiliser Pymodbus (root et pipenv nécéssaires) 2 years ago
decoder.py Ajout des fichiers pour utiliser Pymodbus (root et pipenv nécéssaires) 2 years ago
decoder2.py Test du decoder pour essayer de parser les donnees envoyées par le client 2 years ago
readme.md Mise à jour de 'Pymodbus/readme.md' 2 years ago
start_client.sh Ajout des fichiers pour utiliser Pymodbus (root et pipenv nécéssaires) 2 years ago
start_server.sh Ajout des fichiers pour utiliser Pymodbus (root et pipenv nécéssaires) 2 years ago

readme.md

Install

python -m pip install pipenv
pipenv update
pipenv shell

Run

Within pipenv, run in two terminals:

./start_server.sh
./start_client.sh

Example commands

Within client run:

client.read_coils slave=1 address=0
client.write_coil slave=1 address=0 value=1
client.read_coils slave=1 address=0

See the first boolean was false in the first read, was written to true, and appears at true in second read.