Pulse-Eight CEC +

Questions and comments specific to a particular plugin should go here.
User avatar
kgschlosser
Site Admin
Posts: 4176
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Pulse-Eight CEC +

Post by kgschlosser » Sat May 12, 2018 12:07 am

so the machine hibernates? or goes into standby??
If you like the work I have been doing then feel free to Image

jonib
Plugin Developer
Posts: 1280
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Pulse-Eight CEC +

Post by jonib » Sat May 12, 2018 2:47 am

kgschlosser wrote:
Sat May 12, 2018 12:07 am
so the machine hibernates? or goes into standby??
Well both, Kodi puts it in standby, and the system hibernates after 60 minutes. But have not decided how to handle it just testing stuff.

But for the testing it was not supposed to do either.

About to do a new attempt but as it's my bedtime, I might be too tired to think. :?

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

User avatar
kgschlosser
Site Admin
Posts: 4176
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Pulse-Eight CEC +

Post by kgschlosser » Sat May 12, 2018 4:15 am

I hate hibernation. it beats the snot out of the HDD. chews up space on the drive even when it is not being used. and it also causes all kinds of odd behavior in the computer.
If you like the work I have been doing then feel free to Image

jonib
Plugin Developer
Posts: 1280
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Pulse-Eight CEC +

Post by jonib » Sat May 12, 2018 1:46 pm

kgschlosser wrote:
Sat May 12, 2018 4:15 am
I hate hibernation. it beats the snot out of the HDD. chews up space on the drive even when it is not being used. and it also causes all kinds of odd behavior in the computer.
I newer used sleep/standby or hibernate before as there was always some problems with it for me.
But now that I have one "server" that is on 24/7 and my main PC that is on 16 hours a day, having a third HTPC powered on all the time seems a bit silly, so I'm figuring out what is the best compromise, having it quickly accessible and not sucking. My power bill is big enough as it is.

OK "The last hurrah: the remake"

I have attached the logs, hopefully they are satisfactory. :)

I went to bed 5:08 but I see something interesting in the "Log.txt":

Code: Select all

05:40:30: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: expected response received (90: report power status)
05:40:30: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Playback 1 (4): report power status (90)
05:40:30: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: TV (0): power status changed from 'standby' to 'on'
05:40:30: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Broadcast (F): set menu language (32)
05:40:30: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 1 (1)
05:40:30: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 1 (1)
05:40:30: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 1 (1)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 1 (1)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 1 (1)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 2 (2)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 2 (2)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 2 (2)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 2 (2)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 2 (2)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 1 (3)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 1 (3)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 1 (3)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 1 (3)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 1 (3)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Playback 1 (4)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Audio (5)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Audio (5)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Audio (5)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Audio (5)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Audio (5)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 2 (6)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 2 (6)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 2 (6)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 2 (6)
05:40:31: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 2 (6)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 3 (7)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 3 (7)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 3 (7)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 3 (7)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 3 (7)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Playback 2 (8)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Playback 2 (8)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Playback 2 (8)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Playback 2 (8)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Playback 2 (8)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 3 (9)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 3 (9)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 3 (9)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 3 (9)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Recorder 3 (9)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 4 (a)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 4 (a)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 4 (a)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 4 (a)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Tuner 4 (a)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Playback 3 (b)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Playback 3 (b)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Playback 3 (b)
05:40:32: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Playback 3 (b)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Playback 3 (b)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Reserved 1 (c)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Reserved 1 (c)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Reserved 1 (c)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Reserved 1 (c)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Reserved 1 (c)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Reserved 2 (d)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Reserved 2 (d)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Reserved 2 (d)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Reserved 2 (d)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Reserved 2 (d)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Free use (e)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Free use (e)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Free use (e)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Free use (e)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << POLL: TV (0) -> Free use (e)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << Playback 1 (4) -> TV (0): vendor id Pulse Eight (1582)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Playback 1 (4): give device vendor id (8C)
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << Playback 1 (4) -> TV (0): OSD name 'EventGhost'
05:40:33: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Playback 1 (4): give osd name (46)
05:40:34: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Playback 1 (4): vendor command with id (A0)
05:40:34: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << Playback 1 (4) -> TV (0): cec version 1.4
05:40:34: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Playback 1 (4): get cec version (9F)
05:40:34: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << Playback 1 (4) -> broadcast (F): physical address 2000
05:40:34: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Playback 1 (4): give physical address (83)
05:40:35: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: TV (0) was already marked as active source
05:40:35: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Broadcast (F): active source (82)
05:41:00: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << requesting power status of 'TV' (0)
05:41:01: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: expected response received (90: report power status)
05:41:01: DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Playback 1 (4): report power status (90)
I logged in to the system to finish the testing at 15:05.

