![]() ![]() Source:, reproduced here with permission of the authorġ) Is it possible to secure the Modbus/TCP connection between Loxone and the NETIO smart socket device ? In addition to the switch to turn the smart socket on or off, there is a push button that turns the socket on for 2 seconds and then turns it back off. This is what we want to achieve in this example. REST request types include GET (same as entering a URL into a browser address bar), POST (same as submitting a web form), as well as more specific PUT/DELETE/PATCH requests used to modify data.įor our purposes, GET requests are sufficient since NETIO socket states can be set directly with a REST URL in this format: In order to use JSON or XML instead of URLs, a POST request would be used to submit a JSON file with the corresponding instruction to However, Loxone support for JSON or XML is not that great, so it is easier to use the much simpler URL protocol. The REST protocol essentially involves accessing a URL and processing the reply. In milliseconds.Connecting NETIO sockets to Loxone using URL-API (REST) How long to wait to before trying to establish a new connection after the previous one has been disconnected. How long to delay we must have at minimum between two consecutive MODBUS transactions. Use RTU encoding instead of regular TCP encoding. Also known as station address or unit identifier. Tcp is representing a particular Modbus TCP server (slave). When optional parameters are not specified, they default to the values shown in the table below. Required parameters must be specified in the. things file yourself, since it affects how the parameter value is encoded in the text file. Note that parameter type is very critical when writing. ![]() things file, although you can find the same parameters in the UI. The configuration in this documentation explains the. Things can be configured using the UI, or using a. In the tables below the thing configuration parameters are grouped by thing type. #LOXONE MODBUS SERIAL#See general documentation about serial port configuration to configure the serial port correctly. Otherwise you might encounter errors preventing all communication. With serial Modbus slaves, configuration of the serial port in openHAB is important. Other than the things themselves, there is no binding configuration. Typically one defines either tcp or serial bridge, depending on the variant of Modbus slave.įor each Modbus read request, a poller is defined.įinally, one ore more data things are introduced to extract relevant numbers from the raw Modbus data.įor write-only communication, data things can be introduced directly as children of tcp or serial bridges. Is child of poller (read-only or read-write things) or tcp/ serial (write-only things). Analogously, is responsible of converting openHAB commands to Modbus write requests. Thing for converting polled data to meaningful numbers. One poller corresponds to single Modbus read request (FC01, FC02, FC03, or FC04). Thing taking care of polling the data from modbus slaves. This binding supports 4 different things types Thing
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |