NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 307 308 309 310 311 … 433 Next »
Channel executable not being called properly?

Channel executable not being called properly?
PatM
Offline

Member

Posts: 84
Threads: 31
Joined: Mar 2012
#1
2012-04-23, 04:30 PM (This post was last modified: 2012-04-23, 04:31 PM by PatM.)
I set up eventghost to change channels and it works great from inside EG and from a command prompt. The command goes like th

"C:\Program Files\EventGhost\EventGhost.exe" -e channel 1 252

From the command prompt I have to quote the path part thanks to the oh-so-brilliant space in the path name supplied by MS.

I have the same path part in NextPVR as the executable in in arguments I have

-e 1 {channel}

The 1 is for tuner 1 and I can use 2-3 (don't have a third tuner yet though).

As I said, from a command prompt it all works perfectly but NPVR doesn't appear to actually execute the command. EG shows when it's received any input and nothing at all shows up in the log window for EG. NRecord.log shows the exact path and arguments as I use in the command promt but without the quotes.

I was thinking perhaps it was the space in the pathname but I can't manually add quotes to the path.

Any ideas if I'm doing the arguments wrong or perhaps the space in the path is really the problem?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#2
2012-04-23, 04:51 PM
The app is calling it correctly:

Quote:2012-04-23 09:06:23.414 [INFO][14] Running blaster: C:\Program Files\EventGhost\EventGhost.exe -e channel 1 252
It doesn't need the quotes with the API I'm using.

It'll be something to do with how the recording service is running as a service under a different user account, like EventGhost.exe is trying to use the clipboard (WM_COPYDATA) to pass the info to it's main process, but doesnt manage it to see it, so nothing happens.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#3
2012-04-23, 05:02 PM
google for "cmd as system user", then go ahead and get a command prompt running as system. from that command prompt you can try your eventghost command running the same way as NRecord runs it.

if you're not able to get eventghost to work that way, you can try changing NRecord to run as a regular admin user from the Services control panel.

you can also try googling for "eventghost as service" - it seems some have been successful at getting an instance of eventghost running as a service and/or as local system.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
PatM
Offline

Member

Posts: 84
Threads: 31
Joined: Mar 2012
#4
2012-04-23, 07:51 PM
Ok, I changed it so that NRecord runs as the same account that is always logged on and running Eventghost - which is an administrator account.

I still get no messages to eventghost but I did notice that NPVR actually ends up creating eventghost processes. Like it's actually starting a new copy of eventghost instead of just getting a message to it. Or perhaps those are fireonce processes that are stuck because they can't talk to eventghost?

Either way that sounds like I should be talking to the EG people as NPVR does appear to do what it's supposed to do.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#5
2012-04-23, 08:22 PM
PatM Wrote:Ok, I changed it so that NRecord runs as the same account that is always logged on and running Eventghost - which is an administrator account.
This may not be enough - if it's trying to use one of the common tricks like WM_COPYDATA (ie clipboard) to transfer data to it's main program, then it's in a different desktop session (desktop vs service) which doesn't share a clipboard.

Quote:I still get no messages to eventghost but I did notice that NPVR actually ends up creating eventghost processes. Like it's actually starting a new copy of eventghost instead of just getting a message to it. Or perhaps those are fireonce processes that are stuck because they can't talk to eventghost?
You're telling it to run new copy of eventghost.exe with specified parameters, which is exactly what it does. This is how lots of programs are designed to work though, ie one instance runs as the main process, then any subsequent runs just connect to the main process, pass some commands over, then exit. The main process then acts on those commands. In your case it sounds like this "pass some commands over" part is failing, probably because of the service vs desktop separation. The EventGhost guys are bound to have come across this before, and will almost certainly have some fix for you.
PatM
Offline

Member

Posts: 84
Threads: 31
Joined: Mar 2012
#6
2012-04-25, 02:30 PM
I got a reply on the EG forums. They said to use a netreceiver plugin. I tried it on a laptop just to see how it works (turns out you MUST use a password - leaving blank results in MD5 errors) and it seems ok. I'll try it out on the server tonight.

Seems like a very usable solution as the service can send TCP data without need of clipboards etc (from my vague recollections of past programming I did).
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#7
2012-04-25, 06:11 PM
Yep - sounds like that would do the job.
PatM
Offline

Member

Posts: 84
Threads: 31
Joined: Mar 2012
#8
2012-05-01, 03:03 PM
I added the net receiver last week and it works perfectly. The only gotcha's are:

1) You must add a password in ther receive, leaving it blank results in MD5 errors when you send a message (so you must supply password with the message obviously)
2) Extra data (the IP) is added to the FRONT of the message so you have to accomodate that.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  IR Server Suite Channel Changer BTJustice 26 27,211 2023-01-11, 08:49 PM
Last Post: Frapo
  Blaster executable not always processing bishoph 4 1,398 2022-08-07, 09:41 PM
Last Post: mvallevand
  Device Update - Channel Mapping chezmorris 10 4,690 2022-07-01, 01:59 PM
Last Post: mvallevand
  IPTV Channel Mapping jrockow 15 7,820 2021-03-07, 09:45 PM
Last Post: jrockow
  channel icon location Brucek2839 2 1,716 2021-03-04, 10:30 PM
Last Post: Brucek2839
  UK channel More4 - tunes but cannot view? prothed 7 2,747 2021-02-17, 02:59 PM
Last Post: Graham
  send channel chanes via winLIRC?? chef Paula 67 13,400 2021-02-11, 07:38 PM
Last Post: mvallevand
  NextPVR hangs when tuning to offline channel? CormacBaptiste 2 1,936 2021-02-03, 01:29 PM
Last Post: Graham
  Possible to set the EPG source for more than one channel at a time? LeGrandZombie 15 8,050 2020-12-06, 02:15 AM
Last Post: pitbull1969
  xmltv and EPG channel icons HaTaX 5 4,086 2020-10-28, 04:25 AM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode