Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX/Debian: Device updates aren't processed by central #9

Open
ilyamordasov opened this issue Jul 16, 2022 · 9 comments
Open

OSX/Debian: Device updates aren't processed by central #9

ilyamordasov opened this issue Jul 16, 2022 · 9 comments

Comments

@ilyamordasov
Copy link

I attached the buttons, executed async mouse example, connected to Mouse device (it is exactly detected as mouse device), so I can see

Notify with report:  (0, 0, 127, 0)
Notify with report:  (0, 0, 0, 0)
Notify with report:  (0, 0, 127, 0)
Notify with report:  (0, 0, 0, 0)
Notify with report:  (0, 0, 127, 0)

when buttons are not pressed and some opposite values when I press any button. But mouse doesn't move, doesn't call menu/submenu, nothing. Could you explain what will happen, and about what this example?

@Heerkog
Copy link
Owner

Heerkog commented Jul 17, 2022

Are you able to test with something other than OSX?

I'm asking because there seem to be issues with Apple which are probably related to 'faking' the device information (manufacturer, version, etc).

@ilyamordasov
Copy link
Author

ilyamordasov commented Jul 17, 2022

Yes, with android works like a charm

UPD: Just tried with ubuntu 20.04, it's not working too, seems the issue is not only in OSX

@Heerkog
Copy link
Owner

Heerkog commented Jul 17, 2022

You could try finding the (i) device information, (ii) revision information, and (iii) php information used by an Apple approved device and using the provided functions to set these values after line 37 of the async example and see if it then works.

If that doesn't work, you might need to also find (iv) the HID input report of that same device and use that. Note that changing a HID input report requires changing the code in several places, some of which is not easy to understand.

@ilyamordasov
Copy link
Author

A few years ago I was implementing usb hid device with stm32, will look at its descriptor, but do not remember did it work with OSX or not, but exactly worked with one of them ubuntu or osx.

@Heerkog
Copy link
Owner

Heerkog commented Jul 17, 2022

Please check this thread for Ubuntu. I feel the OSX and Ubuntu issues are very related and probably lead back to issues with the pnp and device information not leading the OS to the correct/any drivers.

In case you find working device and pnp information, please do let me know so I can update the examples!

@ilyamordasov
Copy link
Author

Ok

@Heerkog Heerkog changed the title OSX nothing happens OSX/Debian: Device updates aren't processed by central Jul 25, 2022
@Heerkog
Copy link
Owner

Heerkog commented Aug 6, 2024

I have just pushed a major new version of this library. If anyone could test whether this issue has been resolved, that would be great.

In case it is not resolved, a wireshark pcap trace of the faulty behavior would go a long way to me being able to fix it.

@randomtestfive
Copy link

I'm running Linux Mint 22, with a TinyS3 on Micropython 1.23. Running the simple keyboard example, there's no events in Wireshark after the connection. I'm also running into #2 at the same time.

@Heerkog
Copy link
Owner

Heerkog commented Oct 12, 2024

That is a shame. I was hoping the issue would've been solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants