tijmenvangulik / ErgometerJS

Java script ergometer driver for concept2 performance monitor with BLE/USB .
Other
112 stars 35 forks source link

Cannot get to work with HID on Windows machine #22

Closed MarcosSilvaAv closed 3 years ago

MarcosSilvaAv commented 3 years ago

I have a next js app running on linux server.

On my laptop running linux i can connect and receive data, on my company windows laptop i can't, it just says data Time out buffer.

I've tested on my laptop all demos working, on my company laptop nothing of them work.

Anyone running into this problem too?

Im using the USB connection.

Any more info needed to help me just ask, i can send.

image

tijmenvangulik commented 3 years ago

Hi, Can you connect using? https://ergometer-space.org This makes use of the same ergometer.ja as published on GitHub. What version of windows is on the laptop? Chrome supports windows 10 for web hid Tijmen

Op 2 feb. 2021 om 11:18 heeft Marcos Silva notifications@github.com het volgende geschreven:

 I have a next js app running on linux server.

On my laptop running linux i can connect and receive data, on my company windows laptop i can't, it just says data Time out buffer.

I've tested on my laptop all demos working, on my company laptop nothing of them work.

Anyone running into this problem too?

Im using the USB connection.

Any more info needed to help me just ask, i can send.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

MarcosSilvaAv commented 3 years ago

Hello, thanks for the quick response

On the Ergometer Space only with bluetooth, but on this site ("https://master.regatta-systems.com/homerace") for example i can connect with the USB too. And as far i can see they use your library.

I've tested on Win 10 Home and Pro.

image image

The other site image

tijmenvangulik commented 3 years ago

Yes same library, I will test it this evening and see what is wrong.

Tijmen

Op 2 feb. 2021 om 12:26 heeft Marcos Silva notifications@github.com het volgende geschreven:

 Hello.

On the Ergometer Space only with bluetooth, but on this site ("https://master.regatta-systems.com/homerace") for example i can connect with the USB too. And as far i can see they use your library.

I've tested on Win 10 Home and Pro.

The other site

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

MarcosSilvaAv commented 3 years ago

Ok, thanks. Just to leave here a fork of the project with the sample app that i'm testing.

https://github.com/MarcosSilvaAv/ErgometerJS

BR, Marcos Silva

tijmenvangulik commented 3 years ago

Hi

I have just started https://ergometer-space.org http://ergometer-space.org/ on my mac and my windows 10 pc. I have selected usb in the settings. And it connects with usb (=hid) on both machines.

What I use

Tijmen

On 2 Feb 2021, at 12:26, Marcos Silva notifications@github.com wrote:

Hello.

On the Ergometer Space only with bluetooth, but on this site ("https://master.regatta-systems.com/homerace https://master.regatta-systems.com/homerace") for example i can connect with the USB too. And as far i can see they use your library.

I've tested on Win 10 Home and Pro.

https://user-images.githubusercontent.com/6165524/106593761-20aa9400-6549-11eb-85b8-e196fc054fd2.png https://user-images.githubusercontent.com/6165524/106593815-2f914680-6549-11eb-8a2d-fb0ccbc25987.png The other site https://user-images.githubusercontent.com/6165524/106593988-62d3d580-6549-11eb-9f64-684d4cc8e195.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tijmenvangulik/ErgometerJS/issues/22#issuecomment-771569274, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVG7NSO7IM4QHRYPWUATHDS47OOVANCNFSM4W6LRDBA.

tijmenvangulik commented 3 years ago

I hope you can check the versions you are using with the version I send you. Furthermore we could start getting the debug details. Have you also tried to reset your PM5? Some times the PM gets confused . It looks like that there is a command which is not answered and the connection gets a timeout. ErgometerJS has a trace mode. You can switch this on and send the messages to the log. Maybe we can see what goes wrong from the log.

Tijmen

On 2 Feb 2021, at 16:04, Marcos Silva notifications@github.com wrote:

Ok, thanks. Just to leave here a fork of the project with the sample app that i'm testing.

https://github.com/MarcosSilvaAv/ErgometerJS https://github.com/MarcosSilvaAv/ErgometerJS BR, Marcos Silva

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tijmenvangulik/ErgometerJS/issues/22#issuecomment-771697687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVG7NS7DY6E4LJNRIMWD63S5AH6HANCNFSM4W6LRDBA.

