Merge branch 'main' into MQTT_Robin
This commit is contained in:
BIN
docs/img/QmodMaster.jpg
Normal file
BIN
docs/img/QmodMaster.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 137 KiB |
33
docs/modbus_tcp.md
Normal file
33
docs/modbus_tcp.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# Modbus-TCP
|
||||
This is the documentation of the Modbus-TCP task
|
||||
|
||||
## Table of contents
|
||||
- [Table of contents](#table-of-contents)
|
||||
- [Initialization](#initialization)
|
||||
- [Usage](#usage)
|
||||
- [Guide](#Guide)
|
||||
- [Extra](#Extra)
|
||||
|
||||
## Initialization
|
||||
The Modbus task is initialized in the main function.
|
||||
```c
|
||||
// Initialize Modbus task
|
||||
modbus_init();
|
||||
```
|
||||
## Usage
|
||||
|
||||

|
||||
|
||||
## Guide
|
||||
|
||||
- Set qmodmaster to tcp mode
|
||||
- Set IP of device
|
||||
- Set the device in multiple register mode
|
||||
- Connect with the board
|
||||
- Fill in the data as in the example
|
||||
- Send the data
|
||||
|
||||
## Extra
|
||||
|
||||
The start addres is ignored and the timeout warnings arne normal because there is no response from my code back to QModMaster.
|
||||
|
||||
@@ -9,6 +9,8 @@ there are currently 2 types of datagrams it processes:
|
||||
|
||||
It also writes the current owner's name on the screen and updates it everytime it's changed.
|
||||
|
||||
To use the Qt application for this part of the project you can use [App](https://github.com/Sani7/2023-Webservices_And_Applications/releases/tag/V1.1)
|
||||
|
||||
## Table of contents
|
||||
- [Introduction](#introduction)
|
||||
- [Table of contents](#table-of-contents)
|
||||
@@ -68,7 +70,7 @@ connected:
|
||||
|
||||
```
|
||||
### Owner details interface
|
||||
The interface to ask for the owner's details and change them is a modified version of the [Qt application](https://github.com/wimdams/Device_finder) Wim Dams build. His only has the functionality to ask for the owner's details.
|
||||
The interface to ask for the owner's details and change them is a modified version of the [Qt application](https://github.com/wimdams/Device_finder) Wim Dams build. His only has the functionality to ask for the owner's details. The changed version can be found at [App](https://github.com/Sani7/2023-Webservices_And_Applications/releases/tag/V1.1)
|
||||
|
||||
Just because the owner's details might want to be used in other code, some functions have been written for obtaining these in the STM32 code aswell.
|
||||
#### Setting owner details
|
||||
|
||||
Reference in New Issue
Block a user