Skip to content

Commit

Permalink
Update of amsads binding to permit mixed poll/subscribe operation.
Browse files Browse the repository at this point in the history
Some devices, such as old BX9000, do not support symbol discovery nor subscriptions.
They can can work only in polling mode. Any call to symbols causes connection termination.
Additionally brought back support for writing commands to ads devices.

Minor adjustment - permit 0x preffix for address configuration in hex format.

Signed-off-by: Łukasz Dywicki <luke@code-house.org>
  • Loading branch information
splatch committed Mar 7, 2024
1 parent a7aad02 commit 7ac27a1
Show file tree
Hide file tree
Showing 22 changed files with 817 additions and 247 deletions.
Expand Up @@ -122,6 +122,11 @@ Below table contain configuration parameters which can be assigned to channels o
| Inverse conversion logic
| Inverse logical representation of FALSE/TRUE values.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand All @@ -137,12 +142,12 @@ Below table contain configuration parameters which can be assigned to channels o
| indexGroup
| INTEGER
| Index Group (decimal)
| Index group in decimal format (excluding 0x prefix). For example F00F.
| Index group in decimal format (with or without 0x prefix). For example F00F, 0xF00F.

| indexOffset
| INTEGER
| Index Offset (decimal)
| Offset in given decimal in hex format (excluding 0x prefix). For example 01.
| Offset in given decimal in hex format (with or without 0x prefix). For example 01, 0x01.

| type
| TEXT
Expand All @@ -154,6 +159,11 @@ Below table contain configuration parameters which can be assigned to channels o
| Inverse conversion logic
| Inverse logical representation of FALSE/TRUE values.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand All @@ -169,12 +179,12 @@ Below table contain configuration parameters which can be assigned to channels o
| indexGroup
| TEXT
| Index Group (hex)
| Index group in hex format (excluding 0x prefix). For example F00F.
| Index group in hex format (with or without 0x prefix). For example F00F, 0xF00F.

| indexOffset
| INTEGER
| TEXT
| Index Offset (hex)
| Offset in given group in hex format (excluding 0x prefix). For example 01.
| Offset in given group in hex format (with or without 0x prefix). For example 01, 0x01.

| type
| TEXT
Expand All @@ -186,6 +196,11 @@ Below table contain configuration parameters which can be assigned to channels o
| Inverse conversion logic
| Inverse logical representation of FALSE/TRUE values.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand Down Expand Up @@ -213,6 +228,11 @@ Below table contain configuration parameters which can be assigned to channels o
| Inverse conversion logic
| Inverse logical representation of FALSE/TRUE values.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand All @@ -228,12 +248,12 @@ Below table contain configuration parameters which can be assigned to channels o
| indexGroup
| INTEGER
| Index Group (decimal)
| Index group in decimal format (excluding 0x prefix). For example F00F.
| Index group in decimal format (with or without 0x prefix). For example F00F, 0xF00F.

| indexOffset
| INTEGER
| Index Offset (decimal)
| Offset in given decimal in hex format (excluding 0x prefix). For example 01.
| Offset in given decimal in hex format (with or without 0x prefix). For example 01.

| type
| TEXT
Expand All @@ -245,6 +265,11 @@ Below table contain configuration parameters which can be assigned to channels o
| Inverse conversion logic
| Inverse logical representation of FALSE/TRUE values.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand All @@ -260,12 +285,12 @@ Below table contain configuration parameters which can be assigned to channels o
| indexGroup
| TEXT
| Index Group (hex)
| Index group in hex format (excluding 0x prefix). For example F00F.
| Index group in hex format (with or without 0x prefix). For example F00F, 0xF00F.

| indexOffset
| INTEGER
| TEXT
| Index Offset (hex)
| Offset in given group in hex format (excluding 0x prefix). For example 01.
| Offset in given group in hex format (with or without 0x prefix). For example 01, 0x01.

| type
| TEXT
Expand All @@ -277,6 +302,11 @@ Below table contain configuration parameters which can be assigned to channels o
| Inverse conversion logic
| Inverse logical representation of FALSE/TRUE values.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand All @@ -299,6 +329,11 @@ Below table contain configuration parameters which can be assigned to channels o
| Value encoding
| Encoding of the field. Value in brackets indicate length of type in bytes.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand All @@ -314,18 +349,23 @@ Below table contain configuration parameters which can be assigned to channels o
| indexGroup
| INTEGER
| Index Group (decimal)
| Index group in decimal format (excluding 0x prefix). For example F00F.
| Index group in decimal format (with or without 0x prefix). For example F00F, 0xF00F.

