scubajorgen / TomTomWatch

Tool for exporting GPS files from TomTom Sports Watches
84 stars 18 forks source link

interface already claimed #43

Closed jonath35 closed 10 months ago

jonath35 commented 11 months ago

Hello

Since I installed ttwatch from ryanbinns in addition to TomTomWatch. I can't connect to the watch anymore. I get an error :

ERROR: USB Error: An interface is already claimed

I don't know how to solve this error.

Thanks

lva commented 11 months ago

I had this error as well. This happened to me when the TomTom software was still running and was connected to the watch. Closing other applications that can connect to the watch like ttwatch or TomTom before you start TomTomWatch should solve this.

Op do 2 nov. 2023 09:40 schreef jonath35 @.***>:

Hello

Since I installed ttwatch from ryanbinns in addition to TomTomWatch. I can't connect to the watch anymore. I get an error :

ERROR: USB Error: An interface is already claimed

I don't know how to solve this error.

Thanks

— Reply to this email directly, view it on GitHub https://github.com/scubajorgen/TomTomWatch/issues/43, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO7ANJRSBVNVA4FYOR3EM3YCNMBLAVCNFSM6AAAAAA62QC3A6VHI2DSMVQWIX3LMV43ASLTON2WKOZRHE3TGNZWGUZTMNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jonath35 commented 11 months ago

Thks for your reply,

I can't see any process running using htop.. I read somethings about kernel claimed but i don't know how to deal with it

Thks

scubajorgen commented 11 months ago

I guess you run it on Linux. To prove it isn't a clash between the softwares, restart your computer and only start TomTomWatch To prove it isn't a rights issue, start is as root. If it works it is a rights issue

If it is a rights issue, make sure the user is allowed to use the USB and add rulez to /etc/udev/rules.d/

I leave the issue open for some while but it isn't a software issue.

jonath35 commented 11 months ago

restart and start as root doesn't change anything. There is a clash and it appears after the installation of the ryanbinns's ttwatch tools.

Skylarkin commented 11 months ago

I can confirm this issue, I have the same error. I am running Arch-linux, latest kernel, everything updated. I suspect this has something to do with ttwatch because I tried running TomTomWatch before testing ttwatch and the software was working, the device (TomTom Adventurer) was recognised with correct serial no. HL4486G01240 and updating Quick GPS worked.

OpenJDK Java 21 full runtime environment installed. I have tried uninstalling ttwatch and modifying udev rules back and forth with various alternatives, rebooting system, running as both user and root and also tried the Zadig WinUSB driver in Windows 11 but no luck, I get the same error message in Windows even after installing the Zadig driver according to instructions found here:

https://blog.studioblueplanet.net/software/tomtomwatch

I never tried running TomTomWatch on Windows before I started using it on Arch-linux so it was first after the problem arose on linux that I also tried to run TomTomWatch on Windows.

The command: ttwatch --initial-setup is supposed to create a default XML preferences file on the watch, don't know if running this command might have something to do with this issue. I cannot see any XML preference file on the watch when mounted though:

https://github.com/ryanbinns/ttwatch#initial-setup

ERROR: No valid device found ERROR: Error retrieving firmware version ERROR: USB claim exception during release: No interface is claimed ERROR: No valid device found ERROR: Error retrieving product ID ERROR: USB claim exception during release: No interface is claimed ERROR: USB Error: An interface is already claimed

usb-devices:

T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 4 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=1390 ProdID=7475 Rev=01.00 S: Manufacturer=TomTom S: Product=TomTom GPS Music Watch S: SerialNumber=HL4486G01240 C: #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=(none) E: Ad=02(O) Atr=03(Int.) MxPS= 256 Ivl=125us E: Ad=81(I) Atr=03(Int.) MxPS= 256 Ivl=125us I: If#= 1 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

scubajorgen commented 10 months ago

AFAIK TomTomWatch does not alter anything on your computer. It uses USB4Java library to access USB. The fact that TomTomWatch fails to work after installtin ttwatch suggests that ttwatch alters something. Please ask Ryan Binns about it.

scubajorgen commented 10 months ago

I am closing this one since I cannot solve it.