From 6f58a52966a9cb6f308aa661e2efc9f0379dfde6 Mon Sep 17 00:00:00 2001 From: netwolfuk Date: Sun, 19 Jun 2022 10:01:50 +1200 Subject: [PATCH] [oppo] Documentation - Add example for configuring ser2net version 4 and above (#12961) * Add example for configuring ser2net version 4 and above The format for ser2net configuration has changed to a YAML file. This PR simply adds an example yaml block showing a working ser2net connection with the Oppo Bluray player. --- bundles/org.openhab.binding.oppo/README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.oppo/README.md b/bundles/org.openhab.binding.oppo/README.md index e4a8abea7..715540180 100644 --- a/bundles/org.openhab.binding.oppo/README.md +++ b/bundles/org.openhab.binding.oppo/README.md @@ -66,11 +66,22 @@ Some notes: * You can get around this by adding the `openhab` user to the `dialout` group like this: `usermod -a -G dialout openhab`. * Also on Linux you may have issues with the USB if using two serial USB devices e.g. Oppo and RFXcom. * See the [general documentation about serial port configuration](/docs/administration/serial.html) for more on symlinking the USB ports. -* Here is an example of ser2net.conf you can use to share your serial port /dev/ttyUSB0 on IP port 4444 using [ser2net Linux tool](https://sourceforge.net/projects/ser2net/) (take care, the baud rate is specific to the Oppo player): +* Here is an example of ser2net.conf (for ser2net version < 4) you can use to share your serial port /dev/ttyUSB0 on IP port 4444 using [ser2net Linux tool](https://sourceforge.net/projects/ser2net/) (take care, the baud rate is specific to the Oppo player): ``` 4444:raw:0:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT LOCAL ``` +* Here is an example of ser2net.yaml (for ser2net version >= 4) you can use to share your serial port /dev/ttyUSB0 on IP port 4444 using [ser2net Linux tool](https://sourceforge.net/projects/ser2net/) (take care, the baud rate is specific to the Oppo player): +``` +connection: &conOppo + accepter: tcp,4444 + enable: on + options: + kickolduser: true + connector: serialdev, + /dev/ttyUSB0, + 9600n81,local +``` ## Channels