| indexOffset
| INTEGER
| Index Offset (decimal)
| Offset in given decimal in hex format (excluding 0x prefix). For example 01.
| Offset in given decimal in hex format (with or without 0x prefix). For example 01, 0x01.

| type
| TEXT
| Value encoding
| Encoding of the field. Value in brackets indicate length of type in bytes.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand All @@ -341,18 +381,23 @@ Below table contain configuration parameters which can be assigned to channels o
| indexGroup
| TEXT
| Index Group (hex)
| Index group in hex format (excluding 0x prefix). For example F00F.
| Index group in hex format (with or without 0x prefix). For example F00F, 0xF00F.

| indexOffset
| INTEGER
| TEXT
| Index Offset (hex)
| Offset in given group in hex format (excluding 0x prefix). For example 01.
| Offset in given group in hex format (with or without 0x prefix). For example 01, 0x01.

| type
| TEXT
| Value encoding
| Encoding of the field. Value in brackets indicate length of type in bytes.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand Down Expand Up @@ -390,18 +435,23 @@ Below table contain configuration parameters which can be assigned to channels o
| indexGroup
| INTEGER
| Index Group (decimal)
| Index group in decimal format (excluding 0x prefix). For example F00F.
| Index group in decimal format (with or without 0x prefix). For example F00F, 0xF00F.

| indexOffset
| INTEGER
| Index Offset (decimal)
| Offset in given decimal in hex format (excluding 0x prefix). For example 01.
| Offset in given decimal in hex format (with or without 0x prefix). For example 01, 0x01.

| type
| TEXT
| Value encoding
| Encoding of the field. Value in brackets indicate length of type in bytes. Value FALSE or its numeric representation 0 is interpreted as OPEN. Any other value is assumed to represent CLOSED.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand All @@ -417,18 +467,23 @@ Below table contain configuration parameters which can be assigned to channels o
| indexGroup
| TEXT
| Index Group (hex)
| Index group in hex format (excluding 0x prefix). For example F00F.
| Index group in hex format (with or without 0x prefix). For example F00F, 0xF00F.

| indexOffset
| INTEGER
| TEXT
| Index Offset (hex)
| Offset in given group in hex format (excluding 0x prefix). For example 01.
| Offset in given group in hex format (with or without 0x prefix). For example 01, 0x01.

| type
| TEXT
| Value encoding
| Encoding of the field. Value in brackets indicate length of type in bytes. Value FALSE or its numeric representation 0 is interpreted as OPEN. Any other value is assumed to represent CLOSED.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand All @@ -451,6 +506,11 @@ Below table contain configuration parameters which can be assigned to channels o
| Value encoding
| Encoding of the field. Value in brackets indicate length of type in bytes. Value FALSE or its numeric representation 0 is interpreted as OPEN. Any other value is assumed to represent CLOSED.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand All @@ -466,18 +526,23 @@ Below table contain configuration parameters which can be assigned to channels o
| indexGroup
| INTEGER
| Index Group (decimal)
| Index group in decimal format (excluding 0x prefix). For example F00F.
| Index group in decimal format (with or without 0x prefix). For example F00F, 0xF00F.

| indexOffset
| INTEGER
| Index Offset (decimal)
| Offset in given decimal in hex format (excluding 0x prefix). For example 01.
| Offset in given decimal in hex format (with or without 0x prefix). For example 01, 0x01.

| type
| TEXT
| Value encoding
| Encoding of the field. Value in brackets indicate length of type in bytes. Value FALSE or its numeric representation 0 is interpreted as OPEN. Any other value is assumed to represent CLOSED.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand All @@ -493,18 +558,23 @@ Below table contain configuration parameters which can be assigned to channels o
| indexGroup
| TEXT
| Index Group (hex)
| Index group in hex format (excluding 0x prefix). For example F00F.
| Index group in hex format (with or without 0x prefix). For example F00F, 0xF00F.

| indexOffset
| INTEGER
| Index Offset (hex)
| Offset in given group in hex format (excluding 0x prefix). For example 01.
| Offset in given group in hex format (). For example 01.

| type
| TEXT
| Value encoding
| Encoding of the field. Value in brackets indicate length of type in bytes. Value FALSE or its numeric representation 0 is interpreted as OPEN. Any other value is assumed to represent CLOSED.

| refreshInterval
| INTEGER
| Refresh interval
| Default refresh interval specified for entire connection and devices associated with it. Setting refresh interval forces this channel to be polled rather than subscribed. It might help with older devices which do not support subscriptions.

|===


Expand Down

0 comments on commit 7ac27a1

Please sign in to comment.