Module author: Galen Collins <bashwork@gmail.com>
Section author: Galen Collins <bashwork@gmail.com>
Implements the modbus server protocol
This uses the socketserver.BaseRequestHandler to implement the client handler.
Decodes a request packet
| Parameters: | message – The raw modbus request packet |
|---|---|
| Returns: | The decoded modbus message or None if error |
The callback to call with the resulting message
| Parameters: | request – The decoded request message |
|---|
Callback for when a client disconnects
Callback when we receive any data
Send a request (string) to the network
| Parameters: | message – The unencoded modbus response |
|---|
Callback for when a client connects
A modbus threaded tcp socket server
We inherit and overload the socket server so that we can control the client threads as well as have a single server context instance.
Callback for connecting a new client thread
| Parameters: |
|
|---|
Callback for stopping the running server
A modbus threaded udp socket server
We inherit and overload the socket server so that we can control the client threads as well as have a single server context instance.
Callback for connecting a new client thread
| Parameters: |
|
|---|
Callback for stopping the running server
A modbus threaded udp socket server
We inherit and overload the socket server so that we can control the client threads as well as have a single server context instance.
Callback for connecting a new client thread
| Parameters: |
|
|---|
Callback for stopping the running server
A factory to start and run a tcp modbus server
| Parameters: |
|
|---|
A factory to start and run a udp modbus server
| Parameters: |
|
|---|
A factory to start and run a udp modbus server
| Parameters: |
|
|---|