jonib
Attachments
Log.txt.7z
Full Log.txt
(19.34 KiB) Downloaded 18 times
EventGhost log.7z
Part 1 copied from EventGhost before going to bed, part 2 is the full log available at the end of the test
(5.64 KiB) Downloaded 17 times
XBMC2 plugin to control XBMC. If you want to flatter me Image

User avatar
kgschlosser
Site Admin
Posts: 4176
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Pulse-Eight CEC +

Post by kgschlosser » Sun May 13, 2018 6:23 pm

yup i see it as well.

libCEC stores the current state of the TV so if the TV is stored as being on and you tell libCEC to turn it on. it will not send the command. It thinks it is already on.

Now the issue is why is it change the state to on. Is it getting that information from the TV... is it a glitch in libCEC or is it a glitch in the adapter. These are the questions that need answering. But now that we have the log in hand I can bring it to the attention of the people over at Pulse Eight.


Now if pulse eight didn't store the power state and did an actual transmit to get the power state I could code around the issue. Because of this I am not sure I am able to. What I am going to do is I am going to use the current mechanism and if the state changes with the power it will then send a raw command to ask for the power state use the command callback to capture the response if the 2 do not line up then to send the power command opposite of that libEC GetPowerStatus is reporting, this should give it the proverbial boot in the ass to straighten it out.

This is going to be some of that voodoo code i hate doing. so it is going to take a while for me to organize my thoughts on a plan of attack for doing it. and I am sure it is not going to work properly for the first bunch of attempts.

I am also going to have to go and try to follow the data bath through the libCEC code to see if i can maybe locate an issue in it.

with your permission i would like to post the log onto the github for pulse eight.
If you like the work I have been doing then feel free to Image

jonib
Plugin Developer
Posts: 1280
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Pulse-Eight CEC +

Post by jonib » Mon May 14, 2018 4:46 am

kgschlosser wrote:
Sun May 13, 2018 6:23 pm
libCEC stores the current state of the TV so if the TV is stored as being on and you tell libCEC to turn it on. it will not send the command. It thinks it is already on.
But the get power info action does state that the TV is off.
with your permission i would like to post the log onto the github for pulse eight.
Sure, go ahead. I don't think there are any state secrets there (They are stored on another PC). :twisted:
XBMC2 plugin to control XBMC. If you want to flatter me Image

User avatar
kgschlosser
Site Admin
Posts: 4176
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Pulse-Eight CEC +

Post by kgschlosser » Mon May 14, 2018 9:35 am

yeah but that could be because the stored data in libCEC is not returned with the GetPowerStatus it actually queries the device. but when you want to change the power state it checks that stored value and if it is not different then it bumps back the command.

Now because of the polling loop that i do for the power status (which actually calls get power status). I can use the info output from the logging end of libCEC to watch for the TV changing its power state. then do a query of the power state. and if the 2 do not line up then issue a power off command to the TV. since libCEC thinks the TV is currently on it should send the command to turn it off. which hopefully cause the TV to respond in a manner that will change the variable in libCEC. You can test this and we can see if it will work before I go through a whole bunch of code changes. All you need do is when the problem occurs turn the TV Off using EG. and then try and turn it on. and see if it does. if it does then i can code around it. if it does not I am not sure what to tell ya.

Also have you tried changing the active source using EG when this happens?? This can also force a change. if that works i can make it so that when powering on the TV if there is no change in it's state then set a variable with the current active source change it to something else and then back to the one it was set to.

So there are 2 possible solutions if you can run those tests for me that would be great. Please have logging turned on also. if it doesn't work i would like to see what the adapter is saying. If you can wait to do this until later today I will recode the logging end of things so it will write all of the information to file. well files i will have it write the files according to the logging type.
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 4176
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Pulse-Eight CEC +

Post by kgschlosser » Mon May 14, 2018 11:38 am

