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

Unusable on macOS 10.15.3 #10

Open
OR13 opened this issue Apr 19, 2020 · 4 comments
Open

Unusable on macOS 10.15.3 #10

OR13 opened this issue Apr 19, 2020 · 4 comments

Comments

@OR13
Copy link

OR13 commented Apr 19, 2020

There are no obvious errors on install but 'stateChange' never fires.

node: v12.16.0

@petewall
Copy link

I am running into the same thing. Haven't dug much into it, but it looks like something changed.

running DEBUG=* ./index.js shows some debugging info:

$ DEBUG=* ./index.js 
Starting...
  bleno platform darwin +0ms
  bleno addressChange ... +1ms
  highsierra-bindings sendCBMsg: 1, {
  highsierra-bindings   "kCBMsgArgName": "node-1588044072024",
  highsierra-bindings   "kCBMsgArgOptions": {
  highsierra-bindings     "kCBInitOptionShowPowerAlert": 1
  highsierra-bindings   },
  highsierra-bindings   "kCBMsgArgType": 1
  highsierra-bindings } +0ms
  highsierra-bindings xpcEvent: {
  highsierra-bindings   "kCBMsgId": 48,
  highsierra-bindings   "kCBMsgArgs": {
...
  highsierra-bindings     }
  highsierra-bindings   }
  highsierra-bindings } +1ms
  highsierra-bindings xpcEvent: {
  highsierra-bindings   "kCBMsgId": 6,
  highsierra-bindings   "kCBMsgArgs": {
  highsierra-bindings     "kCBMsgArgBTPowerState": 1,
  highsierra-bindings     "kCBMsgArgState": 5
  highsierra-bindings   }
  highsierra-bindings } +0ms

So, it's getting an xpcEvent with a message id 48 and one with message id 6, but there are no handlers inside highsierra.js that handles those messages.

@alainux
Copy link

alainux commented Jun 20, 2020

Same for MacOS Mojave 10.14.6 (18G5033) with Node v10.21.0

$ DEBUG=* node ./main.js
bleno - echo
  bleno platform darwin +0ms
  bleno addressChange 64:76:ba:8c:13:d1 +2ms
  highsierra-bindings sendCBMsg: 1, {
  highsierra-bindings   "kCBMsgArgName": "node-1592678188769",
  highsierra-bindings   "kCBMsgArgOptions": {
  highsierra-bindings     "kCBInitOptionShowPowerAlert": 1
  highsierra-bindings   },
  highsierra-bindings   "kCBMsgArgType": 1
  highsierra-bindings } +0ms
  highsierra-bindings xpcEvent: {
  highsierra-bindings   "kCBMsgId": 4,
  highsierra-bindings   "kCBMsgArgs": {
  highsierra-bindings     "kCBMsgArgState": 5
  highsierra-bindings   }
  highsierra-bindings } +4ms
  highsierra-bindings state change poweredOn +0ms
  bleno stateChange poweredOn +4ms
on -> stateChange: poweredOn
  highsierra-bindings sendCBMsg: 16, {
  highsierra-bindings   "kCBAdvDataLocalName": "echo",
  highsierra-bindings   "kCBAdvDataServiceUUIDs": [
  highsierra-bindings     {
  highsierra-bindings       "type": "Buffer",
  highsierra-bindings       "data": [
  highsierra-bindings         236,
  highsierra-bindings         0
  highsierra-bindings       ]
  highsierra-bindings     }
  highsierra-bindings   ]
  highsierra-bindings } +4ms

@OR13
Copy link
Author

OR13 commented Jun 22, 2020

I recommend using: https://github.com/pokusew/nfc-pcsc, its supports raw transmit, and can be configured to handle large responses... You will need to generate / parse the TLV yourself.

@Apollon77
Copy link

I have also the issue that nothing works on macos - also with the current verison her on github ... Does anypne solved it @ptx2 @OR13 ?

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

4 participants