nathankellenicki / node-poweredup

A Javascript module to interface with LEGO Powered Up components.
https://nathankellenicki.github.io/node-poweredup/
MIT License
477 stars 59 forks source link

osx monterey m1 not working #141

Open dftpnd opened 2 years ago

dftpnd commented 2 years ago

osx monterey m1 not working

After upgrading the os, the hub is not visible. talked to apple support for an hour, they could not help. maybe you know what the problem may be

stanos commented 2 years ago

same here

pbochynski commented 2 years ago

I am on macOs 12.1 now. It still doesn't discover any HUB. I think it is related to this issue: https://github.com/abandonware/noble/issues/225

dlech commented 2 years ago

Passing the LWP3 service UUID to noble.startScanning() should work around the issue. (I haven't tried it with noble, but it worked for a similar Python library.)

See https://github.com/abandonware/noble/issues/225#issuecomment-994974358

Also, please file an issue in the Apple Feedback assistant and link the noble issue. Hopefully if enough people report it, Apple might do something about it.

alin256 commented 2 years ago

I also have some basic issues on 12.1, but since it is on Intel, I posted it in a separate issue: https://github.com/nathankellenicki/node-poweredup/issues/142

alin256 commented 2 years ago

Seems that this might be related to the OS and not the M1 chip:

https://developer.apple.com/forums/thread/694146?login=true&r_s_legacy=true

alin256 commented 2 years ago

Passing the LWP3 service UUID to noble.startScanning()

Can you elaborate in more detail on how to do that in code?

nathankellenicki commented 2 years ago

Hi, I've just published a new version (8.0.0) that should make this work on Monterey again. As mentioned, passing the service id's to the startScanning function solves the issue.

Initially I had concerns with using both LWP3 and WeDo 2.0 service id's as it should find one or the other, not both, but it doesn't seem to pose any problems.

pbochynski commented 2 years ago

I can confirm - the new version works! Thanks a lot!

alin256 commented 2 years ago

I can confirm the following setups:

the discovery works for

  1. Boost
  2. Duplo train

I am upgrading the OS and testing against 12.4 later today. If I forget to report the results, feel free to @ me on this post.

alin256 commented 2 years ago

The combination of

and both hubs works as well.