node-poweredup icon indicating copy to clipboard operation
node-poweredup copied to clipboard

osx monterey m1 not working

Open dftpnd opened this issue 3 years ago • 10 comments

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

dftpnd avatar Nov 08 '21 12:11 dftpnd

same here

stanos avatar Nov 19 '21 11:11 stanos

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

pbochynski avatar Dec 29 '21 12:12 pbochynski

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.

dlech avatar Dec 29 '21 15:12 dlech

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 avatar Jan 09 '22 10:01 alin256

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 avatar Jan 09 '22 16:01 alin256

Passing the LWP3 service UUID to noble.startScanning()

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

alin256 avatar Jan 09 '22 17:01 alin256

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.

nathankellenicki avatar Jan 19 '22 02:01 nathankellenicki

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

pbochynski avatar Jan 27 '22 07:01 pbochynski

I can confirm the following setups:

  • Intel MacOS 12.3.1 with node16
  • M1 MacOS 12.3 with node16

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 avatar May 27 '22 18:05 alin256

The combination of

  • M1 MacOS 12.4 with node16

and both hubs works as well.

alin256 avatar May 27 '22 18:05 alin256