Author Topic: USB reconnect and AmuletUsb  (Read 6232 times)

0 Members and 1 Guest are viewing this topic.

igvk

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
USB reconnect and AmuletUsb
« on: July 23, 2017, 06:14:54 PM »
What happens when AmuletUsb(Win10) is running, but Amulet HID disconnect and reconnects for some reason (power management, hub issue, etc.)?
I noticed that sometimes AmuletUsb loses the device and never regains it, possibly due to HID reconnect.
Is it possible to reconnect to the device in this case automatically (without restarting the program)?


jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: USB reconnect and AmuletUsb
« Reply #1 on: July 23, 2017, 09:38:12 PM »
I don't think so. I recall having problems with the Amulet usb hid (on Windows 10) only but I went back to Windows 7 a long time ago so I don't recall exactly what was happening except that I could not find a solution. I thought maybe the problem was only when resuming from sleep but maybe not.

If you want I might be able to find the Visual Studio project code so you can play with it but the error seemed to come from the USB code that I received from Amulet devices and I did not understand it well enough to find a solution.  By the time we discovered the problem in Windows 10 Amulet had already gone out of business so there was not much hope of getting a fix from them.

igvk

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
Re: USB reconnect and AmuletUsb
« Reply #2 on: July 24, 2017, 04:10:54 AM »
Ok, I will try to take a look at it, given the code.
Guess, it's a very niche problem.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: USB reconnect and AmuletUsb
« Reply #3 on: July 24, 2017, 10:59:43 AM »
I believe this is the latest version.  I did try to mess about in the AmuletJUSB.cs (which is why there is a J in the name) but I really have no memory if or what I might have done.

https://github.com/jitterjames/AmuletUsb

I've never really used GitHub before (shame) so contact me directly if there is any problem.

igvk

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
Re: USB reconnect and AmuletUsb
« Reply #4 on: July 25, 2017, 07:19:15 AM »
Interesting, this versions seems to work as expected when USB dongle reconnects.
I see that the version number differs a little from the one in the VoxCommandoExtras.zip.
Is it possible that you didn't upload the latest version to the site?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: USB reconnect and AmuletUsb
« Reply #5 on: July 25, 2017, 08:43:19 AM »
Anything is possible. Like I said it has been a long time and I don't use Windows 10.

Whatever problem that I had with Windows 10 and the Amulet I was not able to solve completely.

I did increment the version number yesterday when I was going through various files to make sure I was putting the latest version on GitHub.

If you think that the version that I uploaded to GitHub works better then I'll put that in the extras zip file on the download page.

Just to be sure, you were already using the .exe with Windoes10 in the name right? There are two different AmuletUsb .exe files in the extras.zip

igvk

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
Re: USB reconnect and AmuletUsb
« Reply #6 on: July 25, 2017, 09:36:00 AM »
For this particular problem, it definitely works better.
As for other possible problems, I think time will tell.

Yes, I was using the .exe with Win10 in the name.
Does the version for Win7 correctly reconnects when unplugging and re-plugging the USB dongle?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: USB reconnect and AmuletUsb
« Reply #7 on: July 25, 2017, 09:42:46 AM »

Yes, I was using the .exe with Win10 in the name.
Does the version for Win7 correctly reconnects when unplugging and re-plugging the USB dongle?

Yes.  On my Windows 7 machine it reconnects fine if I unplug  and then replug the  dongle.

Did you ever try with the regular AmuletUsb version on Windows 10?

igvk

  • Jr. Member
  • **
  • Posts: 17
  • Karma: 0
    • View Profile
Re: USB reconnect and AmuletUsb
« Reply #8 on: July 25, 2017, 09:50:04 AM »
Did you ever try with the regular AmuletUsb version on Windows 10?

I haven't tried before.
Now I tried it - and it worked after replugging the dongle.
Seems, there's something wrong with Win10 version from the extras.