OK so here is a new version

There is a new option in the adapter config. in the logging section there is a checkbox to write the logging data to file. it puts the logs into %APPDATA%\EventGhost\CEC\{ADAPTER NAME}
It can make up to 6 files. it makes a file for each of the different log options. and it also makes a file for the events that get triggered.

I changed the power events. They are no longer On and Off. they are now
  • InTransitionFromStandbyToOn
  • On
  • InTransitionFromOnToStandby
  • Standby
  • Unknown
the Get Power Status is now going to return one of these 5 values
  • In Transition From Standby To On
  • On
  • In Transition From On To Standby
  • Standby
  • Unknown

I had an issue with my TV and I am not sure of anyone else had this issue. but when you turned the power to On it would trigger the On event. then the Off event then the On event again. This has been fixed. I am not sure as to why the TV reports like that but i put in some smoothing code for the power events.

I added checking of the power status of all devices when using the Power On All Devices action. If there is a device(s) that is not on it will tell them to turn on individually.

I added multiple checks for TV power when turning the TV on. if the TV is not on it will issue and off command and then another on command. if it is still not on then it will read all devices and find out which one was set as the active source. and by setting it as the active source again it should turn the TV on (it does on mine). In the event there was no device that was set as an active source. it will make the TV the active source.

beyond that I am not sure what to do on my end to solve this issue.

But give it a go and see what happens.

Also send me the logs (enable all of them) make sure you check off writing them to file

attached is the new version
Attachments
PulseEightPlus-0.4.5b.egplugin
(375.29 KiB) Downloaded 39 times
If you like the work I have been doing then feel free to Image

jonib
Plugin Developer
Posts: 1280
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Pulse-Eight CEC +

Post by jonib » Mon May 14, 2018 4:08 pm

kgschlosser wrote:
Mon May 14, 2018 11:38 am
OK so here is a new version
Trying to install the new version when EventGhost is not running I got an install error with this log:

Code: Select all

17:53:20: DEBUG: 0 MainThread: PluginManager.ScanAllPlugins :1.6861727652456697
17:53:20: DEBUG: 0 MainThread: SendKeysParser.__init__()
17:53:20: DEBUG: 0 EventGhost.Pipe.0.Thread: Pipe: Creating security descriptor
17:53:20: DEBUG: 0 EventGhost.Pipe.0.Thread: Pipe 0: Creating Pipe
17:53:20: DEBUG: 0 MainThread: PluginInstall.Import(filepath=u'c:\\users\\jonib\\downloads\\eventghost\\cec\\pulseeightplus-0.4.5b.egplugin')
17:53:22: DEBUG: 0 MainThread: PluginOverviewDialog.Destroy()
17:53:22: DEBUG: 0 MainThread: PluginInstall.Import => None
but EventGhost seems to run with the plugin after, so heres a log, powering off and then on, HDTV not reacting at all (its been on standby for 8+ hours):

Code: Select all

