RS232 or RS485 output from PicoC

94 views
Skip to first unread message

Joakim Arfvidsson

unread,
Mar 12, 2020, 4:24:48 AM3/12/20
to Loxone English
Did *anybody* get this to work?

I haven't seen any example except the one in Loxone's script doc page.

Here is my code. It does nothing:/ Also if I change the tty name, it also does nothing. So there is nothing to indicate I have the right tty name, but the name of the extension is definitely "rs485".

char testString[5] = {1, 2, 3, 4, 5};
STREAM *rs485 = stream_create("/dev/tty/rs485", 0, 0);
stream_write(rs485, testString, 5);
stream_flush(rs485);
stream_close(rs485);

As a sub-question - anyone know how look at the linux filesystem on the miniserver? I'd like to peek into /dev/tty to see what the port is actually named.



Joakim Arfvidsson

unread,
Mar 13, 2020, 12:25:41 AM3/13/20
to Loxone English
Answering my own question: this does not work. Loxone support got back to me and said this is not supported (even though documentation says it is), but there is a workaround for writing to the serial port: use a text actuator.

Tico

unread,
Mar 13, 2020, 6:36:30 PM3/13/20
to Loxone English
Could you please clarify how you employ the text actuator?
Reply all
Reply to author
Forward
0 new messages