MarcosSilvaAv commented 3 years ago

Hello,

tomorow im gonna try the sugestion, of reseting. But i think that the machine is disconnected after that error. Tomorow i will contact again, thanks for the help provided.

BR, Marcos Silva

MarcosSilvaAv commented 3 years ago

Hello,

i've tried to reset the machine but without sucess on windows machines.

Tried on:

PM3 tested on Windows image

PM5 tested on Windows image

MarcosSilvaAv commented 3 years ago

Another addition that i forgot to tell

PM3, PM4 work in Windows or Linux PM5 only acessing the webserver on Linux enviroment

BR, Marcos Silva

tijmenvangulik commented 3 years ago

The version of chrome does not seem to be the issue. But if you test on local host without https , there may be an issue with chrome. There is 2 requirement for webhid to work: it needs to be https and it is an experimental feature which is in orgin tiral so in my own ergometer I include a special orgin-trial meta tag. When I test it on localhost I use chrome canary with experimental features turned on.

Version info seems right. https://ergometer-space.org/ does also not work on windows on this version of chrome? (It really should work because we use the same versions of every thing )

Tijmen

On 3 Feb 2021, at 12:00, Marcos Silva notifications@github.com wrote:

Hello,

i've tried to reset the machine but without sucess on windows machines.

Tried on:

linux - Zorin OS 15 - chromium 87.0.4280.66 (worked) linux - Ubuntu 20.04.1 LTS - chrome 88.0.4324 (worked) windows 10.o.18363 - chrome 88.0.4324 (not worked) windows 10.o.19042 - chrome 88.0.4324 (not worked) windows 10.o.18363 - chrome 88.0.4324 (not worked) PM3 tested on Windows https://user-images.githubusercontent.com/6165524/106737491-a6444780-660e-11eb-9d7e-b6c38edb5215.png PM5 tested on Windows https://user-images.githubusercontent.com/6165524/106737638-d12e9b80-660e-11eb-975b-b1c138dcebe4.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tijmenvangulik/ErgometerJS/issues/22#issuecomment-772422066, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVG7NVPC6K264RKHSP3AKDS5EUELANCNFSM4W6LRDBA.

tijmenvangulik commented 3 years ago

and I forgot to tell in canary I debug on local host with the flag "Experimental Web Platform features” switched on.

Tijmen

On 3 Feb 2021, at 17:28, tijmen Tijmen@vangulik.org wrote:

The version of chrome does not seem to be the issue. But if you test on local host without https , there may be an issue with chrome. There is 2 requirement for webhid to work: it needs to be https and it is an experimental feature which is in orgin tiral so in my own ergometer I include a special orgin-trial meta tag. When I test it on localhost I use chrome canary with experimental features turned on.

Version info seems right. https://ergometer-space.org/ https://ergometer-space.org/ does also not work on windows on this version of chrome? (It really should work because we use the same versions of every thing )

Tijmen

On 3 Feb 2021, at 12:00, Marcos Silva <notifications@github.com mailto:notifications@github.com> wrote:

Hello,

i've tried to reset the machine but without sucess on windows machines.

Tried on:

linux - Zorin OS 15 - chromium 87.0.4280.66 (worked) linux - Ubuntu 20.04.1 LTS - chrome 88.0.4324 (worked) windows 10.o.18363 - chrome 88.0.4324 (not worked) windows 10.o.19042 - chrome 88.0.4324 (not worked) windows 10.o.18363 - chrome 88.0.4324 (not worked) PM3 tested on Windows https://user-images.githubusercontent.com/6165524/106737491-a6444780-660e-11eb-9d7e-b6c38edb5215.png PM5 tested on Windows https://user-images.githubusercontent.com/6165524/106737638-d12e9b80-660e-11eb-975b-b1c138dcebe4.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tijmenvangulik/ErgometerJS/issues/22#issuecomment-772422066, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVG7NVPC6K264RKHSP3AKDS5EUELANCNFSM4W6LRDBA.

tijmenvangulik commented 3 years ago

Hi,

I have compiled your project and started it. But it is not yet complete it does not yet use the ergometer library in the html. I think it is an old version which is on github

On 3 Feb 2021, at 14:56, Marcos Silva notifications@github.com wrote:

Another addition that i forgot to tell

PM3, PM4 work in Windows or Linux PM5 only acessing the webserver on Linux enviroment