18:03:50   DEBUG: 0 MainThread: PluginManager.ScanAllPlugins :0.14831657399463657
18:03:50   DEBUG: 0 MainThread: SendKeysParser.__init__()
18:03:50   DEBUG: 0 EventGhost.Pipe.0.Thread: Pipe: Creating security descriptor
18:03:50   DEBUG: 0 EventGhost.Pipe.0.Thread: Pipe 0: Creating Pipe
18:03:50   DEBUG: 0 MainThread: Document.ShowFrame()
18:03:50   DEBUG: 0 MainThread: Document.ShowFrame => None
18:03:50   ---> Welcome to EventGhost <---
18:03:50   DEBUG: 0 EventThread: EventThread.StartSession(filename=u'C:\\Users\\jonib\\AppData\\Roaming\\EventGhost\\HTPC Config.egtree')
18:03:50   DEBUG: 0 ActionThread: ActionThread.StartSession(filename=u'C:\\Users\\jonib\\AppData\\Roaming\\EventGhost\\HTPC Config.egtree')
18:03:50   DEBUG: 0 MouseThread: MouseThread.run()
18:03:50   DEBUG: 0 ActionThread: Document.Load(filePath=u'C:\\Users\\jonib\\AppData\\Roaming\\EventGhost\\HTPC Config.egtree')
18:03:50   DEBUG: 1 MainThread: OSDFrame.__init__(parent=None)
18:03:50   DEBUG: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=4260940, uMsg=536L, wParam=32787L, lParam=5886072)
18:03:50   DEBUG: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=4260940, uMsg=536L, wParam=32787L, lParam=5886328)
18:03:50   DEBUG: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=4260940, uMsg=536L, wParam=32787L, lParam=5887416)
18:03:50   DEBUG: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=4260940, uMsg=536L, wParam=32787L, lParam=5777360)
18:03:50   DEBUG: 0 ActionThread: StartLoad(cls=<class 'eg.Classes.TreeLink.TreeLink'>)
18:03:50   C:\ProgramData\EventGhost\plugins\PulseEightPlus\__cec_core\cec\__init__.pyc
18:03:50   sys.version_info(major=2, minor=7, micro=12, releaselevel='final', serial=0)
18:03:50   True
18:03:50   eg.UserPluginModule.PulseEightPlus.__cec_core
18:03:50   eg.UserPluginModule.PulseEightPlus.__cec_core.cec
18:03:50   eg.UserPluginModule.PulseEightPlus.__cec_core
18:03:50   DEBUG: 0 ActionThread: Document.SetExpandState(expanded=set([0, 1, 2, 3, 4, 5, 6]))
18:03:50   DEBUG: 0 ActionThread: XML loaded in 0.028106 seconds.
18:03:50   DEBUG: 1 MainThread: TreeCtrl.OnItemCollapsingEvent(event=<wx.TreeEvent>)
18:03:50   DEBUG: 0 Thread-5: SessionChangeNotifier.Register()
18:03:51   Windows.User.jonib {'IsLocalAdmin': True, 'IsDomainLogin': False}
18:03:51   EventGhost.Startup måndag, maj 14th, 2018 @ 18:03:51 
18:03:51   Autostart
18:03:51      Plugin: Pulse-Eight CEC+
18:03:51         CEC: Loading Adapters...
18:03:51         CEC: Starting adapter EventGhost on port COM3
18:03:51   DEBUG: 0 ActionThread: ActionThread.StartSession => None
18:03:51   System.PowerProfile.Balanced
18:03:51   Main.OnInit
18:03:51   System.PowerSaving.Off
18:03:51   System.PowerSource.Line
18:03:51   System.Monitor.On
18:03:58   CEC Adapter Started
18:03:58   Adapter Name: EventGhost
18:03:58   Adapter Serial Port: COM3
18:03:58   Adapter Device Emulation: playback device
18:03:58   Available Devices: TV, EventGhost
18:03:58   AVR Volume Control: Off
18:03:58   PulseEight.Adapter.EventGhost.Connected
18:03:58      No internet
18:03:58         Run Command: c:\WinUtil64\devcon.exe rescan
18:04:01   Pulse-Eight CEC+: Standby TV: Adapter: EventGhost on COM3
18:04:01      Pulse-Eight CEC+: Standby TV: Adapter: EventGhost on COM3
18:04:01         CEC NOTICE: EventGhost: << putting 'TV' (0) in standby mode
18:04:01         CEC INFO: EventGhost: << 40:36
18:04:03   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << requesting power status of 'TV' (0)
18:04:03   CEC INFO: EventGhost: << 40:8f
18:04:03   CEC INFO: EventGhost: >> 04:90:02
18:04:03   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: expected response received (90: report power status)
18:04:03   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Playback 1 (4): report power status (90)
18:04:08   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << requesting power status of 'TV' (0)
18:04:08   CEC INFO: EventGhost: << 40:8f
18:04:08   CEC INFO: EventGhost: >> 04:90:02
18:04:08   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: expected response received (90: report power status)
18:04:08   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Playback 1 (4): report power status (90)
18:04:13   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << requesting power status of 'TV' (0)
18:04:13   CEC INFO: EventGhost: << 40:8f
18:04:13   CEC INFO: EventGhost: >> 04:90:02
18:04:13   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: expected response received (90: report power status)
18:04:13   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Playback 1 (4): report power status (90)
18:04:18   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << requesting power status of 'TV' (0)
18:04:18   CEC INFO: EventGhost: << 40:8f
18:04:19   CEC INFO: EventGhost: >> 04:90:02
18:04:19   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: expected response received (90: report power status)
18:04:19   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Playback 1 (4): report power status (90)
18:04:20   Pulse-Eight CEC+: Power On TV: Adapter: EventGhost on COM3
18:04:20      Pulse-Eight CEC+: Power On TV: Adapter: EventGhost on COM3
18:04:20         CEC NOTICE: EventGhost: << powering on 'TV' (0)
18:04:20         CEC INFO: EventGhost: << 40:04
18:04:24   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << requesting power status of 'TV' (0)
18:04:24   CEC INFO: EventGhost: << 40:8f
18:04:24   CEC INFO: EventGhost: >> 04:90:02
18:04:24   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: expected response received (90: report power status)
18:04:24   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Playback 1 (4): report power status (90)
18:04:29   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: << requesting power status of 'TV' (0)
18:04:29   CEC INFO: EventGhost: << 40:8f
18:04:29   CEC INFO: EventGhost: >> 04:90:02
18:04:29   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: expected response received (90: report power status)
18:04:29   DEBUG: 0 Dummy-7: CEC DEBUG: EventGhost: >> TV (0) -> Playback 1 (4): report power status (90)
jonib
Attachments
CEC.7z
All the logs
(2.12 KiB) Downloaded 19 times
XBMC2 plugin to control XBMC. If you want to flatter me Image

