Тёмный

How to Read Modbus Data with Python - Part 1 

Chipsee
Подписаться 411
Просмотров 14 тыс.
50% 1

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@davidsiltroy
@davidsiltroy 4 месяца назад
Amazing video! thank you a lot!!
@retieftheron8280
@retieftheron8280 6 месяцев назад
Hi man. Great video, it helps so much. I was just wondering, I'm currently working for the first time on a Raspberry Pi3 and am trying to implement this to read the values from a temp and humidity sensor(FG6485A). Around the 4:10, mark it seems like your out of the terminal and in an IDE of a sort. Mine does not do this and keeps me in the terminal. Can I just code in Thonny and will this also work? Thanks so much in advance.
@Chipsee
@Chipsee 6 месяцев назад
Hi, thanks for leaving a comment! At 4:10, I was using the default terminal app of MacOS, and ssh to my 5 inch panel PC's Debian Linux system, so it's not an IDE, it's still a terminal. If you're using a Raspberry Pi3, you can use its out of box terminal app as well. Take a look at this: projects.raspberrypi.org/en/projects/raspberry-pi-using/8. As far as I know, Thonny is an IDE to run Python scripts? If so, you can work in Thonny, no problem at all. At 4:10, I was in terminal, running a program called VIM (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--txKSRn0qeA.html), which is a text editor. Then I execute python commands manually like in 7:48, this is the same as editing code in Thonny then click a run button in Thonny. But you said you're new to Raspberry Pi (and general programming maybe?), if you want it work in Thonny, don't forget to pip install the packages like I did from 3:30 to 3:40 like in this tutorial: packaging.python.org/en/latest/tutorials/installing-packages/#use-pip-for-installing. You might find this page for Thonny helpful: github.com/thonny/thonny/wiki/InstallingPackages. Happy hacking!
@lennich4199
@lennich4199 Год назад
Very interesting video! Is there a way to read Modbus TCP data with the Man in the middle principle? For example, you have the temperature sensor as the server and the Chipsee PC as the client. Instead of reading the data directly from your sensor, you have for example a Raspberry Pi in between those components that monitors the traffic.
@Chipsee
@Chipsee Год назад
Thanks man! I read your comments a couple of times, and searched for MitM+Modbus, I found it's an attack method to take control of the Modbus server? Are you trying to hack a Modbus network or protecting against MitM? I do not have any experience to actually set up an MitM attack though. If you want to protect against MitM, maybe set up the firewall of the HMI, use TCP over TLS(like use https instead of http to avoid MitM) when sending Modbus TCP data. And of course, patch other workstations in the network, avoid social engineering happening to your operators (guys working in the plant/factory who operates the machines). Is this what you are asking?
@bentleyjarrard885
@bentleyjarrard885 4 месяца назад
Ya, what you are describing is a very common scenario. I have the exact same problem, trying to R/W data to holding registers of several devices with unique unit ID's that are connected to a communication gateway that is accessed by Modbus TCP/IP. Did you ever find an answer to this question?
@juancamilo9995
@juancamilo9995 Год назад
Hello, I would like to know if it is possible to make and do you have experience for a modbus sunspec prototype (Modbus variant specified in solar energy) with this python library?
@Chipsee
@Chipsee Год назад
Hi! It's totally doable with pymodbus, but I don't have experience. Have you looked at some Github open source project like this: github.com/sunspec/pysunspec2?
@B__AhmadNur_DMekatronika
@B__AhmadNur_DMekatronika 5 месяцев назад
first thnks to this tutorial and i want to know more, i do research abt read data from sensor with rs485 to LAN converter, i use USR-DR302 as converter and i will using python to get data, so using pymodbus to, can u help me more tutorials abt tht. thnks
@Chipsee
@Chipsee 5 месяцев назад
Sorry I don't have any experience with USR-DR302, so can't say much about it. Is there any specific problems you got into?
@B__AhmadNur_DMekatronika
@B__AhmadNur_DMekatronika 5 месяцев назад
​@@Chipsee thnks to reply, and i hve done with my code​
@mohammedumarfarooq9572
@mohammedumarfarooq9572 2 месяца назад
How to to write to register please share the video
Далее
How to Read Modbus Data with Python - Part 2
10:50
Просмотров 4,5 тыс.
Протокол MODBUS
46:15
Просмотров 179 тыс.
РЫБКА С ПИВОМ
00:39
Просмотров 311 тыс.
Слушали бы такое на повторе?
01:00
Python Modbus
16:31
Просмотров 23 тыс.
Easy Modbus Using A Raspberry Pi
16:08
Просмотров 48 тыс.
Basics 04: OpenPLC on Raspberry Pi with Modbus
20:48
Просмотров 40 тыс.
MODBUS TCP в две строчки на python
13:30
6 Horribly Common PCB Design Mistakes
10:40
Просмотров 206 тыс.
If __name__ == "__main__" for Python Developers
8:47
Просмотров 407 тыс.
Log data from modbus meter to Raspbery pi (SDM630)
11:17
РЫБКА С ПИВОМ
00:39
Просмотров 311 тыс.