BR, Marcos Silva

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tijmenvangulik/ErgometerJS/issues/22#issuecomment-772526669, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVG7NWS6AGTHKT7DYW2LYLS5FIYPANCNFSM4W6LRDBA.

MarcosSilvaAv commented 3 years ago

On both chromes i have experimental ativated, cause without that the device do not appear on my pc's

What do you recomend me to use the library on the web?

BR, Marcos Silva

MarcosSilvaAv commented 3 years ago

Hi, I have compiled your project and started it. But it is not yet complete it does not yet use the ergometer library in the html. I think it is an old version which is on github On 3 Feb 2021, at 14:56, Marcos Silva @.***> wrote: Another addition that i forgot to tell PM3, PM4 work in Windows or Linux PM5 only acessing the webserver on Linux enviroment BR, Marcos Silva — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#22 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVG7NWS6AGTHKT7DYW2LYLS5FIYPANCNFSM4W6LRDBA.

Screenshot from 2021-02-03 23-54-49

I'm importing the lib, and i have edited your build scripts to add my demo.

Screenshot from 2021-02-03 23-57-23

tijmenvangulik commented 3 years ago

As far as I know there is no other library. I know that my library works, it even works on large scale for the time team. I am sure that we can make it work because it works for others, there must me some thing which we are missing. think this is the point where we need to start the hard debugging, analyze the point where it fails, rule out different and make it work. want to help you with this.

Tijmen

On 4 Feb 2021, at 00:04, Marcos Silva notifications@github.com wrote:

On both chromes i have experimental ativated, cause without that the device do not appear on my pc's

What do you recomend me to use the library on the web?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tijmenvangulik/ErgometerJS/issues/22#issuecomment-772887305, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVG7NWQ46BSZB4M4TX6LLLS5HJALANCNFSM4W6LRDBA.

MarcosSilvaAv commented 3 years ago

I'm gonna try debug Thais afternoon and Stay something after.

Thanks for the help

BR, Marcos Silva

tijmenvangulik commented 3 years ago

This evening I will try your code and see if it works on my windows /mac.

On 4 Feb 2021, at 14:50, Marcos Silva notifications@github.com wrote:

I'm gonna try debug Thais afternoon and Stay something after

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tijmenvangulik/ErgometerJS/issues/22#issuecomment-773315415, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVG7NRTFFDYYEZEY5RSGKTS5KQYRANCNFSM4W6LRDBA.

MarcosSilvaAv commented 3 years ago

Hello,

we could schedule a zoom meeting or Microsoft Teams call if you don't mind and i can show my enviroment.

BR, Marcos Silva

tijmenvangulik commented 3 years ago

I have got teams. Maybe it is better to contact me on my personal account : tijmen@vangulik.org mailto:tijmen@vangulik.org I have tested your work on my mac and it worked on my mac. Now I have to test it on a pc. How did you test it on a pc? Because it normally only works this way if you run on localhost did you install you project on all these machines and run it on local host? For making it work on a real server you have to do a lot of things like https and to start an orgin trial. and I assume you have not yet done that part….

Tijmen

On 4 Feb 2021, at 16:07, Marcos Silva notifications@github.com wrote:

Hello,

we could schedule a zoom meeting or Microsoft Teams call if you don't mind and i can show my enviroment.

BR, Marcos Silva

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tijmenvangulik/ErgometerJS/issues/22#issuecomment-773378218, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVG7NWNKGMMQKUTGRTJCU3S5KZ37ANCNFSM4W6LRDBA.

tijmenvangulik commented 3 years ago

I could not get next working on windows, so I just copied the html and run it on localhost server on windows 10. You can ignore the error, but the ergometer is connecting and when I set the distance to 2000 meters it was shown in the log.

On 4 Feb 2021, at 16:07, Marcos Silva notifications@github.com wrote:

Hello,

we could schedule a zoom meeting or Microsoft Teams call if you don't mind and i can show my enviroment.

BR, Marcos Silva

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tijmenvangulik/ErgometerJS/issues/22#issuecomment-773378218, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVG7NWNKGMMQKUTGRTJCU3S5KZ37ANCNFSM4W6LRDBA.

MarcosSilvaAv commented 3 years ago

Hello @tijmenvangulik ,

just invited u for a teams.

tijmenvangulik commented 3 years ago

Thank you for your help fixing this issue. I posted a fix, I close the issue now.