User avatar
kgschlosser
Site Admin
Posts: 4176
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Pulse-Eight CEC +

Post by kgschlosser » Tue May 15, 2018 5:04 pm

OK so i ran the same test as you. i thought to myself i wonder if mine has the same issue. because I have been developing for it so much and i realized that i couldn't remember if i had ever left EG on over the time i was sleeping,


guess what. it does something very similar with mine as well. it actually appears that it is an adapter problem. my adapter stops communications over the com port.


do me a favor. Run the new plugin over night with all of the logging turned on. I need a copy of all of the CEC logs. I need to compare yours to mine. I am going to give both sets of log files to pulse eight.
If you like the work I have been doing then feel free to Image

jonib
Plugin Developer
Posts: 1280
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Pulse-Eight CEC +

Post by jonib » Wed May 16, 2018 2:16 pm

kgschlosser wrote:
Tue May 15, 2018 5:04 pm
do me a favor. Run the new plugin over night with all of the logging turned on. I need a copy of all of the CEC logs. I need to compare yours to mine. I am going to give both sets of log files to pulse eight.
When I was going to do this something happened with EventGhsot and I couldn't get it started, so I got really frustrated (and tired) I had to reinstall EventGhost and the plugin.

Then it worked again and hopefully the test is good enough.

jonib
Attachments
CEC.7z
The logs
(48.15 KiB) Downloaded 15 times
XBMC2 plugin to control XBMC. If you want to flatter me Image

User avatar
kgschlosser
Site Admin
Posts: 4176
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Pulse-Eight CEC +

Post by kgschlosser » Wed May 16, 2018 5:50 pm

I do appreciate all the help jonib. we will get this squared away.
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 4176
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Pulse-Eight CEC +

Post by kgschlosser » Wed May 16, 2018 6:06 pm

I just got an e-mail back from the programmer for libCEC. He has been extremely busy and he will shoot me an e-mail when he can focus on the issues. So we are going to have to wait a bit. I will see if i can locate the problem myself and maybe correct it in the meanwhile.
If you like the work I have been doing then feel free to Image

jonib
Plugin Developer
Posts: 1280
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Pulse-Eight CEC +

Post by jonib » Mon May 21, 2018 2:12 pm

So I have caved to the notion of having stuff work and got a Master/slave power-strip basically it cuts the power to the TV when I shutdown the PC(sleep/power off)

As I discovered in my testing if I cut the power to the TV it will respond to the power on command from the CEC adapter.

This is a workaround but seems to work, but I would still like to be able to shutdown the TV when the PC is on so not perfect.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

User avatar
kgschlosser
Site Admin
Posts: 4176
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Pulse-Eight CEC +

Post by kgschlosser » Mon May 21, 2018 10:35 pm

I am just waiting for the author of libCEC to get some spare time. then he and I will dive into it and figure out what is going on. I am not sure what the time frame is going to be. Depends on when he is going to be done with what he is working on.
If you like the work I have been doing then feel free to Image

Post Reply