--- title: Modbus tags: thingsboard-gateway image: --- # Modbus @eric82418 :::info **What is Modbus?** * Modbus is a data communications ==**protocol**== which is popular in industrial electronic devices. * The Modbus protocol uses character serial communication lines, Ethernet, or the Internet protocol suite as a transport layer. * 是一種master/slave架構,整個通訊網路中能夠同時擁有多個 slaves,但是只允許擁有一個專門發送請求的 Master。 * ::: ## Modbus Connector ### Modbus Master (Client) ### Modbus Slave (Server) ### Serial **Serial Protocols** The RJ-45, RS232, RS485, RS422 serial protocols only relate to the hardware interface, not the software protocols used to make the devices communicate. #### TCP / UDP Modbus #### Modbus RTU #### Modbus ASCII ## References * [Wikipedia - Modbus](https://en.wikipedia.org/wiki/Modbus) * [Modbus RTU簡介(上)](https://ithelp.ithome.com.tw/articles/10282249) * [Modbus學習紀錄I](https://hackmd.io/@YMont/BJhnG-kfY) * [Modbus](https://www.mtl-inst.com/images/uploads/TSN_MTL838C_Modbus_Rev_1.pdf)