eventghost startup delay? can't find USBUIRT

If you have a question or need help, this is the place to be.
Post Reply
Michaelrj9
Posts: 2
Joined: Wed Aug 29, 2018 6:52 pm

eventghost startup delay? can't find USBUIRT

Post by Michaelrj9 » Wed Aug 29, 2018 7:07 pm

I have EventGhost startup automatically when Windows 7 starts but I am having a problem with EventGhost not finding the USBUIRT when I have it set this way.

If I exit EventGhost and restart it, it works.

My thoughts is EventGhost is loaded before the USBUIRT is found.

Any suggestions on how to get this fixed will be greatly appreciated.

jachin99
Experienced User
Posts: 547
Joined: Sat Feb 13, 2016 8:39 pm

Re: eventghost startup delay? can't find USBUIRT

Post by jachin99 » Thu Aug 30, 2018 2:43 am

See Here: viewtopic.php?f=2&t=9940

If you have already disabled any kind of power management feature for your PC then you might also try a powered (One that plugs into the wall) USB hub. Let us know if you need more help.

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

Re: eventghost startup delay? can't find USBUIRT

Post by kgschlosser » Thu Aug 30, 2018 2:37 pm

I will take a look see at the USBUIRT plugin. It could be that the plugin does a singular check when it starts. we can set it up in a manner that it will loop checking fora device so many seconds. this will give it more time to locate the device.
If you like the work I have been doing then feel free to Image

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

Re: eventghost startup delay? can't find USBUIRT

Post by kgschlosser » Thu Aug 30, 2018 2:57 pm

OK i have a couple of questions. I have looked at the plugin and BitMonster (the original author) has covered pretty much all of the bases when it comes to this plugin as far as connection issues.


Do you get any errors in the log in EG when it starts up?
do you get any errors when blasting??

have you tried disabling the plugin then enabling it again to see if it starts to work??

There is only a single thing that i do not much care for and that is when/how the dll is loaded/handled. I have found that it is always best to have these things always handled by the same thread. There is also a comment about there being a bug in the driver. and how it responds to being woken up. and the fact that it does not work properly. This could be the issue. is that when the device initially starts it is in a "sleep" state and the driver gets a wee bit tangled up because of the system startup and the state of the driver. None the less. i would need some kind of a marker to let me know if the driver made a successful connection or not.

Have you noticed if you get any device attached events in the log when EG starts up?
If you like the work I have been doing then feel free to Image

Michaelrj9
Posts: 2
Joined: Wed Aug 29, 2018 6:52 pm

Re: eventghost startup delay? can't find USBUIRT

Post by Michaelrj9 » Mon Sep 03, 2018 12:22 am

I switched the USB port that it was plugged into and it might have fixed the issue. I had it plugged into a PCIe USB card and now is on the motherboard. Only time will tell.
But it has worked for the last couple days.

Michael

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

Re: eventghost startup delay? can't find USBUIRT

Post by kgschlosser » Mon Sep 03, 2018 3:25 am

OK. so now the dynamics of your setup have changed.

go into the power setting in your computers BIOS and make sure that any settings that can control power to your pci bus are turned off.
Do the same inside of Windows. in the Power management settings.
Also find the drivers for the card in device manager and make sure power management is turned off.

These things can sometimes affect/delay the startup of the device.
They are worth a check. You can also stall the loading of a plugin as well. If you disable the plugin then create a macro with the Enable action. set it to the plugin. make a second action with the python command action. in that action enter this

If you still encounter the problem give this a try.
copy the code below. then right click on the computer icon at the top of your configuration tree and click on paste.
You are going to have to go into the configuration for all of the actions except for the python command one and point the actions to your USB-UIRT Plugin. the Jump Action you need to point to the Disable macro.

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="WIP-2018.05.25-17.43.19">
    <Folder Name="USB-UIRT Startup" Expanded="True">
        <Macro Name="Enable: Plugin: USB-UIRT" Expanded="True">
            <Event Name="Start.USB-UIRT" EventType="Event" />
            <Action>
                EventGhost.EnableItem(XmlIdLink(38))
            </Action>
        </Macro>
        <Macro Name="USB-UIRT Timer Start" Expanded="True">
            <Event Name="Main.OnInit" EventType="Event" />
            <Action>
                EventGhost.GetItemState(XmlIdLink(38))
            </Action>
            <Action>
                EventGhost.NewJumpIf(XmlIdLink(29), 1, True)
            </Action>
            <Action>
                EventGhost.PythonCommand(u"eg.scheduler.AddShortTask(20.0, eg.TriggerEvent, prefix='Start', suffix='USB-UIRT')")
            </Action>
        </Macro>
        <Macro Name="Disable: Plugin: USB-UIRT" id="29" Expanded="True">
            <Action>
                EventGhost.DisableItem(XmlIdLink(38))
            </Action>
        </Macro>
    </Folder>
</EventGhost>
what this is going to do is. when EG starts it will check to see if the plugin is disabled. if it is not it will disable it. then it is going to start a timer. after 20 seconds has passed it will fire an event "Start.USB-UIRT" that event will enable the plugin.
If you like the work I have been doing then feel free to Image

Post Reply