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 … 28 29 30 31 32 … 433 Next »
ParallelProcessing & LEDSDriver

ParallelProcessing & LEDSDriver
Enzpol
Offline

Junior Member

Posts: 8
Threads: 2
Joined: Feb 2019
#1
2019-02-17, 12:52 AM
I am trying to have an LED flash when a program is recording.
I am using LEDSdriver with the LED connected to the COM port.

To do this I need to have ParallelProcessing trigger a userdefined event change.

The commandline for this is LEDSdriver.exe userevent0=1

I am unable to get this to work in what I believe should be a straight forward batch file.

I believe this should work, however it is not:
Code:
cd /d c:\PROGRA~2\LEDSdriver\LEDSdriver.exe userevent0=1

In theory once I have this sorted, I can then process the reverse in PostProcessing to LEDSdriver.exe userevent0=0

Any help/advice would be greatly received
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#2
2019-02-17, 01:04 AM
Enzpol Wrote:I am trying to have an LED flash when a program is recording.
I am using LEDSdriver with the LED connected to the COM port.

To do this I need to have ParallelProcessing trigger a userdefined event change.

The commandline for this is LEDSdriver.exe userevent0=1

I am unable to get this to work in what I believe should be a straight forward batch file.

I believe this should work, however it is not:
[CODE]cd /d c:\PROGRA~2\LEDSdriver\LEDSdriver.Exe

Do you need two commands in the batch file?

1) Cd to the folder that contains the LEDs driver program
2) ledsdriver.exe to execute the program
Enzpol
Offline

Junior Member

Posts: 8
Threads: 2
Joined: Feb 2019
#3
2019-02-17, 04:36 AM
Unfortunately no, that solution doesn't work.

I have attempted to run this without the argument also (i.e closed LEDSdriver and had parallelprocessing.bat attempt to run only LEDSdriver.exe) but I cannot get this to work either.

The following works when running the batch file directly, but not from NextPVR when hitting record on a show:
Code:
cd /d c:\PROGRA~2\LEDSdriver\
LEDSdriver.exe userevent0=1
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,741
Threads: 767
Joined: Nov 2003
#4
2019-02-17, 06:29 AM
Enzpol Wrote:The following works when running the batch file directly, but not from NextPVR when hitting record on a show:
If I had to guess based on past similar issues - LEDSdriver.exe is probably a client application, which uses WM_COPYDATA (aka the clipboard) to transfer commands to a server program that controls the LEDs, but since the recording service is running as 'localsystem' in a different desktop session, when it runs your batch file, those clipboard messages aren't making it to the server that is running under your account on your desktop session.
Enzpol
Offline

Junior Member

Posts: 8
Threads: 2
Joined: Feb 2019
#5
2019-02-17, 06:59 AM
Thanks Sub - I have read the thread that I think you're referring to.

In this case however, I have also tried to start the program without any arguments.
Unless I'm mistaken, it should at least start and show up in the system tray - shouldn't it?
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#6
2019-02-17, 11:47 AM
Enzpol Wrote:Thanks Sub - I have read the thread that I think you're referring to.

In this case however, I have also tried to start the program without any arguments.
Unless I'm mistaken, it should at least start and show up in the system tray - shouldn't it?

Some folk have fixed similar problems by changing the user account used by the NextPVR Recording Service so that the recording service uses the same account as you use to logon.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,741
Threads: 767
Joined: Nov 2003
#7
2019-02-17, 04:57 PM
Enzpol Wrote:In this case however, I have also tried to start the program without any arguments.
Unless I'm mistaken, it should at least start and show up in the system tray - shouldn't it?
I'm not familiar with LEDSdriver.exe at all, so don't know any details about how it works. However, if the first run of it starts a system tray icon, and you're running it from ParallelProcessing.bat, then that process wont be running in the same desktop session that you normally log into - and any tray icon it created wouldn't show up in your system tray.

You'd likely have to ask the author, explaining what you're trying to do, and that LEDSdriver.exe will be run from a service etc, and see if they can help you out. Alternatively, as suggested above, you can try setting the recording service to run as your account.
Enzpol
Offline

Junior Member

Posts: 8
Threads: 2
Joined: Feb 2019
#8
2019-02-23, 08:01 AM
Thanks sub - LEDSdriver was starting within system session as you indicated.
I tried to send the next LEDsdriver command from system which didn't alter the LED state, which I imagine helps confirm your original assumptions of it using clipboard data.

I have therefore tried to run the recording service within the user account as the logged in user, but cannot seem to get this to start. I receive Error 1069: Service did not start due to logon failure.
I have the correct password - as have tried changing the password.

Other posts on this forum have indicated it should be as simple as changing this service to logon as user, but I'm not finding it so.

Any further help to either run NextPVR Recording Service as local user or other ideas for a work around would be appreciated.
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#9
2019-02-23, 10:47 AM
Enzpol Wrote:I have therefore tried to run the recording service within the user account as the logged in user, but cannot seem to get this to start. I receive Error 1069: Service did not start due to logon failure.
I have the correct password - as have tried changing the password.

If it was me ... I would create a new user account (and make it an Administrator account just because I can) and use the new account to run the NextPVR Recording Service ... after making sure that the new account had read and write access to the relevant folders.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,741
Threads: 767
Joined: Nov 2003
#10
2019-02-23, 04:11 PM
Graham Wrote:If it was me ... I would create a new user account (and make it an Administrator account just because I can) and use the new account to run the NextPVR Recording Service ... after making sure that the new account had read and write access to the relevant folders.
Actually that wont help him - it needs to be using the same account he logs in with.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Comskip just not working with ParallelProcessing.bat vibez 2 1,808 2015-09-01, 03:41 PM
Last Post: vibez

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

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

Linear Mode
Threaded Mode