
smatr TV
Has anyone tried to link confortclick with samsung tv? What communication parameters do you use?

HEX for text
I'm new, and I'm having trouble displaying the current text from the DENON AVR amplifier. The text is only displayed in HEX format, do you know how much this value can be converted to text?

Basic Device - Serial Connection - Received Data structured in a better format
Hi,
I have a meter connected serial to bOS. I am looking to find a way to structure the received data so I can interpret it in bOS and display it. For example highlighted in yellow below the data 30 30 30 30 30 30 30 31 30 30 31 35 would be the meter number 10015. The 30 represents a 0, 31 represents a 1, 32 represents a 2, etc
Here is a part from the meter datasheet:
Here is the way the meter connection is configured in bOS as Basic Device:
Here is the command for the request string:
Same command with different data type:
Both the above commands return the same data:
As seen the command is sent and data is received. The challenge I have is that the value left in the string variable created doesn't contain the full string
This would be the data displayed using their software:
Any tips on how this can be handled in bOS so when receiving the data it can be structured in such a way so when extracting the 30 30 30 30 30 30 30 31 30 30 31 35 it can be used as being the value for meter number 10015.
Thank you,
Calin

How to
I have 2 variables Double (setpoints) A and B. When I change the value in one I want the following rule. A can´t be smaller than B and B can´t be bigger than A . Any ideas?

Shelly & TCP listener
I have a little problem integrating Shelly through the tcp server
Shelly integration is in your libraries https://www.comfortclick.com/BOS/Library/Devices/115
Everything works fine except the listener.
The listener is configured as a tcp server, accepts connections but does not respond and does not close the session which causes Shelly to hang.
Shelly expects any response from the host or session closure.
I did the tests using https://docs.microsoft.com/pl-pl/dotnet/api/system.net.sockets.tcplistener?view=net-6.0
If the listener answers the call from Shelly or closes the session, everything works fine.
Conversely, when the host accepts the call and nothing returns or closes the session, Shelly stops sending calls to the host and suspends Shelly until a reset. Shelly appears to be waiting for any information from the host, without it being able to complete the routine.
In the code from the MS website from lines 45 to 63 there is a procedure that sends back to the client what the client sent, while on line 64 the connection is closed.
Removing these lines causes the problem and probably simulates comfortclicka operation.
Is there any call that will get a reply from comfortclick's website eg http://192.168.1.10/comfortclickreply?par=1?
Alternatively, you could add a checkbox as an option - "Send this message as confirmation:", "message" ?
checked on bOS v4.9.8 and Shelly 1 with fw 20220209-092750 / v1.11.8-g8c7bb8d

json problem with decode answer message with space
Hello,
I try to get the value with the basic device and UDP request.
The answer is in json and the answer is correct you can see below an example
{
"ID": "2",
"State": 1,
"Error1": 0,
"Error2": 0,
"Plug": 3,
"AuthON": 0,
"Authreq": 0,
"Enable sys": 1,
"Enable user": 1,
"Max curr": 0,
"Max curr %": 1000,
"Curr HW": 13000,
"Curr user": 63000,
"Curr FS": 0,
"Tmo FS": 0,
"Curr timer": 0,
"Tmo CT": 0,
"Setenergy": 0,
"Output": 0,
"Input": 0,
}
When I try to read the data with the space for exemple "Enable sys" I have the error "Error parsing received data. : Unexpected character while parsing path:"
How to decode the value with space ?
I try somes codes for space but nothing work.
Can you help me please ?

Regex multiple line text parsing
Hi,
I have issued a basic http command that retrieves multiple lines, effectively we cannot get the values of the 7 groups that are returned under a specific matching. The question is how does COmfortClik handle the groups within regex text to be able to handle the group values, remember this is a text regex not a JSON or XML regex, so there are no tokens!!
The REGEX listener I have created is for a string (it has been validated as it works in any regex tester) ^\#>(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})(?[0-9]{2})$/gm
However, Comfortclick does not seem to handle the groups within a Text REGEX, despite multiple lines are coming in the system response
When executed through a host connection this is the same code returned

Basic TCP connection command
Hello,
I’m trying to control an Epson projector via esc/vp21 tcp protocol.
It requires a connection command to open the connection.
Than I can send various command to pj.
if I do it manually( menu function-send) it works perfectly, but if I try to put it in a program to check and do automatically connection it does’t work. Seems basic device do tcp connection. So it return connected status but in reality the connection is not opened by specific command.
if I try to send connection command anyway for each command pj closes the connection going.
Maybe I’m approaching the problem in the wrong way.
Could someone help me with some advice?
thank you

mDNS reply reading via Basic driver.
Hello,
a device publishes its services as mDNS message/reply, is there a chance to fetch data from such message?
As far as i can see mDNS utilizes UDP, but Basic driver configured as: Udp, Device_ip_address, src_port_number (as remote port), dst_port_number (as local port), ASCII, text, won`t do any good. Sniffer shows that device posts requests/replies which contain data i need though.
Thanks.

Convert hex to decimal
Hi,
I have data that is in HEX but I want to dispay them as decimal is there any function for this? I have not found anything.
And another question; is it possible to enable/disable an device through a command or variable?
The device I am currently working on only has the communication port open for about 20 seconds than it closes resulting in many connected/disconnected messages.
I would like to enable the device, send the command, get an response then disable the device.
Customer support service by UserEcho