more G-Labs products

Author Topic: Can't find socat - created serial ports on Configure\Settings  (Read 895 times)

February 23, 2015, 05:07:45 AM
Read 895 times

gs001

  • *
  • Information
  • Newbie
  • Posts: 21
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

November 30, 2015, 11:48:51 AM
Reply #1

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
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.