openHab 3.4. and ttyAMA3 port - Raspberry pi 4B

Hi,

i got this error message by adding a binding on port ttyAMA3

HANDLER_CONFIGURATION_PENDING
{serialPort=The value /dev/ttyAMA3 does not match allowed parameter options. Allowed options are: [ParameterOption [value="/dev/ttyS0", label="/dev/ttyS0"], ParameterOption [value="/dev/ttyAMA2", label="/dev/ttyAMA2"], ParameterOption [value="/dev/ttyAMA1", label="/dev/ttyAMA1"], ParameterOption [value="/dev/ttyAMA0", label="/dev/ttyAMA0"]]}

on port /dev/ttyAMA0 i have working Z-Wave Controller
I try added the port to EXTRA_JAVA_OPTS not helped then I remove the EXTRA_JAVA_OPTS same result
any idea?

Thanks

cat /etc/group | grep dialout
dialout:x:20:pi,openhab

cat /etc/group | grep tty
tty:x:5:openhab

ls -la /dev/ttyA*
crw-rw---- 1 root dialout 204, 64 Nov  6 17:54 /dev/ttyAMA0
crw-rw---- 1 root dialout 204, 65 Nov  6 17:52 /dev/ttyAMA1
crw-rw---- 1 root dialout 204, 66 Sep 13 03:58 /dev/ttyAMA2
crw-rw---- 1 root dialout 204, 67 Sep 13 03:58 /dev/ttyAMA3

dmesg | grep ttyAMA
[    0.717128] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 32, base_baud = 0) is a PL011 rev2
[    0.717535] fe201400.serial: ttyAMA1 at MMIO 0xfe201400 (irq = 32, base_baud = 0) is a PL011 rev2
[    0.717911] fe201600.serial: ttyAMA2 at MMIO 0xfe201600 (irq = 32, base_baud = 0) is a PL011 rev2
[    0.718289] fe201800.serial: ttyAMA3 at MMIO 0xfe201800 (irq = 32, base_baud = 0) is a PL011 rev2

  • Platform information:
    • Hardware: Raspberry Pi 4B
    • OS: raspbian bullseye kernel 5.15.28-v7l+ #1532 SMP
    • Java Runtime Environment: OpenJDK Runtime Environment Zulu11.43+88-CA (build 11.0.9+11-LTS)
    • openHAB version: openHAB 3.4.0 Build #3164

Did you restart / boot after adding the device to the variable?

Hi,
yes several times and I also tried this:
sudo rm -rf /var/lib/openhab2/cache/* && sudo rm -rf /var/lib/openhab2/tmp/* && sudo reboot

Hi,

I add to test this to /etc/default/openhab

EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/serial0:/dev/ttyUSB0:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0:/dev/ttyAMA1:/dev/ttyAMA2:/dev/ttyAMA3:/dev/ttyAMA4"

then

sudo rm -rf /var/lib/openhab/cache/* && sudo rm -rf /var/lib/openhab/tmp/*
reboot

after this I see this

HANDLER_CONFIGURATION_PENDING
{serialPort=The value /dev/ttyAMA3 does not match allowed parameter options. Allowed options are: [ParameterOption [value="/dev/ttyS0", label="/dev/ttyS0"], ParameterOption [value="/dev/ttyAMA2", label="/dev/ttyAMA2"], ParameterOption [value="/dev/ttyAMA1", label="/dev/ttyAMA1"], ParameterOption [value="/dev/serial0", label="/dev/serial0"]]}

still missing ports defined in the EXTRA_JAVA_OPTS

Which binding will need access to ttyAMA3 and how does the thing configuration look like ?
Do you have more than one thing defined for the same binding ?

Hi,

it is eBUS binding on /dev/ttyAMA3 that not working
configuration:

cat /etc/openhab/things/ebus.things
Bridge ebus:bridge:bababababa "eBUS Controller" @ "eBUS" [
    masterAddress="FF",
    networkDriver="raw",
    serialPort="/dev/ttyAMA3",
    serialPortDriver="buildin",
    advancedLogging="true"]{

Thing std 08 "Protherm Panther Condens 25 KKO" [ slaveAddress="08" ]
}

I have a functional binding on the port /dev/ttyAMA0 Z-Wave
configuration

cat /etc/openhab/things/z-wave.things
Bridge zwave:serial_zstick:acacacacacac "Z-Wave Controller" @ "Z-Wave" [
    port="/dev/ttyAMA0",
    controller_master="true",
    heal_time="2",
    inclusion_mode="0",
    controller_sisnode=1,
    security_inclusionmode="1",
    controller_inclusiontimeout=30,
    controller_softreset="false",
    controller_hardreset="false",
    controller_exclude="false",
    controller_wakeupperiod="3600",
    controller_sync="false",
    security_networkkey="..........."]
{

Thanks

As far as I understand the documentation serial or network should be configured.
This is why I would delete the row containing

If that does not help what about setting TRACE level for this binding to see if it provides more information.
As far as I understand it is not required to set EXTRA_JAVA_OPTS. I did for OH 2.5 for Zigbee/Zwave serial devices but for OH 3 this is commented out in my configuration file.

Hi,

thanks for pointing me in the right direction
I remove the entry networkDriver=“raw”,
If i use this

serialPortDriver="nrjavaserial",

I got this error:

HANDLER_CONFIGURATION_PENDING
{serialPort=The value /dev/ttyAMA3 does not match allowed parameter options. Allowed options are: [ParameterOption [value="/dev/ttyS0", label="/dev/ttyS0"], ParameterOption [value="/dev/ttyAMA2", label="/dev/ttyAMA2"], ParameterOption [value="/dev/ttyAMA1", label="/dev/ttyAMA1"], ParameterOption [value="/dev/ttyAMA0", label="/dev/ttyAMA0"]]}

If i use this:

serialPortDriver="jserialcomm",

I got this message:

Connecting to eBUS ...

I will try to switch logging to TRACE

Hi,

problem resolved:
should be without the qotes advancedLogging=true

Thanks

1 Like