HomeGenie Forum

Automation Program Plugins and Wizard Scripting => Help => Topic started by: gs001 on February 23, 2015, 05:07:45 AM

Title: Can't find socat - created serial ports on Configure\Settings
Post by: gs001 on February 23, 2015, 05:07:45 AM
I use a Raspberry Pi 2 for HomeGenie, and I need several serial ports.

I have a serial port server that I connect to via TCP using socat.

I created an init file that starts four instances of socat in the background which creates 4 virtual com ports that are symlinked in /dev called ttyLAN2-1 through ttyLAN2-4.

I can use miniterm and connect to the virtual port called /dev/ttyLAN4 (for example) and if I put a loopback connector on the port of the serial port server, I can see my typing. So I know the ports are good.

However, when I go to HomeGenie Configure/Settings/X10 Interface Options/Device Port, the Ports aren't listed.

I've tried starting my socat init file, then waiting anywhere from seconds to minutes before starting Homegenie (in case there was a delay creating the ports), which made no difference.

Anyone have any other ideas or suggestions?

Gary Sanders
Title: Re: Can't find socat - created serial ports on Configure\Settings
Post by: Gene on November 30, 2015, 11:48:51 AM
Latest HomeGenie (r504) has a new option for letting the user specify any custom serial port path.
Anyway I am not sure that socat virtual serial port is fully compatible with .Net/Mono.

Chers,
g.