Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Share serial port with another app?

If you have a question or need help, this is the place to be.
Post Reply
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Share serial port with another app?

Post by Livin »

It seems that if I have EventGhost running (loading before Girder) - Girder will not control the serial device. It thinks it does so I have a feeling EG is blocking / locking the serial port.

If I try to load Girder first, it will 'lock' the serial port and EventGhost errors during initial load.

I need BOTH apps to be able to control it and think that what looks like the best way is to see if EG can use the port without locking it since Girder sees it without an issue... just no commands get to the port.

Anyone know if this can be done?
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
TomXP411
Posts: 25
Joined: Thu Oct 30, 2008 4:13 pm

Re: Share serial port with another app?

Post by TomXP411 »

Nope. You can't share serial ports; only one program can have a serial port open at a time.

There are 2 ways to work around the problem:
1. Have Girder and EG both close the port after sending a message, but that's a send-only solution, and it would require changes to the source code of both programs.

2. Have one app send messages to the other. EG has many ways to get data from the outside: the network receiver, COM messages, the command line, and the web server. If there's some way to make Girder send a message through one of those methods, EG could then pass it along.
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Share serial port with another app?

Post by Livin »

TomXP411 wrote:2. Have one app send messages to the other. EG has many ways to get data from the outside: the network receiver, COM messages, the command line, and the web server. If there's some way to make Girder send a message through one of those methods, EG could then pass it along.
I think this will be the option I will look into. Thx!
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
User avatar
Melloware
Plugin Developer
Posts: 86
Joined: Mon May 12, 2008 6:18 pm

Re: Share serial port with another app?

Post by Melloware »

There are a couple of software solutions to help with the problem of sharing COM ports.

XPort:
http://curioustech.home.insightbb.com/xport.html

Serial Splitter:
http://www.eltima.com/products/serialsplitter/
-----------------------------------
Melloware Inc.
EventPhone iPhone Application
Intelliremote - HTPC Remote Application
-----------------------------------
Post Reply